Teltonika GPS first ACK using JAVA -


i programing listener teltonika gps. may know, teltonika sends first time imei, server needs respond "01" accepting full raw data. so, stuck responding gps, here's partial code:

dataoutputstream outtoserver = null; outtoserver = new dataoutputstream(this.tcpsocket.getoutputstream());  byte[] msg = new byte[]{0x01}; outtoserver.write(msg, 0, msg.length); outtoserver.flush(); 

nothing happens, gps continuing send me imei

for future reference.

01 in binary equals byte value of 1.

byte[] msg = new byte[]{1}; outtoserver.write(msg, 0, msg.length); outtoserver.flush(); 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -