SmartWatch and commandResult

Ibrahim8 months ago

Hello team,
After several attempts, I'm reaching out to you to resolve my issue. I'm using a Chinese smartwatch connected to a server via port 5093. Although I manage to retrieve GPS data and other information, I'm facing difficulties displaying additional data such as the version, even after activating the commandResult option in settings and notifications. I also notice a lack of data in the tc_events table.
Could it be that Traccar is unable to decode the received data, or have I misconfigured the web interface?
I want to inform you that I attempted decoding on the Traccar website (https://www.traccar.org/hex-decoder/) and obtained the following result: [3G*9705260142*0036*VERNO,C401_F10_RFHZ_V48_240_V1.0_H_2024.01.02_11.11.00]
Here's an example of a command and response:

2024-03-02 19:04:54  INFO: [T0accfb85] id: 9705260142, command type: custom sent
2024-03-02 19:04:54  INFO: [T0accfb85: watch > 197.149.244.33] 5b53472a393730353236303134322a303030352a5645524e4f5d
2024-03-02 19:04:55  INFO: [T0accfb85: watch < 197.149.244.33] 5b33472a393730353236303134322a303033362a5645524e4f2c433430315f4631305f5246485a5f5634385f3234305f56312e305f485f323032342e30312e30
2024-03-02 19:04:55  INFO: [T0accfb85: watch < 197.149.244.33] 325f31312e31312e30305d

Thank you for your assistance and advice.

Anton Tananaev8 months ago

It's probably not supported in the decoder yet.

Ibrahim8 months ago

Thank you for your response. So, the only means for now is to resort to the source code and add functionality?

Anton Tananaev8 months ago

Correct.

Ibrahim8 months ago

Thank you for your response.

Ibrahim8 months ago

Another question: Is it possible to transmit undecoded data via MQTT? If so, what type of key should be used? Thank you.

Anton Tananaev8 months ago

No.

Ibrahim8 months ago

Ah, okay. So, in the database, what type of key should be used, if any?

Anton Tananaev8 months ago

I don't understand the question.

Ibrahim8 months ago

If I want to store the raw data in the database, what configuration should I apply, and which table will the data be saved in?

Anton Tananaev8 months ago

That's up you to decide.

Ibrahim8 months ago

What configuration settings do I need to adjust, and in which table will the data be stored?

Anton Tananaev8 months ago

As I told you from the beginning, you have to implement it in the code.

Ibrahim8 months ago

Alright, thank you very much for your help.