First of all, try to find your device in the list of supported devices. Third column of the corresponding row contains default port number for your device. If you have a cheap Chinese GPS device, make sure to check information about clones.
If given port does not work for your device or you cannot find your device in the list of supported devices, try collecting some samples using the following steps:
Once you have samples and you are sure those samples are from your device, you can try matching them with common patterns below or compare to test cases we have for various protocols:
If protocol is text-based, you have to convert HEX to text first.
If your device is using GT06 protocol (correct port 5023), HEX samples will start with
7979, like this:
If your device is using Huabao protocol (correct port 5015), HEX samples will start and end with
7e. Note that there are some other protocols that use
7e, so it's not a guaranteed match. Example:
If your device is using GPS103 protocol (correct port 5001), decoded message text would start with
imei: and end with a semi-colon (
If your device is using H02 protocol (correct port 5013), decoded message text would start with
*HQ, and end with a number sign (
#). Note that some H02-based devices send a mix of text and binary messages. Text message example:
If your device is using Watch protocol (correct port 5093), decoded message text would start with opening square bracket followed by 2 upper-case characters, followed by device id surrounded by star signs, like
[3G*8308373902*, and end with a closing square bracket. Example: