Home > HMS NETWORKS > HMS NETWORKS CANbridge NT Lua ADK Bridge Router User Guide

HMS NETWORKS CANbridge NT Lua ADK Bridge Router User Guide

CAN@net NT/CANbridge NT Lua ADK  
C Funcons Called from Lua  
local info = device_info()  
print(info.hw_version)  
print(info.fw_version)  
print(info.fpga_version)  
print(info.security_lvl)  
print(info.config_name)  
print(info.config_type)  
print(info.device_type)  
print(info.serial_num)  
print(info.device_name)  
print(info.ip_address)  
--> e.g.: "3.02.00"  
--> e.g.: "6.00.00"  
--> e.g.: "1.01.00"  
--> e.g.: 1  
--> user provided configuration name  
--> e.g.: "Local Bridge"  
--> e.g.: "CAN@net NT 200"  
--> e.g.: "HW906509"  
--> user provided device name  
--> e.g.: "192.168.178.23"  
Funcon 'sys.get_ms_time'  
sys.get_ms_time()  
Returns the system me (32 bit value) in milliseconds.  
Funcon 'sys.get_us_time'  
sys.get_us_time()  
Returns the system me (32 bit value) in microseconds.  
Funcon 'sys.call_after'  
sys.call_after(ticks, func, arg)  
Calls the Lua uncon funcafer tickssystem cks (resoluon is 1 ms). argcan be used as parameter for  
funcand should be a numeric value.  
IMPORTANT  
There are maximum 16 mers available, which can be used in parallel.  
Example:  
function foo(val)  
print("delayed "..val)  
end  
sys.call_after(100, foo, 123)  
Funcon 'sys.set_user_led'  
sys.set_user_led(pattern, ticks)  
Sets the User LED of the device.  
Page 14 of 20  
4.02.0332.20002 Version 1.5  
GeneralDetails
NameHMS NETWORKS CANbridge NT Lua ADK Bridge Router User Guide
MakeHMS NETWORKS
LanguageEnglish
FiletypePDF (Download)
File size MB
Download PDF
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

nine + 13 =

HMS NETWORKS CANbridge NT Lua ADK Bridge Router User Guide