Where's the error?
HEX: 4552524f520d =ERROR https://www.traccar.org/hex-decoder/ :(
That's coming directly from your device.
I just checked the manual of my device.
command sent SA200CMD;0580011796;02;Enable1
required command
ST3300CMD;0580011796;02;
How can I add ST3300CMD to the traccar server?
You would have to modify the encoder class.
Alternatively you can also send it as a custom command.
refers to this
private String getPrefix(Channel channel) {
String prefix = "SA200CMD";
if (channel != null) {
SuntechProtocolDecoder protocolDecoder =
BasePipelineFactory.getHandler(channel.pipeline(), SuntechProtocolDecoder.class);
if (protocolDecoder != null) {
String decoderPrefix = protocolDecoder.getPrefix();
if (decoderPrefix != null && decoderPrefix.length() > 5) {
prefix = decoderPrefix.substring(0, decoderPrefix.length() - 3) + "CMD";
}
}
}
return prefix;
}
Hello, I have a problem sending the shutdown command, it shows me the following error.
Can somebody help me