Can't configure devices

Neha Sharma7 years ago

I am following this tutorial https://www.traccar.org/quick-start/ to configure my device using my server http://198.211.21.XX:8082.

And also configuring my device using traccar client app with following details:

Device identifier: random int no 56745
Server address: 198.211.21.XX
Server port: 5055
Frequency: 5

I am working on linux system.

Can not getting parameters of my device and its position id to null inside device table and whole system is not working. Facing problem last 10 days but before i was able to configure my device with following settings

Kindly help me to configure my device and tell me is there any limit to configure devices on traccar.
Thanks,

Anton Tananaev7 years ago
Malkit Singh7 years ago

try to connect with traccar client and see if this works, if it works then it is confirm that you are trying on wrong port no. for your device.
I faced similar kind of problem and then after 2 days of r&d I figured out I was trying on wrong port for my device.

Neha Sharma7 years ago

can't get what you are saying kindly share some technical details also how you are configuring your device using traccar client app and Web.

We are using port no: 5055

Malkit Singh7 years ago
  1. Install traccar web on your dev/production server.
  2. Make sure your firewalls allow incoming connection to this port range 5001-5118
  3. Install traccar client app on your iOS or Android device.
  4. For iOS device ( lets say ur IP is 123.456.789.012, then enter 123.456.789.012 in server address and 5055 in server port)
  5. Copy device identifier from your app and add this in your traccar server web interface.

If all is good and your server is configured properly then you should see some logs and data on your server.
Make sure you turned tracking service on from mobile app and give appropriate permission to app.

Hope this will help you to get start.

Neha Sharma7 years ago

Firewall settings is managed by my antivirus which is turned off and we have inserted range of ports in our firewall advanced settings.

  1. How do we test that my pc firewall allow incoming connection to this port range 5001-5118.
  2. We have already tested by copied device identifier to Traccar web panel but still not working.

looking forward for your reply. Thanks in advance.

Malkit Singh7 years ago

You can use this link to test functionality of port
https://www.traccar.org/port-check/
Is your server hosted on cloud like AWS or Azure etc. If it is, then make sure you allow this port range in your cloud's console panel security group.

Neha Sharma7 years ago

I followed the above link you have given to check port result was port is closed. There is also another problem when i open position table the overall data is not visible except table's field.

And i also checked the logs from past few dates i am getting 2016-11-16 00:00:00 WARN: netty warning: Failed to accept a connection.

Thanks for precious time. looking foreword your answer

Anton Tananaev7 years ago

I see three different problems. I would suggest to solve them one by one. Closed port means that something blocks connection. Possibly firewall or router.

Malkit Singh7 years ago

@Neha Sharma
Now you know, ports of your server are closed ( where your device is trying to send data) get these ports open otherwise, there is no way to see any data in positions table :D.
All the best (Y)

Neha Sharma7 years ago

I contacted our server team and they resolve the problem off port now i am getting status port is open for 5055 now still cant able to configure any device on traccar and still not able open position table.

And i see inside the log file genrated logs on date 18 nov:

2016-11-18 10:50:44 DEBUG: [2DF2EE8A: 5000 <- 93.115.29.159] - HEX: 4f5054494f4e53207369703a313030403139382e3231312e32312e3637205349502f322e300d0a5669613a205349502f322e302f5544502039332e3131352e32392e3135393a353038313b6272616e63683d7a39684734624b2d323637383734303937393b72706f72740d0a436f6e74656e742d4c656e6774683a20300d0a46726f6d3a2022436973636f223c7369703a31303040312e312e312e313e3b7461673d363333363634333333313335333433333331333333383338303133323339333533383334333033373337333833310d0a4163636570743a206170706c69636174696f6e2f7364700d0a557365722d4167656e743a20436973636f2d534950476174657761792f494f532d31322e780d0a546f3a2022436973636f223c7369703a31303040312e312e312e313e0d0a436f6e746163743a207369703a3130304039332e3131352e32392e3135393a353038310d0a435365713a2031204f5054494f4e530d0a43616c6c2d49443a203834363239333039313633373735363133353530353330370d0a4d61782d466f7277617264733a2037300d0a0d0a
2016-11-18 10:50:44  WARN: Unknown device - 8316301582151987264
2016-11-18 10:50:44  WARN: Unknown device - 1414090574

The problem is as it is same kindly help.

Anton Tananaev7 years ago

That's not a message from your device.

Malkit Singh7 years ago

opening particular port won't help until you are not sure port number your device communicates to.
Here are few more things which you can do.

  1. Open this port range 5100 to 5118.
  2. Try to add that unknown device (1414090574) in your admin panel.
Neha Sharma7 years ago

We have port range 5001 to 5086 is open so is it necessary to open ports from 5100 to 5118 range?

Thanks for your quick reply.

Malkit Singh7 years ago

it's not necessary if you are sure your device is listening on which port, but if you don't know then it's safe to open this range. Most of the devices communicate in this range ( GPS trackers).
But you need to figure out which port your device speaks to because in the end you need to send this command to your device through sms/usb.
adminip123456 12.34.56.78:5013
where 123456 is your device admin password.
12.34.56.78 is your server ip
5013 is port number where your device sends data.