06-10-2019 02:10 AM
hey i am working on AWOS system and multiple sensors data is coming to server. i checked on ethreal in my PC connected to server via LAN for all the UDP packets coming to my PC but i have no idea on how to separate each sensor data from UDP packets so it can be displayed in a GUI. can anybody help.i tried to attach my ethreal data but forum is not accepting that format
regards
06-10-2019 07:20 AM
"ethreal"?? Do you mean to say "ethernet"?
Zip up your data file and attach it.
06-10-2019 07:41 AM
@RavensFan wrote:
"ethreal"?? Do you mean to say "ethernet"?
Zip up your data file and attach it.
I think that mean the software that lets you access the promiscuous option to raw Ethernet packets as they come in as is done with WireShark. I think Christian cracked that nut some long years ago.
Browsing my tags I have this tag cloud to offer.
This page for winpcap may also be helpful.
One of those links may hold a useful hint.
Another thing that may or may not be mentioned in those old threads is the distinction between a hub and a switch. Hubs repeated everything but switches are smart and may have to be tickled into passing all packets.
Ben
06-10-2019 11:24 AM
ethreal is a software for seeing all the incoming and outgoing data packets....someone advised it to me to check whether the server and my laptop are sharing data
i went today at the system and ran my labview code and got the following udp packets.Each packet is having the data of all sensors..pls help as to how i separate each sensor data.
06-10-2019 12:25 PM
Shouldn't your instrument's manual or programmer's guide tell you how to do it?
06-10-2019 12:27 PM
That's good. You are getting data.
So all you need to do is use the string functions available in LabVIEW to parse out the data. Hopefully you have a manual that describes to you what each thing means.
06-14-2019 09:19 AM - edited 06-14-2019 09:25 AM
since i have got the data i have not done any progress any further...i have tried alot but i cannot extract my specific values out from a UDP packet and discard all other values...i have attached the code which i have made but i am able to get only one time values from the first UDP packet wheras i have to continously get these values from incoming UDP packets..kindly help...
maybe i am missing steps out..i dont know
06-17-2019 04:45 PM
Why would you run your For Loop as many times as there are characters in your string?
You seem to be picking out pieces of the string based on things being at very specific locations. What if the message changes a little bit? Some message has an extra character into its data?
You need to look for meaning in your message. Does each line pertain to a particular parameter? For instance, I see your second line as "VIS" in it which make me think it is related to Visibility. If you read that one line, and detect "VIS" is contained in the message, then you can use string parsing functions to break out the 15000.0 part. Then does the "AL 0" mean anything?
06-17-2019 11:00 PM
yes please ..that is the actual problem..the data keeps on changing but not much..i have checked many times that the length of data string is 522 consectively
And yes these lines represent data which i know...each line represent certain sensor data hence i want each value out so i can perform further calculations..
can you please ammend the code so i can consectively collect values from incoming data packets because than i have to take averages of collected value
everyone keeps saying me to use string functions but honestly i have tried alot..either i get each word separately or chunks but not each line or tge values of parameters in each line
regards
06-18-2019 02:02 AM
@Mrsnaveed wrote:
everyone keeps saying me to use string functions but honestly i have tried alot..either i get each word separately or chunks but not each line or tge values of parameters in each line
regards
Just do a Search String for e.g. VIS, and if the index found is >= 0 (-1 is not found), use that index as Offset to a String to fract/exp - There's your VIS-value.
Repeat for all other tokens.
/Y