XML Attributes not passing to another web in some device

Rajesh8 years ago

Hello,

I had added device on port 5062 in traccar but some device sending and some device not sending attribute to another web.
for example: attributes as gsm,battery,charge,sat

please tell me how to solve this problem?

Anton Tananaev8 years ago

Are you sure those parameters are sent and decoded?

Rajesh8 years ago

yes, i am sure but i cannot seeing some attributes of some device and some device seeing.

i don't know what happen ? please help me.

Anton Tananaev8 years ago

All decoded attributes are saved in JSON or XML, so you must be missing something.

Rajesh8 years ago
<entry key='forward.url'>httpd/example.com/gogps/telnet/9002/index.php?data={uniqueId},{latitude},{longitude},{fixTime},{speed},{course},{valid},{attributes}</entry>

we are used this attributes but some device sending all required (gsm,battery,charge,sat) but some device not sending and also both device are same please check below string

1.ip:355854050087882,-37.58897,145.121155,1486977456000,0.0,230.0,false,{"rssi":15,"charge":false,"battery":"88","sat":"7","ip":"1.152.96.150","distance":0.0,"totalDistance":0.0}
yes i got above in string
"rssi":15,"charge":false,"battery":"88","sat":"7"

but i cannot getting below string

2.ip:355854050086918,-37.588951,145.121124,1486977451000,0.0,0.0,false,{"ip":"1.136.96.125","distance":0.0,"totalDistance":0.0}

in all attributes access in php script.

please check.

Anton Tananaev8 years ago

You should be getting all the same attributes in the HTTP request as you see in Traccar.

Rajesh8 years ago

yes but i have some devices attribute not seeing in php script like as “rssi”:15,”charge”:false,”battery”:”88″,”sat”:”7″ and some devices accepted in php.

this problem getting some devices

Anton Tananaev8 years ago

Do you see attributes for all device in Traccar itself?

Rajesh8 years ago

yes bro

how to solution on that

Rajesh8 years ago

have any solution for that ?

please let me know

Anton Tananaev8 years ago

What you are saying is not possible if you are using official version of Traccar.

Rajesh8 years ago

Hi,
Actually first received device attributes but we had device firmware updated then not received below Attributes {“rssi”:15,”charge”:false,”battery”:”88″,”sat”:”7″ }

if any solution on that please let me know.

Anton Tananaev8 years ago

I'm still confused about the problem.

  1. Does device send those attributes? Proof please.
  2. Does Traccar decodes those attributes? Proof please.
  3. Does Traccar not include them in the forwarding request? Proof please.

If you provide examples, they should match each other.

Rajesh8 years ago

okay we left in forum we will send in my personal mail on you mail id.we again explain on details.