Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET
hello every one
i am trying to send a group of large numbers(3000 and above) over serial port using is there any method to send this (3000)once (i.e. not convert to bytes)
Posted 13-Apr-13 8:03am
ThePhantomUpvoter at 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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

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

Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 13 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid