Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
$$,,,,47,1,55200109400273000000B203029000110057616A6168003033343535313732383135000000000036313130312D303339303930352D3900542D3030303035370000000000*

$$,,,,47,1,55200109400257616A61686174204162626173000000003033343535313732383135000000000036313130312D303339303930352D3900542D3030303035370000000000*

$$,,,,47,1,F432400257616A61686174204162626173000000003033343535313732383135000000000036313130312D303339303930352D3900542D30303030353700000000000000*



From server i have receiving data in HEX form i want to detect a packet which is start from
($$,,,,47 and end at *)
Every time my server check if find packet that then start conversion
How can i detect these type of packet in my loop
Posted
Comments
Richard MacCutchan 2-Nov-13 6:42am    
Just read the characters and look for the sequence you want.
Sampath Lokuge 2-Nov-13 7:23am    
Check this may be helped to you.http://msdn.microsoft.com/en-us/library/bb311038.aspx
Sergey Alexandrovich Kryukov 2-Nov-13 22:19pm    
"Conversion from hex to ASCII" is just gibberish. This is the same as to say "conversion from RGB to inches".
—SA

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900