it looks like I have to use websocket .. CMIIW ..
where can I find api/socket doc?
Teltonika is a proprietary binary protocol on top of TCP. HTTP and WebSocket have nothing to do with it.
no, I meant.. my mobile app will act as FMB001, and I got the data through bluetooth and I want to send to Traccar..
any idea?
this is the case-->
for some reasons, my client does not want to use SIM Card in their Teltonika FMB001, we propose them to use mobile app, our mobile app will collect FMB001's data through bluetooth (we have successfully received the data by using their software communication protocol), now I want to send them to Traccar server..
any idea?
That's exactly what I understood.
then how my app pretending as FMB001 and send the data to Traccar?
does traccar listening on /api/socket?
ws://traccar.mydomain:8082/api/socket
or
http://traccar.mydomain:8082/api/socket?
As I already said, it has nothing to do with HTTP or WebSockets. You just need to send data to port 5027 in the same format that you receive it from the device.
ok..
I tried to use SIM Card, and got the following in positions table:
attributes
{"priority":1,"sat":0,"event":240,"ignition":false,"motion":true,"workMode":1,"rssi":4,"io200":0,"gpsStatus":2,"io29":0,"io20":0,"io22":0,"io23":0,"io113":97,"pdop":0.0,"hdop":0.0,"power":12.351,"io24":0,"io205":12739,"io206":34332,"battery":4.094,"io68":0,"io13":0,"axisX":-297,"axisY":-947,"axisZ":34,"io15":0,"io25":0,"io26":0,"io27":0,"io28":0,"io86":0,"io104":0,"io106":0,"io108":0,"operator":51011,"io199":0,"io16":122734,"io12":0,"io11":896211593,"io14":6702102880,"distance":0.0,"totalDistance":1.188001959E7}
network
{"radioType":"gsm","considerIp":false,"cellTowers":[{"cellId":12739,"locationAreaCode":34332,"mobileCountryCode":510,"mobileNetworkCode":11}]}
I believe not all FMB001 attributes are available in Traccar.. CMIIW..
so in order my app acts as FMB001,
I need to match FMB001 attributes with Traccar's supported attributes to create a universal OSMAnd data format and send them to Traccar on port 5055
or perhaps you have any better way for this?
Why dont you just grab the data and save it to database?
I'm not even sure why ask here if you completely ignore any comments and do your own thing anyway.
To. Anton
I m not ignoring any comment, I need idea or suggestion and hope there is a better way.
To. Ernesto
Do you meant to grab the value and then save to traccar table?, Nice to try but I m affraid if there are some linked table that also required to be updated. Could you please let me know to what table should I save to.
Hi,
I use Teltonika FMB001, our mobile app communicate with FMB001 through bluetooth and send to TracCar using OSMAnd protocol.. this working properly..
I have an idea to pretend our app as FMB001, so the scenario as follow:
our app connect to FMB001 through bluetooth and get the data, prepare the data format to be the same as FMXXXXX protocol (I downloaded it from https://www.traccar.org/protocols/) and our app will connect to Traccar server to port 5027 and send the data.
for example: my traccar server is http://traccar.mydomain.com:5027
what command should I use to send to http://traccar.mydomain.com:5027 to pretend as FMB001? ..
do I need to use POST?
please help
thanks
Don