WizFi250 AT Command Examples

/WizFi250 AT Command Examples
WizFi250 AT Command Examples2018-08-01T13:40:46+00:00

Project Description

This posting introduces some examples of AT+FSOCK and AT+MEVTFORM, the major AT commands of WizFi250

 (1) AT+FSOCK=6,n

At the TCP Client mode, if the connection is unexpectely closed, the WizFi250 needs to try to re-connect. For this you can use below commands

AT+FSOCK=6,n

This commands let WizFi250 check the socket status every ‘n’ second, and re-create the socket if there is no socket opened.

For example, when WizFi250 opeartes at the ‘AT+SCON=S,TCN,….’ mode, if the connection with TCP server is closed, WizFi250 will re-create the socket using the command ‘AT+FSOCK=6,n’ option.

 (2) AT+FSOCK=8,n

This command is very similar to ‘AT+FSOCK=6,n’, but it resets the WizFi250. Therefore, with this command WizFi250 tries to re-connect to AP after resetting.

AT+FSOCK=8,n

For example, when WizFi250 opeartes at the ‘AT+SCON=S,TCN,….’ mode, if the connection with TCP server is closed, the module resets and restarts by connecting to AP.

However, if there is no TCP server, WizFi250 will repeately reset and re-associate. It can make the trouble at the AP.

(3) AT+MEVTFORM

 

WizFi250 can make some random messages that could be transmited to MCU, but MCU could not interpret all those mesaages. This command will select the requried message or tranmits simplified format to MCU.

Example 1

This example code will let WizFi250 tries to re-connect to the TCP server every 10 second and reset every 15 second for re-connection.

Example 2

This example is almost identical with example 1, but event message configuration has been added.

Initial booting Event Message : Normal output

[CONNECT x], [DISCONNECT x], [Link-Up Event], [Link-Down Event] : Short Messag output

Other event messages are not output.

Example 3

This example is almost identical with example 2, but all the event messages are not output.

 [/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]
0 7 0

Leave a Reply