Table Of Contents - HMS Networks IXXAT CAN@net NT User Manual

Table of Contents

Advertisement

Table of Contents

1
Purpose of this Document .................................................................................................. 3
2
Description of Ixxat Lua ADK .............................................................................................. 4
2.1
Difference between Standard Lua and Ixxat Lua ADK..............................................................4
2.2
Lua Library Functions Enabling the Registration of Lua Callbacks ..............................................4
2.3
Limitations of the Ixxat Lua ADK .........................................................................................5
2.4
Specifics in Coding for the Ixxat Lua ADK ..............................................................................5
2.4.1
Bit Model 32 Bit Version.......................................................................................... 5
2.4.2
Errors and Debugging ............................................................................................. 5
2.4.3
Declaring Variables ................................................................................................ 6
2.4.4
Passing Context between Lua Event Tasks..................................................................... 6
3
Using Lua ADK with the CAN NT Devices........................................................................... 7
3.1
How to Enable the Use of the Lua ADK? ...............................................................................7
3.2
How to Use Lua in Target Mode? ........................................................................................8
3.3
How to Use Lua in Remote Mode? ......................................................................................9
3.4
How to Debug the Lua File? ...............................................................................................9
4
Creating Lua Scripts........................................................................................................... 10
4.1
How does the Lua ADK Event System Work? ....................................................................... 10
4.2
Example Applications...................................................................................................... 11
5
Lua API Function and Module Reference......................................................................... 12
5.1
Lua Callback Functions Called from C ................................................................................. 12
5.1.1
Function 'initialize'............................................................................................... 12
5.1.2
Function 'loop' ................................................................................................... 12
5.1.3
Function 'on_can' ................................................................................................ 12
5.1.4
Function 'on_mqtt' .............................................................................................. 12
5.2
C Functions Called from Lua ............................................................................................. 13
5.2.1
Module 'misc' .................................................................................................... 13
5.2.2
Module 'can'...................................................................................................... 14
5.2.3
Module 'mqtt' .................................................................................................... 15
5.2.4
Module 'sys' ...................................................................................................... 15
5.2.5
Module 'json' ..................................................................................................... 17
5.2.6
Module 'array'.................................................................................................... 17
Lua License......................................................................................................................... 21
CAN@net NT/CANbridge NT User Manual
Page
4.02.0332.20002 1.2 en-US

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the IXXAT CAN@net NT and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Ixxat canbridge nt

Table of Contents