Click here to Skip to main content
12,829,850 members (45,026 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB 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 9:03am
ThePhantomUpvoter 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)

    Print Answers RSS
Top Experts
Last 24hrsThis month

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100