Protocol for FlexTrack Lommy?

bjarni9 years ago

Does any of the TracCar protocols support the FlexTrack Lommy GPS device with the protocol defined in this document:

http://www.flextrack.dk/files/FlextrackPhoenix.pdf

I think it is the <UNITSTAT> message (page 33-34) and the 'FlexCI communication protocol' (page 40ff) which is most relevant for this purpose.

/bjarni

Anton Tananaev9 years ago

I don't think it's supported, but it should be fairly easy to implement. I need some message samples. Do you have the device? If yes, you can configure it to send to any Traccar port to get sample data (HEX messages in the tracker-server.log file).

bjarni9 years ago

Yes I have a device and will try to connect it later today to get some sample HEX-messages.

bjarni9 years ago

I have configured my FlexTrack Lommy unit to connect on port 55055 (altenativly port 55005) and so far this is all I get (-1,LOGON,1080424008,8945020110126633198) I guess it is waiting for a reply from the server:

2015-09-24 07:22:07  WARN: Connection reset by peer - java.io.IOException (FileDispatcherImpl.java:-2)
2015-09-24 07:22:07  INFO: Closing connection by exception
2015-09-24 07:22:07  INFO: Closing connection by disconnect
2015-09-24 07:24:16 DEBUG: [2BA6AF2A: 55005 <- 94.144.63.19] - HEX: 2d312c4c4f474f4e2c313038303432343030382c383934353032303131303132363633333139380d
2015-09-24 07:25:38  WARN: Connection reset by peer - java.io.IOException (FileDispatcherImpl.java:-2)
2015-09-24 07:25:38  INFO: Closing connection by exception
2015-09-24 07:25:38  INFO: Closing connection by disconnect
2015-09-24 07:27:46 DEBUG: [337CF0D6: 55005 <- 94.144.63.19] - HEX: 2d312c4c4f474f4e2c313038303432343030382c383934353032303131303132363633333139380d
2015-09-24 07:29:08  WARN: Connection reset by peer - java.io.IOException (FileDispatcherImpl.java:-2)
2015-09-24 07:29:08  INFO: Closing connection by exception
Anton Tananaev9 years ago

I have implemented protocol. Here is a new build for testing:

https://www.dropbox.com/s/myt68q5u7fiz49r/tracker-server-jar-with-dependencies.jar?dl=0

You need to add following line to the config:

<entry key='flextrack.port'>5090</entry>
bjarni9 years ago

Thank you very much. I'll try it over the weekend.

bjarni9 years ago

Hi
at last I managed to install your new build, but I still get problems when I try to attach my flextrack unit:

2015-09-29 07:42:13  INFO: [E35B3CB3] connected
2015-09-29 07:42:16 DEBUG: [E35B3CB3: 55090 < 94.144.63.25] HEX: 2d312c4c4f474f4e2c313038303432343030382c383934353032303131303132363633333139380d
2015-09-29 07:43:38  WARN: [E35B3CB3] error - Connection reset by peer - IOException (...)
2015-09-29 07:43:38  INFO: [E35B3CB3] disconnected
2015-09-29 07:45:44  INFO: [80C1D43C] connected
2015-09-29 07:45:48 DEBUG: [80C1D43C: 55090 < 94.144.63.25] HEX: 2d312c4c4f474f4e2c313038303432343030382c383934353032303131303132363633333139380d
2015-09-29 07:47:09  WARN: [80C1D43C] error - Connection reset by peer - IOException (...)
2015-09-29 07:47:09  INFO: [80C1D43C] disconnected
2015-09-29 07:49:15  INFO: [E8D14B21] connected
2015-09-29 07:49:19 DEBUG: [E8D14B21: 55090 < 94.144.63.25] HEX: 2d312c4c4f474f4e2c313038303432343030382c383934353032303131303132363633333139380d
2015-09-29 07:50:40  WARN: [E8D14B21] error - Connection reset by peer - IOException (...)
2015-09-29 07:50:40  INFO: [E8D14B21] disconnected
2015-09-29 07:52:46  INFO: [F912A12B] connected
2015-09-29 07:52:49 DEBUG: [F912A12B: 55090 < 94.144.63.25] HEX: 2d312c4c4f474f4e2c313038303432343030382c383934353032303131303132363633333139380d
2015-09-29 07:54:10  WARN: [F912A12B] error - Connection reset by peer - IOException (...)
2015-09-29 07:54:10  INFO: [F912A12B] disconnected
2015-09-29 07:54:31  INFO: [A9DEB474] connected
2015-09-29 07:54:34 DEBUG: [A9DEB474: 55090 < 94.144.63.25] HEX: 2d312c4c4f474f4e2c313038303432343030382c383934353032303131303132363633333139380d
2015-09-29 07:55:55  WARN: [A9DEB474] error - Connection reset by peer - IOException (...)
2015-09-29 07:55:55  INFO: [A9DEB474] disconnected
2015-09-29 07:56:16  INFO: [D26FD981] connected
2015-09-29 07:56:19 DEBUG: [D26FD981: 55090 < 94.144.63.25] HEX: 2d312c4c4f474f4e2c313038303432343030382c383934353032303131303132363633333139380d

the last part of my conf-file looks like this:

    <entry key='castel.port'>55086</entry>
    <entry key='mxt.port'>55087</entry>
    <entry key='cityeasy.port'>55088</entry>
    <entry key='flextrack.port'>55090</entry>

</properties>
bjarni8 years ago

I have attached the FlexTrack unit to demo.traccar.org:5090 if it can be to any help.

Anton Tananaev8 years ago

I have fixed the problem with LOGON message. I will provide a new build later today.

As for demo, it uses latest official release, so it doesn't include this protocol yet. I will support it with next release of Traccar server.

Anton Tananaev8 years ago
bjarni8 years ago

Now it looks a little better - but:

2015-09-30 18:27:33 DEBUG: [CF4CD9B1: 55090 < 94.144.63.25] HEX: 2d312c4c4f474f4e2c313038303432343030382c383934353032303131303132363633333139380d
2015-09-30 18:27:33 DEBUG: [CF4CD9B1: 55090 > 94.144.63.25] HEX: 2d312c41434b0d
2015-09-30 18:27:39 DEBUG: [CF4CD9B1: 55090 < 94.144.63.25] HEX: 2d322c554e4954535441542c32303036303130312c3132333434322c313038303432343030382c4e302e30302e303030302c45302e30302e303030302c302c302c302c343132392c2d36312c322c32333836362c302c3939392c413231342c36332c324545322c333437313637360d
2015-09-30 18:28:55  WARN: [CF4CD9B1] error - Connection reset by peer - IOException (...)
2015-09-30 18:28:55  INFO: [CF4CD9B1] disconnected
2015-09-30 18:29:16  INFO: [D789F782] connected
2015-09-30 18:29:20 DEBUG: [D789F782: 55090 < 94.144.63.25] HEX: 2d312c4c4f474f4e2c313038303432343030382c383934353032303131303132363633333139380d
2015-09-30 18:29:20 DEBUG: [D789F782: 55090 > 94.144.63.25] HEX: 2d312c41434b0d
2015-09-30 18:29:25 DEBUG: [D789F782: 55090 < 94.144.63.25] HEX: 2d322c554e4954535441542c32303036303130312c3132333434322c313038303432343030382c4e302e30302e303030302c45302e30302e303030302c302c302c302c343132392c2d36312c322c32333836362c302c3939392c413231342c36332c324545322c333437313637360d
2015-09-30 18:30:41  WARN: [D789F782] error - Connection reset by peer - IOException (...)
2015-09-30 18:30:41  INFO: [D789F782] disconnected
2015-09-30 18:31:02  INFO: [2B40BD3A] connected
2015-09-30 18:31:05 DEBUG: [2B40BD3A: 55090 < 94.144.63.25] HEX: 2d312c4c4f474f4e2c313038303432343030382c383934353032303131303132363633333139380d
2015-09-30 18:31:05 DEBUG: [2B40BD3A: 55090 > 94.144.63.25] HEX: 2d312c41434b0d
2015-09-30 18:31:11 DEBUG: [2B40BD3A: 55090 < 94.144.63.25] HEX: 2d322c554e4954535441542c32303036303130312c3132333434322c313038303432343030382c4e302e30302e303030302c45302e30302e303030302c302c302c302c343132392c2d36312c322c32333836362c302c3939392c413231342c36332c324545322c333437313637360d
2015-09-30 18:32:27  WARN: [2B40BD3A] error - Connection reset by peer - IOException (...)
2015-09-30 18:32:27  INFO: [2B40BD3A] disconnected
2015-09-30 18:32:48  INFO: [7E81EE2B] connected
2015-09-30 18:32:51 DEBUG: [7E81EE2B: 55090 < 94.144.63.25] HEX: 2d312c4c4f474f4e2c313038303432343030382c383934353032303131303132363633333139380d
2015-09-30 18:32:51 DEBUG: [7E81EE2B: 55090 > 94.144.63.25] HEX: 2d312c41434b0d
2015-09-30 18:32:58 DEBUG: [7E81EE2B: 55090 < 94.144.63.25] HEX: 2d322c554e4954535441542c32303036303130312c3132333434322c313038303432343030382c4e302e30302e303030302c45302e30302e303030302c302c302c302c343132392c2d36312c322c32333836362c302c3939392c413231342c36332c324545322c333437313637360d
Anton Tananaev8 years ago
bjarni8 years ago

Works like a dream. Thank you.

bjarni8 years ago

Just a little question: I noticed that all positions inserted are marked "valid = false". What makes them not valid?

Anton Tananaev8 years ago

It was another small issue with decoder. Fixed now.