Configuration Manual
After unpacking, the gateway is ready to use, but requires configuration to adapt to the required functions.
Power supply
The device can be powered by connecting a power source to the terminal block:
- Loosen or remove the screws on the terminal block.
- Connect a 8–36 VDC power line to the terminal block.
- Tighten the connections, using the screws on the terminal block.
- Turn on the power source.
Note that the device does not have an on/off switch. It automatically turns on when it receives power. It takes a couple of seconds for the system to boot up. Once the system is ready, the RED LED will light up.
Power terminal block pin assignments are shown below:
Connecting the configuration port
To configure the device, firstly connect RX, TX and GND of device to TX,RX and GND of Atreyo TTL converter or any other TTL converter with 9600, 8, N, 1 parameter.
The pin assignment of the port is shown as above.
Note that RX of gateway should be connected to TX of USB-UART converter. And TX of gateway to RX of USB-UART converter
Inserting SIM card
Please refer drawing for proper SIM placement.
Connecting configuration application
- Connect one end of the TTL converter to the window computer.
- Open AG IoT Configuration application on window PC.
- Select AG-201, Select COM port and configure port with 9600,N,1,8 and click open port After port connection, click connect.
- Once the connection is established successfully, enter the password "atreyo" to access the configuration mode. This is the default password.
- Click CONFIGON and configure device parameter, as shown below:
Beneral configuration
- Reset the device parameters by selecting Make default.
- Initiate a device restart by clicking on Restart.
- Modify the password in the Device Password section; after entering the new password, click Set Password.
- To apply and save these changes in the device, click Config OFF.
- After configuring all parameters, remember to click Config OFF.
- The device will automatically restart and operate based on the new configured parameters.
Serial interface
Go to Device option to view and configure serial parameter.
To configure serial parameter:
- Configure the baudrate, parity, data bits and stop bits.
- Click "Set" to apply the chosen settings.
- Click “Get”, to access the stored serial parameters from the device.
Fiels | Value | Comment |
Baudrate | 2400 | 4800 |9600 |14400 | 19200 | 28800 | 33600 | 38400 | 57600 | 115200 | 230400 | 460800 |921600 | default: 9600 |
Data | 8 | 9 | default: 8 |
Parity | None | Odd | Even | default: None |
Stop | 1 | 2 | default: 1 |
GSM parameter
- Configure the APN, user, password.
- Click "Set" to apply the chosen settings.
- Click “Get”, to access the stored GSM parameters from the device.
Modbus
For Modbus command frame configuration, refer the table. You can add new modbus request string via the edit section.
Field | Value | Description |
Slave ID | Integer[1...255] | Slave ID |
Function code | Read Coils(1) | Read Discrete Input(2) | Read Holding Register(3) | Read Input Register(4) | Specifies the type of register being addressed by a Modbus request |
Data structure | 8bit INT | 8bit UINT | 8bit HEX| 16bit INT |16bit UINT | 32bit float | 16bit HEX | 32bit HEX | Bool | Defines how read data will be stored |
Start address | Integer [0 – 65535] | First Modbus register from which data will be read |
Offset address | Integer | The starting address or position of a data element within a register or data block |
Data length | Integer [1 – 30] | Number of Modbus registers that will be read during the request |
Data length | Integer [1 – 30] | Number of Modbus registers that will be read during the request |
Endian structure |
2bit data – ABCD | BADC | CDAB | DCBA 16bit data - AB | BA |
Select endian structure of data type |
Trigger | - | Not available now |
riggering time | - | Not available now |
Polling time | integer [1..]in sec; default: 60Sec | Interval at which requests are sent to the server device. |
- By clicking ADD, you can add multiple Modbus request strings.
- Click "Set" to save a single frame or "Set All" to save all the Modbus request strings in the device.
- clicking "Get" or "Get All", to access the saved Modbus strings in the device.
- Additionally, you can delete, copy, and paste strings from the Navigate section.
- Go to Modbus parameter section and set polling time of modbus data to the server by click on "Set". Also check polling time from device by click on "Get"
MQTT
- Go to MQTT Parameter section, to add MQTT parameter.
- Specify a server details, host and port.
- If the broker requires, enter Client ID, Username, and Password. (optional). If not, enter NULL.
- Specify the publish and subscribe topics.
- Once you've specified all parameters, click "Set."
- Click "Get", to access details of the MQTT parameters.
Save and restore
Easily configure the number of devices by loading a configuration file. Navigate to the Connection section, load the file by clicking Load All, and load all configuration parameters by clicking Write All.
The application allows saving the configuration for later uploading to other gateways.
- Save all configured parameters in a file by navigating to the Connection section and clicking Save all.
- After clicking "Save all", navigate to the Config section. From there, first you have to create config file by click on "Create config", once you create file, you can save it by clicking Save config.
- And this file you can use for configuration of other AG-201 gateway anytime by click on Open config.