ADVANTECH logo ADVANTECH v2 Router App - logoModbus to LwM2M

 LwM2M Router App

ADVANTECH LwM2M Router AppAdvantech Czech s.r.o., Sokolska 71, 562 04 Usti nad Orlici, Czech Republic
Document No. APP-0088-EN, revision from 12th October, 2023.

© 2023 Advantech Czech s.r.o. No part of this publication may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photography, recording, or any information storage and retrieval system without written consent.
Information in this manual is subject to change without notice, and it does not represent a commitment on the part of Advantech.
Advantech Czech s.r.o. shall not be liable for incidental or consequential damages resulting from the furnishing, performance, or use of this manual.
All brand names used in this manual are the registered trademarks of their respective owners. The use of trademarks or other designations in this publication is for reference purposes only and does not constitute an endorsement by the trademark holder.

Used symbols

DELL Command Power Manager Apps - icon 2 Danger – Information regarding user safety or potential damage to the router.
ADVANTECH v2 Router App - icon 1 Attention – Problems that can arise in specific situations.
ADVANTECH v2 Router App - icon 2 Information – Useful tips or information of special interest.
ADVANTECH v2 Router App - icon 3 Example – Example of function, command or script.

Changelog

1.1 Modbus to LwM2M Changelog
v1.0.0 (2020-08-28)

  • First release.

Router App Modbus to LwM2M

2.1 Description
ADVANTECH v2 Router App - icon 1 This Router app is not contained in the standard router firmware. Uploading of this router app is described in the Configuration manual (see ChapterRelated Documents).
Modbus to LwM2M router app provides seamless communication between Modbus/TCP devices and LwM2M device. LwM2M works as Modbus/TCP master to communicate with Modbus/TCP devices.
2.2Installation
The latest version of Modbus to LwM2M router app can be downloaded from the Engineering Portal[EP] at https://icr.advantech.cz/products/software/user-modules.
In the GUI of the router navigate to Customization -> Router Apps page. Here choose the downloaded module’s installation file and click to the Add or Update button.
Once the installation of the module is complete, the module’s GUI can be invoked by clicking the module name on the Router Apps page. Figure1shows the main menu of the module. It has the LwM2M, Mapping Table and Log menu items. To return back to the
router’s web GUI, click on the Return to Router item.ADVANTECH LwM2M Router App - Main Menu2.3 Module Configuration
Configuration of the router app can be done on the LwM2M page. This configuration page is shown in Figure2. There are two sections on the page, LwM2M Settings, and Modbus TCP. The configuration items are described on the page next to the items. Do not forget to click the Save button below to save changes made on the page.ADVANTECH LwM2M Router App - Module Configuration2.3.1 Configuration Uploading
Configuration of Modbus TCP and LwM2M devices mapping can be imported by a CVS file. Format of this file is shown in Figure3and the key columns are described in Table1. Separator (delimiter) for the CSV file is a comma.ADVANTECH LwM2M Router App - CSV File ExampleTo import this file, go to LwM2M configuration page, click on the Upload Config button, choose the file, and then click the Upload button. If uploaded successfully, click the Return button and finally click on the Save button LwM2M on the bottom of the configuration page. The new mapping configuration will take effect immediately.

Column  Field Description
A IPSO SO LwM2M Object ID
B Name The name to identify the mapping.
G Address Start Designate the Modbus to starting address for the Modbus registry.
H Data Length For range 1 9999 or 10000 19999, the unit is bit(s).
For range 30001 39999 or 40000 49999, the unit is word(s).
I Designator Designate LwM2M Object. Include Object ID, Short ID and Resource ID.
Format: /Object_ID/Short_ID/Resource_ID
Q Data Type LwM2M data type with options:
•7 Boolean
•4 IEEE, Reversed Word
•1 Double Precision

Table 1:Description of the Key Columns
2.4 Mapping Table
As shown in Figure4, the Mapping Table page just displays the mapping table of Modbus TCP and LwM2M devices. This table can be imported by a CSV file, see Chapter2.3.1.ADVANTECH LwM2M Router App - Example of Mapping Table2.5 Log Messages
The Log page displays the log messages of the LwM2M router app. This loggin can be enabled on the LwM2M configuration page, see Chapter 2.3.ADVANTECH LwM2M Router App - Log Example

Related Documents

[1] MC Manual Pages: https://linux.die.net/man/1/mc
You can obtain product-related documents on Engineering Portal at icr.advantech.cz address.
To get your router’s Quick Start Guide, User Manual, Configuration Manual, or Firmware go to the Router Models page, find the required model, and switch to the Manuals or Firmware tab, respectively.
The Router Apps installation packages and manuals are available on the Router Apps page.
For the Development Documents, go to the DevZone page.

ADVANTECH logoADVANTECH v2 Router App - logo

Documents / Resources

ADVANTECH LwM2M Router App [pdf] User Guide
LwM2M Router App, LwM2M, Router App, App

References

Leave a comment

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