Still noob, now trying to connect 'real' device -

Everything worked flawlessly with my phone which I used for testing.

Now I try to connect with the real hardware (gps103b).

I connect over USB into the device and set the parameters as below in user_config.ini:

OldPassword:123456; (Only support 6 digits)
NewPassword:123456; (Only support 6 digits)
admin:0043676800555485;;;;; (Support set 5 admin numbers)
timezone:8.00; (from -12 to 12.75)
apn:web.yesss.at;;; (APN;user;password;)
adminip:67.229.77.202:9000; (IP:port)
gprs:1,0; (First:0 sms,1 gprs; Second:0 no lessgprs,1 lessgprs)
tcpudp:0,0; (First:0 answer,1 no answer; Second:0 TCP,1 UDP)
sleep:2; (0:sleep time,1:sleep shock,2:sleep off,3:deepshock)
suppress:1; (0 off,1 on)
angle:15; (Only support 3 digits)
fix:,0s,0s,0n,+43676800555485; (First:0 off,1 on; Second:interval; Third:interval_ex; Fourth:times; Fifth:number)
dns:0;04.GPSTrackerXY.com;9000; (First:0 off,1 on;Second:dns;Third:port)
sensitivity:1; (1:mild vibration,2:moderate vibration,3:severe vibration)

... and now I am stuck:

  1. What is the adminip?
    My outside ip address on which the server runs?
    the port is the receiving port? 5001? (at my android it was 5055) and do I need to poke a hole with ngrok?
  2. What is the dns for? (if I use a name instead of the ip address in 1)?) If that's the case, I can set it to 0?
    '_________________________________________'
  3. How do I tell the server what kind of a device it is? On the server as identifier when I create it? I read it should be the IMEI. Should it rather be gps103 instead?
  4. After I saved the file .... what now for the device to load the changed parms? When I turn the device off and on the file reverted back to what it was.

I appreciate any help, be it a link, a verbal explanation, a hunch, ... that I can get

leninweblb6 years ago

1) What is the adminip?
That's the IP ADDRESS of your website, in other words, where you installed Traccar.

2) What is the dns for? (if I use a name instead of the ip address in 1)?) If that's the case, I can set it to 0?
If you are going to use an IP ADDRESS in adminip, you don't need that. Set: 0.

3) How do I tell the server what kind of a device it is? On the server as identifier when I create it? I read it should be the IMEI. Should it rather be gps103 instead?
Take a look here: https://www.traccar.org/devices/
This page is going to give you the name of the protocol and the port that you will use.

4) After I saved the file .... what now for the device to load the changed parms? When I turn the device off and on the file reverted back to what it was.
I can't understand this question

Best Regards
Lenin

Thank you, (you carry a great name :) )
Let's assume that I received from 'whatismyip' the info that my outside-ip address is "67.229.77.202",
that the sim's phone number is +43 (676) 800-555-485

Therefore I set:
line 3 to '0043676800555485'
line 5 to my wireless ISP's APN 'web.yesss.at'
line 6 to '67.229.77.202'. What is the port number? The web interface is 8082 and can't be it. The gps103b's port is according to the list in '../devices' 5001, so I set the port to the value from 9000 (the default) to 5001 in the list?
line 7: gprs (=0) and momentarily no timeout (=0)
line 8 I don't know what First:0 answer,1 no answer means, since a silent gps would be useless. I don't seem to grasp the paramter's function. I set it to 0=answer. Since I don't know better I go for tcp as udp may lose packets and does not sound best for p2p connections, but I may be wrong
line 9: no sleeping = 2
line13: since I use momentarily a direct ip address i set dns to 0

does that make sense?

1 OldPassword:123456; (Only support 6 digits)
2 NewPassword:123456; (Only support 6 digits)
3 admin:0043676800555485;;;;; (Support set 5 admin numbers)
4 timezone:8.00; (from -12 to 12.75)
5 apn:web.yesss.at;;; (APN;user;password;)
6 adminip:67.229.77.202:9000; (IP:port)
7 gprs:0,0; (First:0 sms,1 gprs; Second:0 no lessgprs,1 lessgprs)
8 tcpudp:0,0; (First:0 answer,1 no answer; Second:0 TCP,1 UDP)
9 sleep:2; (0:sleep time,1:sleep shock,2:sleep off,3:deepshock)
10 suppress:1; (0 off,1 on)
11 angle:15; (Only support 3 digits)
12 fix:,0s,0s,0n,+43676800555485; (First:0 off,1 on; Second:interval; Third:interval_ex; Fourth:times; Fifth:number)
13 dns:0;04.GPSTrackerXY.com;9000; (First:0 off,1 on;Second:dns;Third:port)
14 sensitivity:1; (1:mild vibration,2:moderate vibration,3:severe vibration)

At the web interface I create a device like that:
https://drive.google.com/open?id=1Xij2V1nYKL3dNR_XM9UFwGwhbjKAF6gv

and since I place the string 'gps103' from the list into 'identifier' the software knows that it has to use port 5001?

And finally:

I set port forwarding of #5001 to the local ip address

I make those changes in the file via usb connection. and restart the gps as well as the server and see in the log:

2018-06-08 11:36:40  WARN: One of the protocols is disabled due to port conflict
2018-06-08 11:36:41  WARN: One of the protocols is disabled due to port conflict
2018-06-08 11:36:41  WARN: One of the protocols is disabled due to port conflict
2018-06-08 11:36:41  WARN: One of the protocols is disabled due to port conflict
2018-06-08 11:36:41  WARN: One of the protocols is disabled due to port conflict
Anton Tananaev6 years ago

Identifier is the identifier of your device, not the protocol name. Usually most devices use IMEI as identifier.

Markus Grotjans6 years ago

Hallo,
die ID (Identifier) ist in der Regel auf dem Tracker aufgeklebt. (War bei mir so) Einige nutzen dafür aber auch die IMEI des Trackers.
Ich hatte Geräte die nutzen aber nur die letzten 10 oder auch 12 Stellen der IMEI als ID! Dabei musste dann abschliessend die erste Stelle durch eine 0 ersetzt werden. Der Port 5001 ist beim gps103 Protokoll aber Pflicht in Traccar!
Das würde ich erst einmal versuchen! Das Portforwarding ist gut, aber ich würde ebenfalls am Server den Port 5001 in der Firewall frei machen.

Markus Grotjans6 years ago

Hier noch etwas zur IMEI und ID:
https://www.traccar.org/clones/

I am sooo ashamed to have to confess: Yeah, I poked a hole into the router, but I did not put 5001 as an exception into my ZoneAlarm. The router gladly forwarded the packets where the firewall ate it.

There was no error message in traccar, since it did not receive a packet and there was no error in the trackers since the packet arrived at the router where it was forwarded happily to the server where the firewall chomped it up.

Other noobs may profit from my failure to consider the whole route from the tracker to server and back.
https://www.traccar.org/port-check/ helps enormously.

'Zonealarm Free' does not allow single port nor port range exceptions, btw.

Thank you, everyone, for your help diagnosing my problem.

I also remarked-out all ports other than the one that I need (5001) in the 'default.xml'.

To conclude: traccar now ticks effortlessly like a Swiss Watch!

@ Markus Grotjans: Danke, das war die Loesung! Thanks, your diagnosis was perfect!