Worked only via osmand protocol :(

guanch8 years ago

Probably a stupid question. What i need to configurate, that able work other protocols besides osmand?

I installed the server 3.7. In traccar.xml file I just configurate a folders names and access to mysql. With traccar client works fine. But does not work with tracker "gallileo" on port 5039. I began to send queries on random ports command "wget" under linux and found that server do not answer from any ports (exclude 5055). Yet all ports is open (i check from page traccar.org/port-check).
More specifically in the file traccar.log is visible incoming requests, but no outgoing.

for example 5055 port:

SEND:
[~] # wget 1.1.1.5:5055/?id=1122
--2016-10-05 13:29:13--  http://1.1.1.5:5055/?id=1122
Connecting to 1.1.1.5:5055... connected.
HTTP request sent, awaiting response... 200 OK
RESPONSE:
2016-10-05 10:30:07  INFO: [06EBEB3E] connected
2016-10-05 10:30:07 DEBUG: [06EBEB3E: 5055 < 1.1.1.1] HEX: 474554202f3f69643d3131323220485454502f312e310d0a486f73743a20312e312e312e353a353035350d0a557365722d4167656e743a20576765740d0a436f6e6e656374696f6e3a20636c6f73650d0a0d0a

2016-10-05 10:30:07 DEBUG: [06EBEB3E: 5055 > 1.1.1.1] HEX: 485454502f312e3120323030204f4b0d0a436f6e74656e742d4c656e6774683a20300d0a0d0a

2016-10-05 10:30:07  INFO: [06EBEB3E] disconnected

2016-10-05 10:30:07  INFO: [06EBEB3E] id: 1122, time: 2016-10-05 10:30:07, lat: 0.00000, lon: 0.00000, speed: 0.0, course: 0.0

other ports:

SEND:
[~] # wget 1.1.1.5:5039/?#L#1122;test\r\n#SD#010112;123900;6000.0000;N;13000.0000;E;0;0;0;4\r\n
Connecting to 1.1.1.5:5039... connected.
HTTP request sent, awaiting response...
RESPONSE:
2016-10-05 10:43:45  INFO: [3C3BFD28] connected

2016-10-05 10:43:45 DEBUG: [3C3BFD28: 5039 < 1.1.1.5] HEX: 474554202f3f20485454502f312e310d0a557365722d4167656e743a20576765742f312e313620286c696e75782d676e75290d0a4163636570743a202a2f2a0d0a486f73743a20312e312e312e353a353033390d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a0d0a

2016-10-05 10:46:18  INFO: [3C3BFD28] disconnected 
SEND:
[~] # wget 1.1.1.5:5001/?imei:1122,helpme,1201011201,,F,120100.000,A,6000.0000,N,13000.0000,E,0.00,;
--2016-10-05 13:46:59--  http://1.1.1.5:5001/?bla-bla
Connecting to 1.1.1.5:5001... connected.
HTTP request sent, awaiting response...
RESPONSE:
2016-10-05 10:56:49  INFO: [826E59FF] connected

2016-10-05 10:56:49 DEBUG: [826E59FF: 5001 < 1.1.1.5] HEX: 474554202f3f696d65693a313132322c68656c706d652c313230313031313230312c2c462c3132303130302e3030302c412c363030302e303030302c4e2c31333030302e303030302c452c302e30302c20485454502f312e310d0a557365722d4167656e743a20576765742f312e313620286c696e75782d676e75290d0a4163636570743a202a2f2a0d0a486f73743a20312e312e312e353a353030310d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a0d0a

2016-10-05 10:58:12  INFO: [826E59FF] disconnected
Anton Tananaev8 years ago

Not sure why you are sending "wget". Most protocols are NOT HTTP, so they won't answer your HTTP requests.

Do you receive any data from your galileo device (do you see any HEX in the logs)?

guanch8 years ago

I see in log only incoming data from tracker/wget/browser. Only via 5055 port work both ways.
If i right understund the server should respond to any (even incorrect) requests? At least as 400 error?

Anton Tananaev8 years ago

That's not correct. It's NOT an HTTP server, so obviously it won't return you HTTP error code 400 or any other.

guanch8 years ago

well, in that case, how do I test the functionality of the protocol Galileo (or any other) without connecting real devices?

Anton Tananaev8 years ago

You can send TCP messages. I have a special script for that:

https://github.com/tananaev/traccar/blob/master/tools/hex.sh