Home > HMS NETWORKS > HMS NETWORKS CANbridge NT Lua ADK Bridge Router User Guide
HMS NETWORKS CANbridge NT Lua ADK Bridge Router User Guide
Using Lua ADK with the CAN NT Devices
CAN@net NT/CANbridge NT Lua ADK
3. Using Lua ADK with the CAN NT Devices
The use of the ADK is only possible in Bridge operaonal modes.
The Lua ADK supports two operaonal modes:
• running the Lua script on the target device in autonomous mode (target mode)
• running the Lua script on the host PC for debugging purposes, communicang with the target device via USB
(remote mode)
Funconally there is no dierence between running the Lua script on the device or on the host PC. The
operaonal mode can be set in the CAN-Gateway Conguraor (see How to Enable the Use of the Lua ADK?, p.
5).
Running scripts on the target device provides only limited debugging possibilies via print statements. Running
scripts on the host PC allows debugging with breakpoints and watch windows. Running Lua on the host PC
provides the possibility to run huge Lua les with low compuaon me due to performance of PC, but the USB
communicaon introduces extra delays for each ineracon (e.g. CAN-Lua-CAN) of about one millisecond.
3.1. How to Enable the Use of the Lua ADK?
To be able to use the Lua ADK with the CAN NT device, the device must be updated with the Lua framework and
Lua must be enabled in the CAN-Gateway Conguraor.
1. Connect the device to the host computer and to power supply (for more inormaon see User Manual of
the device in use).
2. Make sure that the latest CAN-Gateway Conguraor is installed (check within the product support pages on
3. Start the CAN-Gateway Conguraor and connect the device in use (for more inormaon see User Manual
CAN-Gateway Conguraor).
4. In the toolbar open menu Lua ADK and select Update Lua ADK.
5. In C:\Program Files\HMS\Ixxat CAN-Gateway Confguraor V6 open the le lua_framework_vx and update
the Lua ADK.
• Lua ADK is loaded to the connected device.
6. In the conguraon tree select General and enable the ADK in the drop-down list Use of Lua as ADK.
a. enabled in target mode: running the script on the target device (see How to Use Lua in Target Mode?,
p. 5)
b. enabled in remote mode: running the script on the host PC, communicang with the device via USB
(see How to Use Lua in Remote Mode?, p. 6)
7. In CAN-Ethernet-CAN bridges note that the Lua ADK must be enabled for the Master and each Slave
individually.
8. In the toolbar open menu Target and select Write confguraon to target to write the device conguraon
to the connected CAN NT device.
3.2. How to Use Lua in Target Mode?
1. In the CAN-Gateway Conguraor enable the use of the Lua ADK in target mode (see How to Enable the Use
of the Lua ADK?, p. 5).
2. In the toolbar open menu Target and select Write confguraon to target to write the device conguraon
to the connected CAN NT device.
4.02.0332.20002 Version 1.5
Page 5 of 20
| General | Details |
|---|---|
| Name | HMS NETWORKS CANbridge NT Lua ADK Bridge Router User Guide |
| Make | HMS NETWORKS |
| Language | English |
| Filetype | PDF (Download) |
| File size | MB |
If you have any questions regarding HMS NETWORKS CANbridge NT Lua ADK Bridge Router User Guide, please ask here and describe the problem in detail.













