USR IOT USR-K6 User Manual Download Page 32

                                        USR-K6    User Manual                                                www.usriot.com

 

 

 

Jinan USR IOT Technology Limited                                                    32 / 107                                                              [email protected] 

 

Diagram 4.2.3-3 UDP Client Webpage Setting 

② 

Set the testing software as UDP, local IP is the IP of the PC, local port is the remote port for K6, the connect. 

Setting the correct serial parameters and click to open the serial. 

③ 

  Send the send of the serial and receive the data,testing software remote IP and remote port change into the 

IP and port of K6, then click the net send, send data to serial port. 

Summary of Contents for USR-K6

Page 1: ...USR K6 User Manual www usriot com Jinan USR IOT Technology Limited 1 107 inquiry usriot com USR K6 User Manual File Version V1 0 0 ...

Page 2: ...3 Default Parameters 9 1 4 Data Transport Testing 10 2 Overview 11 2 1 Brief Introduction 11 2 2 Function feature 11 2 3 Basic Parameters 12 3 Hardware Parameters 14 3 1 Pin Definition 14 3 2 Dimension 15 4 Product Function 16 4 1 Network Basic Functions 17 4 1 1 IP address subnet masks gateway 17 4 1 2 DNS Server Address 19 4 1 3 Web Server 20 4 1 4 Restore to the Factory Setting 21 4 1 5 Network...

Page 3: ...2 5 HTTPD Client 34 4 2 6 VCOM 37 4 3 Serial Port Function 37 4 3 1 Basic Parameters 38 4 3 2 Serial Port Framing 38 4 3 3 RFC2217 39 4 4 Special Function 43 4 4 1 Heartbeat Package 43 4 4 2 Registration package 45 4 4 3 USR cloud 46 4 4 4 Customize webpage 49 4 4 5 Link 50 4 4 6 Reset 50 4 4 7 Index 50 4 4 8 The number of the connected client 53 4 4 9 State 53 4 4 10 Short Connection 54 ...

Page 4: ...Setting 57 5 1 Net Protocol Setting Parameters 57 5 1 1 Setting Software Setting Parameters 58 5 1 2 Setting Protocol Setting the Parameters 62 5 2 Webpage Setting Parameters 74 5 3 AT Command 80 5 3 1 AT Command Overview 80 5 3 2 AT Command Error Code 82 5 3 3 AT Command 82 5 3 4 AT Command Details 85 6 Contact us 106 7 Disclaimer 106 8 Modified History 107 ...

Page 5: ...ersion circuit Product link https www usriot com products low cost solution super port ethernet module html Related software M0 setting software https www usriot com support downloads usr m0 setup software v224288 html which can be also used in the the low cost serial to ethernet converters such as USR TCP232 302 USR TCP232 304 and USR TCP232 306 and embedded ethernet modules USR TCP232 T2 USR TCP...

Page 6: ...d 6 107 inquiry usriot com Diagram 1 1 Download Page Some question in you using please refer to the applications http www usr cn Faq cat 46 html Also can be submit to our USR custom supporting http h usriot com 1 1 Testing Environment 1 1 1 Hardware Prepare USR K6 1 ...

Page 7: ...riot com USR Kx EVK 1 Cable 1 Power DC5V 1A 1 Serial port cable 1 PC 1 Diagram 1 1 1 1 Testing Tools 1 Test purposes Test to realize the USR K6 have a basic understanding of USR K6 Test to know whether there are some thing wrong with it 2 Data direction Diagram 1 1 1 2 Data Direction ...

Page 8: ...red for K6 Diagram 1 1 2 1 Hardware Connection Note the power adapter and the cable are from USR 1 2 Network Testing To prevent the thing that occurs when the custom use the K6 such as finding no server can not ping and can not enter the webpage after connecting you should check the PC before testing 1 Shut down firewall and antivirus software 2 Shut down net card none related and reserve only one...

Page 9: ...Diagram 1 2 1 Local Connection of the PC 1 3 Default Parameters Project Intro User name admin Key word admin IP address 192 168 0 7 Subnet masks 255 255 255 0 Default network gateway 192 168 0 1 Default work mode TCP client Default local port 0 Default target port 8234 Default local port 20108 ...

Page 10: ...n the serial port and ethernet can communicate bi directly steps are as fellows Open the USR TCP232 Test exe and connect the hardware as the Diagram 1 1 2 1 Hardware Connection Select the TCP server mode in the Net Setting Fill the PC IP into the server IP server port 8324 click to start listen and build TCP client Baud rate 115200 serial parameters None 8 1 then click to open the serial port Diag...

Page 11: ...r old users At the same time a setting protocol similar to K3 is added For customers who adopt other series of products it can be applied to K6 only by simple adjustment 2 2 Function feature adopted to Ethernet supports AUTO MDIX switching of network cable crossovers s TCP server TCP client UDP server UDP client Httpd client can be chose Parity including None Odd Eben Mark Space and keep the conne...

Page 12: ...an be set ort DNS domain name resolution V com tore to the factory setting g and router 2 3 Basic Parameters Parameter Value Input Voltage DC3 3 6V Working Current 136mA 3 3V Net port Rj45 10 100mMbps Serial port 600 460 8K bps Software parameters Network protocol IP IPV4 TCP UDP ARP ICMP Access way to IP Static IP DHCP ...

Page 13: ...217 Support Httpd client support TCP server connection Default 4 and maximum 16 Net buffer Send 6Kbyte receive 4Kbyte Serial port buffer Receive 2048byte Average transport delay 10ms Set software USR VCOM USR Cloud parameters setting software Package mechanism 4 byte package time and 1024byte length others Certification CE FCC Size 35 0x19 39x18 25 mm L W H Operating Temp 25 75 C Storage temp 45 1...

Page 14: ...ual www usriot com Jinan USR IOT Technology Limited 14 107 inquiry usriot com Package Electrostatic bubble Form 2 3 1 Basic Parameters 3 Hardware Parameters 3 1 Pin Definition Diagram 3 1 1 Pin Num Pin Function Instr ...

Page 15: ...erve pin RS485 enable pin 6 CFG reload Configuring the pin using serial When normal working don t connect the pin or connect to high level Under low level the pin is used for module configuration access to power then pull down Reload pin Refer to 4 4 3 Factory Reset 7 LED2 Net port data instr Single chip data indicator foot when data transport in the network it will flash 8 RXD Module data receive...

Page 16: ...USR K6 User Manual www usriot com Jinan USR IOT Technology Limited 16 107 inquiry usriot com Diagram 3 2 1 Dimension 4 Product Function Here are the functions of K6 below is the overall block diagram ...

Page 17: ...ue in the LAN so please be sure there is no another device same as it in the LAN Static IP Handle to setting Note fill the IP subnet masks and gateway Static IP adopted to the environment that required to statistics the IP and the device and makes them correspond one to one Advantage accessing the device that can not distribute IP address can be searched via UDP broadcast Disadvantage different ne...

Page 18: ...mine the host number and the network number indicates the number of subnet and determine the flag within the subnet The subnet masks needed to set usually we use the subnet masks 255 255 255 0 the network number is the former 24 the holder name is the last 8 number of subnet is 255 the module IP is in the range of 255 and then we are sure that the module IP is in this subnet 3 Gateway is the net p...

Page 19: ...realize domain name resolution in the case of imperfect local domain name server Users can also set the address of specific DNS server according to requirements When K6 needs domain name resolution it will submit the resolution request to the DNS server set Using is more flexible and reliable In static IP mode the default DNS server address is 208 67 222 222 and in DHCP mode the DNS server address...

Page 20: ...rver of K6 is same as the normal webpage server which is convenient for user to setting parameter and query the status The port of webpage can be setting default is 80 Steps Open the browser fill the IP of K6 e g 192 168 0 7 IP address and PC in the same net segment Fill the user name and key word in the login webpage default is admin click to enter TX Count the data count sent from K6 to the exte...

Page 21: ...the factory setting Keep putting down reload pin 5s in powered condition the put up and it will restore Steps power on keep the reload pin down keep for 5s put up 2 Software restore via the software setting and the net protocol sending command 3 AT command restore enter the AT command AT RELD to restore 4 1 5 Network Upgrade Firmware Webpage upgrading firmware stable and simple Using this new func...

Page 22: ...TCP Server UDP Client UDP Server and Httpd Client Setting from the webpage and the software setting as below Diagram 4 2 1 Work mode Setting Note Default IP address and type is static IP at 192 168 0 201 Default remote port 8234 Related AT command Form 4 2 1 Related AT Command command name instr AT sock Setting the work mode target IP target port ...

Page 23: ...ted it can be detected timely and enforce K6 to disconnect the former link to establish a new one 3 When K6 try to connect remote server if the local port number is not 0 it will establish a connection with the same source port every time 4 Support synchronizing baud rate USR cloud and short connection function 5 In a LAN if the K6 is static IP please keep K6 IP stay in the same network segment wi...

Page 24: ...USR K6 User Manual www usriot com Jinan USR IOT Technology Limited 24 107 inquiry usriot com Diagram 4 2 1 2 TCP Client Software ...

Page 25: ...168 0 201 listen port is 8234 and click listening Testing software show the 192 168 0 7 4117 distribute randomly setting the right serial port parameters and open the serial port Note default remote IP is192 168 0 201 But in order to keep the device and PC in the same network segment to make the communication correct so we change IP type as DHCP Just likes the above picture Click send to receive t...

Page 26: ...USR K6 User Manual www usriot com Jinan USR IOT Technology Limited 26 107 inquiry usriot com Diagram 4 2 1 4TCP Connection Testing ...

Page 27: ...palive function 2 Usually it is used in the LAN communicating with TCP client Adopt the case that more than one PC or phone asking data without server Same as the TCP client there are different between connect and disconnect 3 Support synchronizing baud rate 4 TCP Client number is from 1 to 16 default value 4 the port is fixed can not be set to 0 5 If the number of the TCP client is more than 16 d...

Page 28: ...USR K6 User Manual www usriot com Jinan USR IOT Technology Limited 28 107 inquiry usriot com Diagram 4 2 2 2 TCP Server Software Setting ...

Page 29: ... usriot com Jinan USR IOT Technology Limited 29 107 inquiry usriot com Diagram 4 2 2 3 TCP Server Webpage Setting Testing software set to be TCP client server IP is IP of K6 and the server port is port of the K6 then connect ...

Page 30: ...USR K6 User Manual www usriot com Jinan USR IOT Technology Limited 30 107 inquiry usriot com Diagram 4 2 2 4 TCP Server Testing 4 2 3 UDP Client ...

Page 31: ...n communicate with the target port whose IP has been set If data doesn t come from this channel it will not be accepted by TCP232 K6 4 In UDP Client Mode if target IP is set as 255 255 255 255 it can realize function of entire network broadcast also can receive broadcast data 4015and the later vision support broadcast e g xxx xxx xxx 255 5 Example Set the K6 as UDP client remote port 8234 Diagram ...

Page 32: ... testing software as UDP local IP is the IP of the PC local port is the remote port for K6 the connect Setting the correct serial parameters and click to open the serial Send the send of the serial and receive the data testing software remote IP and remote port change into the IP and port of K6 then click the net send send data to serial port ...

Page 33: ...USR K6 User Manual www usriot com Jinan USR IOT Technology Limited 33 107 inquiry usriot com Diagram 4 2 3 4 UDP Connection Testing 4 2 4 UDP Server ...

Page 34: ...h frequency 3 Example Set the K6 as UDP server local port is 20108 Open the testing software choose UDP and the local IP is IP of the PC set the ports to be different e g 23 and 8234 in the below diagram then click 4 2 5 HTTPD Client In this mode users terminal device can send required data to assigned HTTPD server via K6 and then K6 receives the data from HTTP server analyzes the data and sends t...

Page 35: ...USR K6 User Manual www usriot com Jinan USR IOT Technology Limited 35 107 inquiry usriot com Diagram 4 2 5 1HTTPD client ...

Page 36: ...ote port and remote IP 2 Setting the way to requirement of the Httpd and the URL and the package head information of the requirement package 3 The return data whether drop the package head can be set by webpage remove HTTPD head 4 Click save then restart to work 5 Open serial port to send data then the data of the serial port will submit to your webpage meanwhile the serial port will receive the r...

Page 37: ...ser to change the computer and connected 2 Setting the way to connect the VCOM and K6 manually Open the VCOM and add the serial port choose the port COM2 avoid the exist COM port protocol use the TCP client remote IP set to the IP of the K6 remote port is the port of the K6 note fill the device name Click sure observe if the connection is established if the connection has established and you can t...

Page 38: ...a bits the range of it from 5to 8 3 Stop bits can set from 1 to 2 4 Parity support none odd even mark and space 4 3 2 Serial Port Framing Since the data on the network is transmitted in the unit of data frames it is necessary to send the frame data via serial port to the network so as to transmit data more efficiently and quickly K6 packages serial port data according to fixed packaging length and...

Page 39: ...mited of the serial speed the user need to control the flow otherwise data overflow problems can be occur and drop the package So when send data from network to serial port please calculate the flow Calculate way if sending M bytes need N s the way to check for possible overflow methods if the net situation is ok the time can be ignored The time for M bytes T 1 baud rate 10 m If there is no overfl...

Page 40: ...USR K6 User Manual www usriot com Jinan USR IOT Technology Limited 40 107 inquiry usriot com Diagram 4 3 3 1 Similar RFC2217 Function ...

Page 41: ... transmission if there is something wrong the data package will be forwarded through the serial port as ordinary data TCP Client TCP Server UDP Client UDP Server and radio support this function The modify of this order effect in time do not restart Effective during this operation cycle will not save power loss name Package head Baud rate Median parameter Parity sum bytes 3 3 1 1 instr 3 byte to re...

Page 42: ...ll 0 Form4 3 3 2 Serial Port Parameters Basic Meaning Enable Note 1 When using RFC2217 click setting software RFC2217 to enable this function 2 When the serial port parameters change send the RFC2217 package after K6 received the RFC2217 command modify the serial parameters and can not transparent transmission E g Protocol command 55AA5501C2008346 setting serial port parameter is 115200 N 8 1 55AA...

Page 43: ...ent to net server also can send to serial port but can not send in the same time Sending to the net aimed at connecting with server effect only in TCP client and UDP client In the application of the server sending fixed query command to device to reduce the communication flow The user can choose using the serial port to send the heartbeat package instead of the heartbeat from server 4015 and the l...

Page 44: ...USR K6 User Manual www usriot com Jinan USR IOT Technology Limited 44 107 inquiry usriot com Diagram 4 4 1 1 Heartbeat Webpage ...

Page 45: ...lso can installed in the head of the data package as a data package Registration package data can be MAC address or customize registration package data where the custom registry setting content is up to 40 bytes The connection setting and sending registration package is mainly used to connect the server that needs to be registered The application diagram is as follows Diagram 4 4 2 1 Building the ...

Page 46: ...tration Package Webpage 4 4 3 USR cloud Diagram 4 4 3 1 USR cloud USR Cloud software is a platform for communication between devices and PC software The cloud software is mainly used for data transmission or monitoring remotely This function only works in TCP client mode Login link of USRIOT Cloud http console usriot com Remote server address console usriot com ...

Page 47: ...sriot com Jinan USR IOT Technology Limited 47 107 inquiry usriot com Communications Code Pass word generated after adding the device to cloud software The following is test account of USR Cloud Account jin321_ Password 1987322 ...

Page 48: ... User Manual www usriot com Jinan USR IOT Technology Limited 48 107 inquiry usriot com Diagram 4 4 3 2 USR cloud Software Setting Note Module needs work at TCP client Also can be set in the webpage as fellows ...

Page 49: ...stomize webpage To be more convenient for user we have prepared upgrade webpage package in our website https www usriot com support downloads customized webpage usr tcp232 K6 s2 customized webpage v4017 html Including webpage code webpage tools can be download Diagram 4 4 4 1 Package Upgrade webpage need to notes that destination IP set to be the IP address of K6 the final name of file is fs produ...

Page 50: ...on When working as TCP Client K6 connects to TCP Server actively When start Reset function K6 try to connect to TCP Server for 30 times If failed K6 will restart automatically By default it won t be chose 4 4 7 Index Index is to resolve the problem that under TCP server mode K6 can not divide the data sources or send data to special client when user have more than 2 client to connect the K6 At mos...

Page 51: ...Jinan USR IOT Technology Limited 51 107 inquiry usriot com Diagram 4 4 7 1 Index Function Diagram 4 4 7 2 Index Software Setting 1 After the server receive data output I N data to user MCU via server serial port I means receive N means ...

Page 52: ...al port to net client port note o refers to the character o in ASCII and N is the character N such as 1 2 etc 3 K6 server port input C N M to user MCU when the new TCP connected means the current one is the number N and on total there are M 4 When there are 16 client to connected if there is new connection to ask input F F to MCU 5 Break off it K6 server input D N M to user MCU N means the origina...

Page 53: ... e g the number you set is 16 default use the new link instead of the older one also you can set to use the older one The webpage are as fellow Diagram 4 4 8 1 Webpage 4 4 9 State In the webpage of the USR K6 there is the current static page which can show the current IP and the each connection sends data and the number of bytes of connection data along with the total number of bytes sent and rece...

Page 54: ...lly used in the points to one point Using the short connection can sure the current connection is the useful one no extra control tools to screening TCP short connection can sued in the TCP client open it and send message The connection will be broken automatically This function default disable the interval of disconnect can be configured after enable it the range from 2 to 255s default is 3s the ...

Page 55: ... 11 Clear Buffer Data If the TCP have no connection the data that serial received will be placed in the cache and the K6 serial port can receive 800K byte after the TCP built you can select is clear the cached data Default disable Under the Httpd client mode or the TCP client mode enable the short connection and this function do not work ...

Page 56: ...e long and stable work of K6 when the net port or network can not receive data for long time K6 will restart out the setting time to avoid abnormal conditions affect the connection Time for restart can set in the webpage The normal work time of this function set 60 65535s default is 3600s if setting time less than 60s default to be 0 and turn off this function The setting is as fellow ...

Page 57: ...ing parameter webpage setting parameter and serial setting parameter User setting steps Modify the user name and password setting the access way to the IP address serial parameter the related parameters for working method To ensure the normal using of software the following steps are necessary 1 When using setting software to setting parameter K6 and the PC of the setting software are in a LAN 2 C...

Page 58: ...24288 html Search all the K6 in the LAN including current IP device name MAC and version of the K6 Diagram 5 1 1 1 Searching 1 Click the k6 enter the password and you can see the detailed parameters of the K6 if wrong there will be the window for username and password Fill them and enter Default username and password admin software setting default username and password are admin so under default c...

Page 59: ...name and Password 2 Basic parameter setting Click the searching device and you can see the basic parameters needed to set combined with the function introduction of the third chapter setting the parameter you need then click the save Then you are succeed to modify the parameters you have change others keep default ...

Page 60: ...n prevent other users modify the parameters of K6 in LAN Pass word the password of the K6 correspond with username Device name the K6 name can be customize IP type static IP and DHCP Static IP the static IP of K6 please put it in the same LAN when setting it Subnet masks default is 255 255 255 0 Gateway usually is the router IP after correct setting you can communicate across the LAN and do the do...

Page 61: ... TCP client UDP client and HTTPD client mode as a client the IP or domain name of the server that it connected Similar RFC2217 used if need to change the serial port in transport Use with V COM or you can reference the software manual 4 Firmware Upgrade If the module firmware need to upgrade to the high vision user can consult with sales to get the upgraded firmware and click the device upgrade th...

Page 62: ...the net all communication protocol adopted UDP mode the lower is in front When setting make sure the remote port is 1500 for UDP communication the local port is random and all the communication protocol using UDP 1 Net setting parameters steps Built socket Build a UDP socket remote IP 255 255 255 255 remote port 1500 lower is in front Setting command steps Send searching order on the internet K6 r...

Page 63: ...right wrong 2 Net setting command content Net setting protocol command means upper send command via net to modify the protocol command of the module or the server Command query function Package head length order parameters bit order MAC 6 bits Username and password 12 bits parameters Parity sum search FF 01 01 02 restart FF xx 02 MAC usrname password xx Read setting FF xx 03 MAC usrname password x...

Page 64: ...mand Query To make sure the accuracy of the command we setting the algorithm and check of sending command in protoco the parity is sum parity begin at the length add to the first digit of the parity The sum is the value to parity and reserve the lower bits Search command Search command is FF 01 01 02 parity sum 02 01 01 Restart command Send 22 bits FF 13 02 D8 B0 4C 46 35 CA 61 64 6D 69 6E 00 61 6...

Page 65: ...00 00 00 00 00 00 00 61 64 6D 69 6E 00 61 64 6D 69 6E 00 00 01 00 E0 D8 B0 4C 46 35 CA 00 00 00 00 03 00 00 00 59 parity bits is still parity sum algorithm 59 56 05 D8 03 from 4th to 9th is the address of the MAC from 10th to the 22th is the username password the latter bits is fixed length basic setting parameters The last bit is the parity sum Name bits E g Instr Uc Sequence Num 1 00 reserve pac...

Page 66: ...ld connection send ID 0 off mac_add rs 6 D8 B0 4C 11 22 33 Device MAC address DNS Gateway IP 4 01 00 A8 C0 DNS server address TC_sh_time 1 03 The time for short connection Uc Reserved 3 00 00 00 Not enable reserve the protocol Form 5 1 2 2 Basic Parameter Web Setting Serial port parameters command There are 63 bits to setting net port and serial port parameters so this command is of high value Her...

Page 67: ... Uc Flow Control 1 00 Not enable reserve the protocol Ul Telnet Timeout 4 00 00 00 00 Not enable reserve the protocol Us Telnet Local Port 2 8C 4E Local port Us Telnet Remote Port 2 2a 20 Remote port Ui Telnet URL 30 31 39 32 2E 31 36 38 2E 30 2E 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Send the IP address or domain name in ASCII code e g 92 168 0 201 remote IP setting Ul Telnet...

Page 68: ...0 from 4th to 9th is the address of the MAC from 10th to the 21th is the username password These are 6 bits add 0 if less than 6 bits USR cloud command Send FF 13 0c 00 71 77 7c 42 2F 61 64 6d 69 6e 00 61 64 6d 69 6e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 Parity sum 07 13 0c 6E 00 00 From 4th to 9th is the address of the MAC from 10th to the 21th ...

Page 69: ...kage to net port 2th is 1 send heartbeat package to serial port 3th is 1 connected sending to registration package 4th is 1 data carry registration package 5th is 1 Httpd information drop package head 6th is 1 serial port setting parameters function on 7th is 1 heartbeat package hexadecimal input 8th is 1 registration package hexadecimal input heart_times 2 00 1e Heartbeat time heart_len 1 00 Leng...

Page 70: ... and password these are 6 bits add 0 if less than 6 the last one is parity Setting package setting name Bits E g instr head_lenn 1 00 Length of Httpd Client httpd_send_btemp 200 00 Httpd Client package head Form 5 1 2 6 Package setting Send FF DC 23 D8 B0 4C 44 85 64 61 64 6D 69 6E 00 61 64 6D 69 6E 00 07 2F 31 2E 70 68 70 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...

Page 71: ...m the initial value is 0x00 reduce every bits in order algorithm is as fellow F2 00 FF 24 01 00 4B 32 00 00 name bits E g Instr TAG_STATUS 0 FF fixed number Packet_length 1 24 fixed number CMD_DISCOVER_TARGET 2 01 fixed number Board_type 3 00 fixed number Board_ID 4 00 fixed number Client_IP_address 5 8 C0 A8 00 07 device IP higher in front MAC_address 9 14 AC CF 23 20 FE 3D device MAC higher in f...

Page 72: ... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 07 2F 31 2E 70 68 70 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...

Page 73: ...rn FF 01 06 4B if the password right 4B K FF 01 06 50 username password wrong 50 P Heartbeat registration package parameters setting command return result Setting correct return FF 01 06 4B if the password right 4B K FF 01 06 50 username password wrong 50 P Httpd URL setting command return result Setting correct return FF 01 22 4B if the password right 4B K FF 01 22 50 username password wrong 50 P...

Page 74: ...ge monitoring method If you want to get some real message using the way as below the tool is setting softwareUSR M0 Diagram 5 1 2 1 Catch the Message 5 2 Webpage Setting Parameters Open the browser and enter the IP of K6 default is 192 168 0 7 filled the user name admin and password admin then login and you can enter the login page ...

Page 75: ...ed 75 107 inquiry usriot com Diagram 5 2 1 Username and Password Click the English or Chinese on the right upper to switch the language 1 Current status Diagram 5 2 2 Current Status This page show song information of the K6 Module name Current IP address MAC address ...

Page 76: ... the sent of receive number of the data Total number of connection receive or send 2 Local IP Configure Diagram 5 2 3 Local IP Configure Modify the parameters and save then modify the parameter in next page If the parameter need not to modify click the restart and work Static IP Subnet masks Gateway DNS server 3 Serial port ...

Page 77: ...ser Manual www usriot com Jinan USR IOT Technology Limited 77 107 inquiry usriot com Diagram 5 2 4 Serial Port Baud rate Data Parity Stop Local port Remote port Work mode Remote server address Special functions ...

Page 78: ...tent customize and the max number is 40bite Customize registration package open with webpage content customize and the max number is 40bite the method to use can be customize Short connection enable under the TCP client and the time can be customize Clear buffer data whether or not TCP server kick off old connection Serial port parameter setting open with webpage and setting with serial port param...

Page 79: ...l www usriot com Jinan USR IOT Technology Limited 79 107 inquiry usriot com Diagram 5 2 6 Miss configure Module name Webserver port Username Password MAC address Max client connected to TCP server Reset timeout 6 Reboot ...

Page 80: ...using UART and module under the order mode Later we will interpret the type in detail Powered successfully we can setting the module with UART The default UART port parameters of the module are baud rate1152000 no parity data 8 and stop 1 Instr AT command test tools UART interface recommand to use secureCRT software tool or USR pro APP Below are using the secureCRT with UART to perform From transp...

Page 81: ...ill and a as the above Fill and a need to achieve in the time to reduce the chance of entering command mode while working normally accidentally Detail requirement are as fellows Diagram 5 3 1 2 Time Tree Time requirement T1 the interval of serial port package T2 300ms T3 300ms T5 3s The order change into temporary command mode from transparent transport mode ...

Page 82: ...the device receive ok and know the module enter the AT command mode then send AT command The order change into net transparent transport from AT command mode 1 Serial device send AT ENTM to module 2 After the module receive the command feedback ok then back to the previous working mode 5 3 2 AT Command Error Code Error code Instr 1 Invalid format 2 Invalid order 3 Invalid operator 4 Invalid parame...

Page 83: ...RT Setting query serial parameters 13 SOCK Setting query SOCK parameters 14 TCPSE Setting query whether kick off order connection 15 SOCKLK Query TCP connect status 16 SOCKPORT Setting query local port number 17 RECEN Setting query RFC2217 enable 18 PDTIME Query the product time Registration package function 19 REGEN Setting query registration package mechanism 20 REGTCP Setting query registration...

Page 84: ...tbeat package time 30 HEARTDT Setting query customize heartbeat package Expand function command 31 SCSLINK Setting query the indicating function of the status of socket connection 32 CLIENTRST Setting query the TCP client mode reset function enable disable 33 INDEXEN Setting query index function 34 SOCKSL Setting query short connection function 35 SHORTO Setting query short connection time 36 UART...

Page 85: ...ction query setting module echo of the AT command setting Format query A E CR CR LF OK on off CR LF setting A E on off CR CR LF OK CR LF Parameters ON enable the echo echo the command entered by the AT command OFF under AT command mode the entered command do not echo E g AT E 0N 2 AT Z Function restart module Format setting AT Z CR CR LF OK CR LF Parameters none note after perform this command cor...

Page 86: ...dule firmware version 4 AT ENTM Function exit the AT command mode and enter the transparent transmission Format setting AT ENTM CR CR LF OK CR LF Parameters none note after perform this command correctly module change into command mode from transparent transmission mode 5 AT RELD Function module reset Format setting AT RELD CR CR LF OK CR LF parameters none 6 AT MAC Function query module MAC Forma...

Page 87: ... CR CR LF OK CR LF Parameters mac MAC address of the module the first byte should be even e g 002233445566 E g AT USERMAC 002233445566 8 AT WEBU Function setting query module username and password Format query AT WEBU CR CR LF OK username password CR LF setting AT WEBU username password CR CR LF OK CR LF Parameters username username support 5 bytes at longest and can not be none password password ...

Page 88: ...setting AT WANN mode address mask gateway CR CR LF OK CR LF Parameters mode web IP mode static DHCP static static IP DHCP dynamic IP address mask gateway parameters ignore address IP address mask subnet masks gateway gateway address E g AT WANN static 192 168 0 7 255 255 255 0 192 168 0 1 10 AT DNS Function setting query DNS server address Format query AT DNS CR CR LF OK address CR LF setting AT D...

Page 89: ...LF OK port CR LF setting AT WEBPORT port CR CR LF OK CR LF Parameters port module the port of the web server that built in of module default 80 E g AT WEBPORT 80 12 AT UART Function setting query UART interface parameters Format query AT UART CR CR LF OK baudrate data_bits stop_bit parity flowctrl CR LF setting AT UART baud rate data_bits stop_bit parity flowctrl CR LF CR LF OK CR LF Parameters ba...

Page 90: ...flow control none flow control can not setting default setting to be the NFC NFC none hardware flow control FCH have hardware flow control FCR software flow control E g AT UART 115200 8 1 NONE NFC 13 AT SOCK Function setting query web protocol parameters format Format query AT SOCK CR CR LF OK protocol IP port CR LF setting AT SOCK protocol IP port CR CR LF OK CR LF Parameters Protocol protocol ty...

Page 91: ... under Client mode decimal number and less than 65535 E g AT SOCK TCPC 192 168 0 201 8234 14 AT TCPSE Function module is TCP Server the processing mechanism after the connection reaches the maximum number of connections Format query AT TCPSE CR CR LF OK status CR LF setting AT TCPSE status CR CR LF OK CR LF Parameters Status setting status keep kick keep after reach the maximum number of connectio...

Page 92: ...ameters Sta built the TCP connection or not Connect TCP connected Disconnect TCP not connected 16 AT SOCKPORT Function setting query local socket port Format query AT SOCKPORT CR CR LF OK sta CR LF setting AT SOCKPORT sta CR CR LF OK CR LF Parameters Sta 0 is using port randomly 1 65535 is using the local port of the socket E g AT SOCKPORT 20108 17 AT RFCEN Function enable disable RFC221 7function...

Page 93: ...ting AT RFCEN status CR CR LF OK CR LF Parameters status ON enable RFC2217function OFF disable RFC2217function E g AT RFCEN ON 18 AT PDTIME Function query produce time Format query AT PDTIME CR CR LF OK time CR LF Parameters time produce time e g 2016 10 18 11 20 02 19 AT REGEN Function setting query registration package mechanism Format query ...

Page 94: ...ge mechanism registration package is 6 bites MAC Usr customize registration package Off disable registration package mechanism E g AT REGEN MAC 20 AT REGTCP Function setting query tcp client mode registration package perform mechanism Format query AT REGTCP CR CR LF OK status CR LF setting AT REGTCP status CR CR LF OK CR LF Parameters Status first send a registration package when connected the ser...

Page 95: ...front of the data package E g AT REGTCP first 21 AT REGCLOUD Function setting query USR cloud username and password Format query AT REGCLOUD CR CR LF OK name password CR LF setting AT REGCLOUD name password CR CR LF OK CR LF Parameters Status name USR cloud device port password USR cloud password E g AT REGCLOUD 0000000000000000000000 00000000 22 AT REGUSR Function setting query customize registra...

Page 96: ...0 bytes E g AT REGUSR www usr cn 23 AT HTPTP Function setting query the asking way under HTTPD Client mode Format query AT HTPTP CR CR LF OK status CR LF setting AT HTPTP status CR CR LF OK CR LF Parameters Status GET is the http asking way POST is the http asking way E g AT HTPTP GET 24 AT HTPURL Function setting query Httpd 的 URL Format query AT HTPURL CR ...

Page 97: ...Function setting query Httpd Client customize package head message Format query AT HTPHEAD CR CR LF OK data CR LF setting AT HTPHEAD data CR CR LF OK CR LF Parameters data customize package message less than 199 bytes And using CRLF translating the characters in stead of the enter E g AT HTPHEAD Accept text CRLF 26 AT HTPCHD Function setting query filter the package head of the return information ...

Page 98: ...CR LF OK CR LF Parameters Sta ON enable OFF disable E g AT HTPCHD ON 27 AT HEARTEN Function setting query enable or not heartbeat package Format query AT HEARTEN CR CR LF OK status CR LF setting AT HEARTEN status CR CR LF OK CR LF Parameters Status ON enable heartbeat package Off disable heartbeat package E g AT HEARTEN ON 28 AT HEARTTP ...

Page 99: ... CR LF setting AT HEARTTP type CR CR LF OK CR LF Parameters Status NET send heartbeat package to server COM send heartbeat package to serial port E g AT HEARTTP NET 29 AT HEARTTM Function setting query time of heartbeat package Format query AT HEARTTM CR CR LF OK time CR LF setting AT HEARTTM time CR CR LF OK CR LF Parameters Time heartbeat time default is 30s range from 1 to 65535s ...

Page 100: ...ata CR LF setting AT HEARTDT data CR CR LF OK CR LF Parameters data less than 40 bytes ASCII code E g AT HEARTDT www usr cn 31 AT SCSLINK Function setting query Socket connected status instructions function connection status instructions pin change or not according to the connection status Format query AT SCSLINK CR CR LF OK sta CR LF setting AT SCSLINK sta CR CR LF OK CR LF Parameters sta status ...

Page 101: ...eral time and reset repeat 30 times connection failed module restart Format query AT CLIENTRST CR CR LF OK sta CR LF setting AT CLIENTRST sta CR CR LF OK CR LF Parameters sta status ON enable TCP Client reset function OFF disable TCP Client reset function E g AT CLIENTRST ON 33 AT INDEXEN Function setting query index function Format query AT INDEXEN CR CR LF OK sta CR LF setting AT INDEXEN sta CR ...

Page 102: ...DEX ON 34 AT SOCKSL Function setting query short connection function Format query AT SOCKSL CR CR LF OK sta CR LF setting AT SOCKSL sta CR CR LF OK CR LF Parameters sta status ON enable short connection function OFF disable short connection function E g AT SOCKSL ON 35 AT SHORTO Function setting query short connection time Format query AT SHORTO CR CR LF OK time CR LF setting ...

Page 103: ... setting query if the module clear the serial port cache before connected Format query AT UARTCLBUF CR CR LF OK sta CR LF setting AT UARTCLBUF sta CR CR LF OK CR LF Parameters sta status ON clear the serial port cache before connected OFF do not clear the serial port cache before connected E g AT UARTCLBUF ON 37 AT RSTIM Function setting query restart timeout Format query AT RSTIM CR CR LF OK time...

Page 104: ...aximum number of the client that TCP Server connected Format query AT MAXSK CR CR LF OK num CR LF setting AT MAXSK num CR CR LF OK CR LF Parameters num the maximum number of the client that TCP Server connected range from 1 to 16 E g AT MAXSK 4 39 AT MID Function setting query module name Format query AT MID CR CR LF OK name CR LF setting AT MID name CR CR LF OK CR LF Parameters name module name m...

Page 105: ... help information 41 AT CFGTF Function save the current parameters as the default parameters Format query AT CFGTF CR CR LF OK sta CR LF Parameters sta slave saved 42 AT PING Function setting ping the remote IP and operate the ping 1 time Format query AT PING IP CR CR LF OK CR LF Parameters IP ping the remote IP or the domain name automatically maximum 30 bytes E g AT PING www baidu com ...

Page 106: ...Company Jinan USR IOT Technology Co Ltd Address Floor 11 Building1 No 1166 Xinluo Street Gaoxin Distric Jinan Shandong 250101 China Tel 86 531 55507297 86 531 88826739 803 Web http www usriot com Skype lisausr Support http h usriot com index php c frontTicket m sign Email sales usr cn tec usr cn 7 Disclaimer ...

Page 107: ...ct including the suitability of products for a particular purpose merchant ability or fitness for any patent copyright or other intellectual property infringement USR may make changes to specifications and products description without notice 8 Modified History vision Modify instr Time V1 0 0 The first one 2016 03 30 V1 0 1 Modify the work way of heartbeat package and the range of heartbeat time mo...

Reviews: