Click here to Skip to main content
15,919,245 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello every one
i am trying to send a group of large numbers(3000 and above) over serial port using vb.net is there any method to send this (3000)once (i.e. not convert to bytes)
Posted
Comments
[no name] 13-Apr-13 14:14pm    
Your question does not make any sense. If you do not want to convert 3000 to bytes before sending it through a serial port then send it as a string.

1 solution

The number itself is just a bunch of bytes, so why worry. You may send it as binary (preferred way, two bytes needed, if you don't exceed 65535) or using its string representation (4 bytes needed if you don't exceed 9999). In any case you have to send bytes over the serial line. Note that you may send all the bytes in a single function call.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900