Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

hello guys got some question about raw bytes recived

Still a little green? Ask your beginner's questions here

hello guys got some question about raw bytes recived

Postby 3EYESnuts » Tue Jul 10, 2018 8:08 am

im trying to recive some raw bytes by UDP or serial ports,every time got unreadable messages ,is there a solution?
cb0640c883bdae911fb1b07a2432188.png
cb0640c883bdae911fb1b07a2432188.png (25.82 KiB) Viewed 476 times
nuts...
User avatar
3EYESnuts
 
Posts: 4
Joined: Tue Feb 23, 2016 11:30 am

Re: hello guys got some question about raw bytes recived

Postby malcolm » Thu Jul 12, 2018 12:27 pm

You likely need to use the python 'struct' module and the callback script the properly unpack your binary data into it's correct form. The data you see in the DAT is just he raw bytes, which will only be useful if you are only sending byte values
User avatar
malcolm
Staff
 
Posts: 4230
Joined: Tue Nov 13, 2007 1:11 am


Return to Beginners

Who is online

Users browsing this forum: Google [Bot] and 6 guests