Addig my map caused an unexpected issue.

Hello!

I have been trying to set up a tracking service for a long time and came across with openremote.

I have got a hand full of Teltonika FMC920s and FMC230s.

Setup was starigt forward using the guide, I run this in a docker image on a windows machine.

I was able to connect one of each type and get some data without location as I am sitiing inside.

image

So I went ahead and started doing what is written in the “Developer Guide: Working on maps” and watched the video on YouTube “How to: white labeling of your free open source IoT platform” here I have jumped right to the part where he is talking about the custom map.

Since than I have a nice map which is for some reasons not even centered (I have the right coordinates)

But I did not get any data form the devices, even tried a new one and the following error pops up in the docker logs:

2024-11-05 23:05:49 manager-1     | 2024-11-05 23:05:49.225  INFO    [Thread-0 (ActiveMQ-serve..7fc)] nager.mqtt.ActiveMQORSecurityManager.API : Un-supported request sub: topic=master/002/867747072572702/commands, connection=/172.20.0.5:34364, clientID=867747072572702, subject=anonymous
2024-11-05 23:05:50 manager-1     | 2024-11-05 23:05:50.708  INFO    [Thread-1 (ActiveMQ-serve..7fc)] nager.mqtt.ActiveMQORSecurityManager.API : Un-supported request pub: topic=master/002/867747072572702/data, connection=/172.20.0.5:34364, clientID=867747072572702, subject=anonymous
2024-11-05 23:05:50 manager-1     | 2024-11-05 23:05:50.709  SEVERE  [Thread-1 (ActiveMQ-serve..7fc)] ache.activemq.artemis.core.protocol.mqtt : AMQ834002: Error processing control packet: MqttPublishMessage[fixedHeader=MqttFixedHeader[messageType=PUBLISH, isDup=false, qosLevel=AT_MOST_ONCE, isRetain=false, remainingLength=249], variableHeader=MqttPublishVariableHeader[topicName=master/002/867747072572702/data, packetId=-1], payload=PooledSlicedByteBuf(ridx: 0, widx: 216, cap: 216/216, unwrapped: PooledUnsafeDirectByteBuf(ridx: 252, widx: 252, cap: 1024))]
2024-11-05 23:05:50 manager-1     | ActiveMQSecurityException[errorType=SECURITY_EXCEPTION message=AMQ229032: User: null does not have permission='SEND' on address master.002.867747072572702.data]
2024-11-05 23:05:50 manager-1     |     at org.apache.activemq.artemis.core.security.impl.SecurityStoreImpl.check(SecurityStoreImpl.java:315)
2024-11-05 23:05:50 manager-1     |     at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.securityCheck(ServerSessionImpl.java:509)
2024-11-05 23:05:50 manager-1     |     at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.doSend(ServerSessionImpl.java:2301)
2024-11-05 23:05:50 manager-1     |     at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:1934)
2024-11-05 23:05:50 manager-1     |     at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:1873)
2024-11-05 23:05:50 manager-1     |     at org.apache.activemq.artemis.core.protocol.mqtt.MQTTPublishManager.sendToQueue(MQTTPublishManager.java:241)
2024-11-05 23:05:50 manager-1     |     at org.apache.activemq.artemis.core.protocol.mqtt.MQTTProtocolHandler.handlePublish(MQTTProtocolHandler.java:322)
2024-11-05 23:05:50 manager-1     |     at org.apache.activemq.artemis.core.protocol.mqtt.MQTTProtocolHandler.act(MQTTProtocolHandler.java:162)
2024-11-05 23:05:50 manager-1     |     at org.apache.activemq.artemis.utils.actors.Actor.doTask(Actor.java:32)
2024-11-05 23:05:50 manager-1     |     at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:68)
2024-11-05 23:05:50 manager-1     |     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
2024-11-05 23:05:50 manager-1     |     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
2024-11-05 23:05:50 manager-1     |     at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118)

So I am a big clueless at his point. Not to mention this is my first docker experience as well.

And comment is highly appreciated that might move us forward.

Greetings,
Zoszko

Good afternoon @Zoszko ,

It appears that you’ve made a mistake when configuring your Teltonika devices.

From the error message, I see that you have used master/002/%imei%/commands or data. The correct topics to use in the configuration, as shown in the quick-start are like

  • {realm Name}/{random client ID}/teltonika/%imei%/data
  • {realm Name}/{random client ID}/teltonika/%imei%/commands

So in your case, configure your device like this:

  • master/002/teltonika/%imei%/data
  • master/002/teltonika/%imei%/commands

On the map issue you’re facing, maybe it’ll help if you reverse the latitude and longitude values in your input to the map configuration.

Let me know if this solves the issue!