I am planning to use XSockets to setup a TCP server for custom GPS devices to report their location. I am having a difficult time creating the custom protocol, as I am a VB programmer, and have found no examples in my native programming language. I believe that if I can get some initial help, I will be able to figure out the rest.
My situation is fairly simple. I will be basically handling 3 messages from the device. All messages will have a start character of "(" and an end character of ")". The initial "login" message has the following format:
"(" + 11 Character DeviceID + "BP05" + 77 data characters + ")"
For example:
(01363278450BP05000013632782450080524A2232.9806N11404.9355E000.1101241323.8700000000L000450AB)
When the server receives this message, it needs to respond with:
"(" + 11 Character DeviceID + "AP05" + ")"
Like this:
(040331141830AP05)
The second message is what they call a handshake:
"(" + 11 Character DeviceID + "BP00" + 15 data characters + "HSO" + ")"
Server will respond with:
(040331141830AP01HSO)
If someone can get me started modifying the Custom Protocol example to handle these messages, I should be able to figure out the rest on my own.
Thanks in advance,
Scott