aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/test.sh87
1 files changed, 80 insertions, 7 deletions
diff --git a/tools/test.sh b/tools/test.sh
index e4655aa79..269c7009b 100755
--- a/tools/test.sh
+++ b/tools/test.sh
@@ -1,11 +1,7 @@
-#!/bin/bash
# testing data:
-# imei - 123456789012345
-# id - 123456 (trackers that dont send imei)
-# time - 12:0X (where X is different for each tracker)
-# server - localhost
-# ports - default
+# ids - 123456789012345 (32), 123456789012 (1), 123456 (2)
+# time - 12:00 + X min (where X is protocol number)
# to verify test check database entries
@@ -16,7 +12,7 @@ echo "1. gps103"
(echo -n -e "imei:123456789012345,help me,1201011201,,F,120100.000,A,6000.0000,N,13000.0000,E,0.00,;";) | nc -v localhost 5001
echo "2. tk103"
-(echo -n -e "(000000000000BP05123456789012345120101A6000.0000N13000.0000E000.0120200000.0000000000L000946BB)";) | nc -v localhost 5002
+(echo -n -e "(123456789012BP05123456789012345120101A6000.0000N13000.0000E000.0120200000.0000000000L000946BB)";) | nc -v localhost 5002
echo "3. gl100"
(echo -n -e "+RESP:GTSOS,123456789012345,0,0,0,1,0.0,0,0.0,1,130.000000,60.000000,20120101120300,0460,0000,18d8,6141,00,11F0,0102120204\0";) | nc -v localhost 5003
@@ -83,3 +79,80 @@ echo "23. gt06"
echo "24. megastek"
(echo -n -e "STX,102110830074542,\$GPRMC,122400.000,A,6000.0000,N,13000.0000,E,0.00,0.00,010112,,,A*64,F,LowBattery,imei:123456789012345,03,113.1,Battery=24%,,1,460,01,2531,647E;57\r\n";) | nc -v localhost 5024
+
+echo "25. navigil"
+
+
+echo "26. gpsgate"
+(echo -n -e "\$FRLIN,IMEI,123456789012345,*7B\r\n\$GPRMC,122600.000,A,6000.00000,N,13000.00000,E,0.000,0.0,010112,,*0A";) | nc -v localhost 5026
+
+echo "27. teltonika"
+
+
+echo "28. mta6"
+
+
+echo "29. mta6can"
+
+
+echo "30. tlt2h"
+(echo -n -e "#123456789012345#V500#0000#AUTO#1\r\n#\$GPRMC,123000.000,A,6000.0000,N,13000.0000,E,0.00,0.00,010112,,,D*70\r\n##";) | nc -v localhost 5030
+
+echo "31. syrus"
+(echo -n -e ">REV481669045060+6000000-1300000000000012;ID=123456789012345<";) | nc -v localhost 5031
+
+echo "32. wondex"
+(echo -n -e "123456789012345,20120101123200,130.000000,60.000000,0,000,0,0,2\r\n";) | nc -v localhost 5032
+
+echo "33. cellocator"
+
+
+echo "34. galileo"
+
+
+echo "35. ywt"
+(echo -n -e "%RP,123456789012345:0,120101123500,E130.000000,N60.000000,,0,0,4,0,00\r\n";) | nc -v localhost 5035
+
+echo "36. tk102"
+(echo -n -e "[!0000000081r(123456789012345,TK102-W998_01_V1.1.001_130219,255,001,255,001,0,100,100,0,internet,0000,0000,0,0,255,0,4,1,11,00)][=00000000836(ITV123600A6000.0000N13000.0000E000.00001011210010000)]";) | nc -v localhost 5036
+
+echo "37. intellitrac"
+(echo -n -e "123456789012345,20120101123700,130.000000,60.000000,0,0,0,7,0,11,15\r\n";) | nc -v localhost 5037
+
+echo "38. xt7"
+
+
+echo "39. wialon"
+(echo -n -e "#L#123456789012345;test\r\n#SD#010112;123900;6000.0000;N;13000.0000;E;0;0;0;4\r\n";) | nc -v localhost 5039
+
+echo "40. carscop"
+(echo -n -e "*040331141830UB05123456789012345010112A6000.0000N13000.0000E000.0124000000.0000000000L000000^";) | nc -v localhost 5040
+
+echo "41. apel"
+
+
+echo "42. manpower"
+(echo -n -e "simei:123456789012345,,,tracker,51,24,1.73,120101124200,A,6000.0000,N,13000.0000,E,0.00,28B9,1DED,425,01,1x0x0*0x1*60x+2,en-us,;";) | nc -v localhost 5042
+
+echo "43. globalsat"
+(echo -n -e "\$123456789012345,1,1,010112,124300,E13000.0000,N6000.0000,00000,0.0100,147,07,2.4!";) | nc -v localhost 5043
+
+echo "44. atrack"
+
+
+echo "45. pt3000"
+(echo -n -e "%123456789012345,\$GPRMC,124500.000,A,6000.0000,N,13000.0000,E,0.00,,010112,,,A,+100000000000,N098d";) | nc -v localhost 5045
+
+echo "46. ruptela"
+
+echo "47. topflytech"
+(echo -n -e "(123456789012345BP00XG00b600000000L00074b54S00000000R0C0F0014000100f0120101124700A6000.0000N13000.0000E000.0000.00)";) | nc -v localhost 5047
+
+echo "48. laipac"
+(echo -n -e "\$AVRMC,123456789012345,124800,a,6000.0000,N,13000.0000,E,0.00,0.00,010112,0,3.727,17,1,0,0*17\r\n";) | nc -v localhost 5048
+
+echo "49. aplicom"
+
+
+echo "50. gotop"
+(echo -n -e "#123456789012345,CMD-T,A,DATE:120101,TIME:125000,LAT:60.0000000N,LOT:130.0000000E,Speed:000.0,84-20,000#";) | nc -v localhost 5050