Serial Port Receive Data Vb Net Format4/21/2021
Recently, a requirement came up to not only send the commands, but receive responses and parse them.
Serial Port Receive Data Vb Net Format Code It ToI have been successfully sending commands for some time, and I am able to capture the response, but cannot decode it to something which can be used further.Here is the code currently in use: CODE Public Function SendCom(ByVal strCommand As String, ByVal COMport As String). How can I translate the data back into a string I can parse Cheryl dc Kern. Now Im lucky if I can find 30 minutes a week in which to get funky. ![]() When I first programmed the code to send the data to the device, I had difficulty getting it to send correctly; although the string was hex according to vb formatting, it wasnt hex according to the receiving device. When the string comes back across the port, it is still in the port-encoded format. ![]() New code: CODE Public Function SendCom(ByVal strCommand As String, ByVal COMport As String). Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. The Tek-Tips staff will check this out and take appropriate action. Unauthorized reproduction or linking forbidden without expressed written permission. Registration on or use of this site constitutes acceptance of our Privacy Policy.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |