Component: WLAN Dummy (EB069, WIZ610wi) (Wireless): Difference between revisions
No edit summary |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 98: | Line 98: | ||
===CheckForPageRequests=== | ===CheckForPageRequests=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''CheckForPageRequests''' | ||
|- | |- | ||
| colspan="2" | To be called periodically. Returns non-zero if a request has been processed | | colspan="2" | To be called periodically. Returns non-zero if a request has been processed | ||
| Line 112: | Line 112: | ||
===ConnectToSSID=== | ===ConnectToSSID=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ConnectToSSID''' | ||
|- | |- | ||
| colspan="2" | Attempts to connect to the given SSID and Key values. Returns 0 if successful. | | colspan="2" | Attempts to connect to the given SSID and Key values. Returns 0 if successful. | ||
| Line 136: | Line 136: | ||
===DisableCommandMode=== | ===DisableCommandMode=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''DisableCommandMode''' | ||
|- | |- | ||
| colspan="2" | Exits command mode | | colspan="2" | Exits command mode | ||
| Line 150: | Line 150: | ||
===EnableCommandMode=== | ===EnableCommandMode=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''EnableCommandMode''' | ||
|- | |- | ||
| colspan="2" | Enables command mode. Must be called before commands are issued. | | colspan="2" | Enables command mode. Must be called before commands are issued. | ||
| Line 164: | Line 164: | ||
===GetInValue=== | ===GetInValue=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetInValue''' | ||
|- | |- | ||
| colspan="2" | Returns the string value of a Request parameter | | colspan="2" | Returns the string value of a Request parameter | ||
| Line 183: | Line 183: | ||
===GetReply=== | ===GetReply=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetReply''' | ||
|- | |- | ||
| colspan="2" | Returns the last received response to a command. 0 = OK 1 = FAIL_ERR 2 = STX_ERR 3 = CMD_ERR 4 = PARAM_ERR 5 = ETX_ERR 6 = SERIAL 255 = TOUT | | colspan="2" | Returns the last received response to a command. 0 = OK 1 = FAIL_ERR 2 = STX_ERR 3 = CMD_ERR 4 = PARAM_ERR 5 = ETX_ERR 6 = SERIAL 255 = TOUT | ||
| Line 197: | Line 197: | ||
===Initialise=== | ===Initialise=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Initialise''' | ||
|- | |- | ||
| colspan="2" | Initialise the device with the property data. Returns 0 if successful | | colspan="2" | Initialise the device with the property data. Returns 0 if successful | ||
| Line 211: | Line 211: | ||
===ReadConnectionStatus=== | ===ReadConnectionStatus=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadConnectionStatus''' | ||
|- | |- | ||
| colspan="2" | Checks the connection status. Returns 0 if not connected, 1 if connected. | | colspan="2" | Checks the connection status. Returns 0 if not connected, 1 if connected. | ||
| Line 225: | Line 225: | ||
===ReceiveIncoming=== | ===ReceiveIncoming=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReceiveIncoming''' | ||
|- | |- | ||
| colspan="2" | Returns the received data string | | colspan="2" | Returns the received data string | ||
| Line 239: | Line 239: | ||
===SendCommand=== | ===SendCommand=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SendCommand''' | ||
|- | |- | ||
| colspan="2" | Sends the given command and returns the reply status. (See GetReply for return values) | | colspan="2" | Sends the given command and returns the reply status. (See GetReply for return values) | ||
| Line 258: | Line 258: | ||
===SendString=== | ===SendString=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SendString''' | ||
|- | |- | ||
| colspan="2" | Sends the given Text. Appends a CR/LF pair of characters it CrLf is true. | | colspan="2" | Sends the given Text. Appends a CR/LF pair of characters it CrLf is true. | ||
| Line 282: | Line 282: | ||
===Send_Embedded_HTML_Page1=== | ===Send_Embedded_HTML_Page1=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Send_Embedded_HTML_Page1''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 296: | Line 296: | ||
===Send_Embedded_HTML_Page2=== | ===Send_Embedded_HTML_Page2=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Send_Embedded_HTML_Page2''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 310: | Line 310: | ||
===Send_Embedded_HTML_Page3=== | ===Send_Embedded_HTML_Page3=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Send_Embedded_HTML_Page3''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 324: | Line 324: | ||
===Send_Embedded_HTML_Page4=== | ===Send_Embedded_HTML_Page4=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Send_Embedded_HTML_Page4''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 338: | Line 338: | ||
===SetOutValue=== | ===SetOutValue=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetOutValue''' | ||
|- | |- | ||
| colspan="2" | Set the value of an outbound substitution string | | colspan="2" | Set the value of an outbound substitution string | ||
| Line 363: | Line 363: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|} | |} | ||
Latest revision as of 14:23, 13 July 2026
| Author | Matrix Ltd. |
| Version | 1.3 |
| Category | Wireless |
WLAN Dummy (EB069, WIZ610wi) component
Wireless LAN component designed to work with the WIZ610wi module from Wiznet. Provides a very simple interface to allow webpages to be hosted from hardware or simulation. Also available in the form of the EB069 E-block.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WLAN_Dummy.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_WLAN_Dummy.fcfx
Detailed description
No detailed description exists yet for this component
Examples
This example connects the WLAN module to a existing wireless router and starts a web page server running. The web page can be accessed by typing the IP address of the module into your browser.
Please note that due to limitations with use if RAM storage on some processors you will need to ensure that each line of the page text (HTML) is quite short, usually below 100 characters.
Otherwise this can cause an error such as “Error: No remaining RAM block (on target) big enough for:”
Additional examples can be found in the “Apps and Bundles” section of this Wiki:
Wireless LAN Application Guide
The example also hosts a web page server during simulation using your PC. You can access the web pages served by the PC running Flowcode by using the localhost loopback IP address "127.0.0.1:5000" where 5000 is the port assigned to the WLAN component. You can access the web pages from a PC on a network by using the IP address of the machine running Flowcode and specifying the correct port. Port 80 is used by default for HTML transfer but windows can be a bit funny about what is allowed on port 80 so we have used port 5000 in the example. You may have to check your server PC's incoming firewall settings to get this fully functional via a remote PC.
WLAN Webpage Server
Here is one of the pages generated by the example.
The TCPIP tab of the console window will show all the data sent and received during simulation which is useful for learning how things like web page servers work.
Macro reference
CheckForPageRequests
| CheckForPageRequests | |
| To be called periodically. Returns non-zero if a request has been processed | |
| Return | |
ConnectToSSID
| ConnectToSSID | |
| Attempts to connect to the given SSID and Key values. Returns 0 if successful. | |
| SSID | |
| Key | |
| Return | |
DisableCommandMode
| DisableCommandMode | |
| Exits command mode | |
| Return | |
EnableCommandMode
| EnableCommandMode | |
| Enables command mode. Must be called before commands are issued. | |
| Return | |
GetInValue
| GetInValue | |
| Returns the string value of a Request parameter | |
| index | |
| Index of the request paramter, starting at zero. | |
| Return | |
GetReply
| GetReply | |
| Returns the last received response to a command. 0 = OK 1 = FAIL_ERR 2 = STX_ERR 3 = CMD_ERR 4 = PARAM_ERR 5 = ETX_ERR 6 = SERIAL 255 = TOUT | |
| Return | |
Initialise
| Initialise | |
| Initialise the device with the property data. Returns 0 if successful | |
| Return | |
ReadConnectionStatus
| ReadConnectionStatus | |
| Checks the connection status. Returns 0 if not connected, 1 if connected. | |
| Return | |
ReceiveIncoming
| ReceiveIncoming | |
| Returns the received data string | |
| Return | |
SendCommand
| SendCommand | |
| Sends the given command and returns the reply status. (See GetReply for return values) | |
| Command | |
| Return | |
SendString
| SendString | |
| Sends the given Text. Appends a CR/LF pair of characters it CrLf is true. | |
| Text | |
| CrLf | |
| Return | |
Send_Embedded_HTML_Page1
| Send_Embedded_HTML_Page1 | |
| Return | |
Send_Embedded_HTML_Page2
| Send_Embedded_HTML_Page2 | |
| Return | |
Send_Embedded_HTML_Page3
| Send_Embedded_HTML_Page3 | |
| Return | |
Send_Embedded_HTML_Page4
| Send_Embedded_HTML_Page4 | |
| Return | |
SetOutValue
| SetOutValue | |
| Set the value of an outbound substitution string | |
| index | |
| value | |
| Return | |
Property reference
| Properties |

