1

Unit 'A' triggers send command to unit 'B'

Topic: Unit 'A' triggers send command to unit 'B'

Does anyone know if it is at all possible to have one unit's properties or state trigger a command to a second unit?

Scenario: Unit 'A' is in a trailer with a security system that alerts if the trailer is broken into. We wish to have the state of the alarm system report to the driver silently in the cab that has telematics unit B. We could achieve all the possible states through a tractor trailer wiring (Suzie) connection, but this relies upon permanent connection and could provide a single point of failure or for a criminal to cut the wires externally. If we could achieve this via GPRS and Wialon, this is more secure and harder to attack.

I can not see how we can trigger a command to be sent based on the status of a different unit that the one that is the trigger / notification source.

There is of course other scenarios that this would be useful for, but I do not wish to divulge some of our more sensitive work, and we know we could have the units communicate directly over a Bluetooth channel, but the same cabs and trailers are not always used together.

2

Unit 'A' triggers send command to unit 'B'

Re: Unit 'A' triggers send command to unit 'B'

Alasdair Graham wrote:

Does anyone know if it is at all possible to have one unit's properties or state trigger a command to a second unit?

Yes, it is possible. You can't do it via user interface, so some simple "API magic" is needed. Still it is possible.

Let's say you have units "Truck" and "Trailer". So you want to trigger notification for unit "Truck" and in such a way to send a command to unit "Trailer".

1. Open CMS with a help of the following special link: https://cms.wialon.com/?features=avl_id
2. Go to the tab "Units", find unit "Trailer" and pay attention to the column "avl_id". It's internal identifier in Wialon (it is not equal to the unit's unique ID on the tab "General"). Copy "avl_id" for "Trailer".
3. Login to monitoring interface.
4. Create a needful command in unit "Truck".
5. Create a notification for unit "Truck" with action "Execute a command".
6. Export this notification to WLP file and open it with a simple text editor. There you should find something like this:

"p":{"cmd_type":"custom_msg","link":"gsm","name":"TEST COMMAND","param":"test","units":[666666666]}

It's just an example, so please pay attention only to the last part of this line: 666666666 — it's internal identifier of the unit "Truck". Change it manually by the "avl_id" of unit "Trailer" from point 2 above. Save changes.
7. Import the notification from the edited WLP file and test the result.

@ Oleg Zharkovsky
Technical Consulting / Training Team
"Timely is the best. But still better late than never."