4.3.7 Hardware Watchdog Timer ...................................................................................................................47
4.3.8 LEDs ......................................................................................................................................................47
4.3.9 3G/4G Cellular (SE5901B only) .............................................................................................................48
4.3.10 RTC Interface ........................................................................................................................................48
5 Testing interfaces ............................................................................................................. 49
5.1 Test COM port interface – transmit and receive ..................................................................................49
5.1.1 Test COM port interface by using atop_tcp_server ...............................................................................49
5.1.1.1Test Method ..........................................................................................................................................49
5.1.1.2Test Execution .......................................................................................................................................49
5.2 Test Buzzer interface ............................................................................................................................51
5.3 Test Digital Input ...................................................................................................................................53
5.4 Test Digital Output .................................................................................................................................53
5.5 Test Hardware Relay Output .................................................................................................................53
5.6 Test Hardware Button ...........................................................................................................................53
5.7 Test Hardware Watchdog Interface (WDT) ..........................................................................................53
5.8 Test device LED .....................................................................................................................................54
5.9 Test RTC interface ................................................................................................................................54
5.9.1 Setup RTC time: ....................................................................................................................................54
5.9.2 Read RTC time:......................................................................................................................................55
5.9.3 RTC2system ..........................................................................................................................................55
5.9.4 system2RTC ..........................................................................................................................................55
5.10 Using NOR Flash – JFFS2 ....................................................................................................................55
5.11 MQTT .....................................................................................................................................................55
5.12 Firmware upgrade .................................................................................................................................56
6 Software API Reference ................................................................................................... 57
6.1 File List ...................................................................................................................................................57
7 Data Structure Documentation ........................................................................................ 58
7.1 sessiontag Struct Reference .................................................................................................................58
7.1.1 data fields ..............................................................................................................................................58
7.2 Network APIs .........................................................................................................................................58
7.2.1 Functions ...............................................................................................................................................58
7.3 Network APIs Function documentation ................................................................................................59
7.3.1 void AtopSDK4GHWReset (void ) ..........................................................................................................59
7.3.2 void AtopSDKSet4GApn (char * apn) ....................................................................................................60
7.3.3 void AtopSDKSet4GConnect (void) .......................................................................................................60
7.3.4 void AtopSDKSet4GDialOnBoot (int value)............................................................................................60
7.3.5 void AtopSDKSet4GDisconnect (void) ..................................................................................................61
7.3.6 void AtopSDKSet4GPinDisable (void) ....................................................................................................61
7.3.7 void AtopSDKSet4GPinEnable (char * pinCode) ...................................................................................61
7.3.8 void AtopSDKSet4GReConnect (int value) ............................................................................................61
7.3.9 void AtopSDKSetNetDefGateway (int eth) ............................................................................................61
7.3.10 void AtopSDKSetNetGateway (int eth, char *gw) .................................................................................62
7.3.11 void AtopSDKSetNetIP (int eth, char *ip) ...............................................................................................62
7.3.12 void AtopSDKSetNetMask (int eth, char *mask) ...................................................................................63
7.4 EEPROM User Name and Password Settings APIs ..............................................................................63
7.4.1 Functions ...............................................................................................................................................63
7.5 EEPROM User Name and Password Settings API Function documentation .......................................64
7.5.1 void AtopSDKSetUserName (char name) .............................................................................................64