16,007,472 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Henri Aghaei (Top 6 by date)
Henri Aghaei
9-Jun-17 12:27pm
View
Many thanks! I will wrestle it down!
Henri Aghaei
9-Jun-17 12:14pm
View
No. Don't do that please! LOL
I was intending to make the same format for the read buffer, but the problem is that
textBox2.Text = strHEX
is not acceptable and I need to find a way to put my hex array into the box!
Comes up with the following error.
Error 1 Cannot implicitly convert type 'System.Text.StringBuilder' to 'string'
Henri Aghaei
9-Jun-17 11:30am
View
S Houghtelin,
I am not too sure if I've got what you just explained.
Here is my code as follows.
byte[] bytesToSend = new byte[14] { 0x68,0x99,0x99,0x99,0x99,0x99,0x99,0x68,0x23,0x02,0x61,0x00,0xEC,0x16 };
serialport1.Write(bytesToSend, 0, 14);
System.Threading.Thread.Sleep(200); // wait for .5 sec
textBox2.Text = serialport1.ReadExisting();
But what you said by Format is not clear to me. What should I add to my read buffer to see Hex coming in?
Henri Aghaei
9-Jun-17 11:09am
View
Thanks for your prompt reply. Well actually I am reading from the port and I receive text instead of hex. I used: textBox2.Text = serialport1.ReadExisting();
That's why I am asking how I can read back in HEX. Any advice on this please?
Henri Aghaei
9-Jun-17 10:21am
View
in VS2013 C# forms there is no "HEX" syntax. What would you suggest then?
Henri Aghaei
20-Apr-15 15:15pm
View
I got an answer in Cygwin and was able to compiled and make the .exe file.
Show More