Component: WLAN Dummy (EB069, WIZ610wi) (Wireless)

From Flowcode Help
Jump to navigationJump to search
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:

Internet Application Guide

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. FC6 Icon.png WLAN Webpage Server Here is one of the pages generated by the example.

Webpage.jpg


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.

WebLog.jpg






Macro reference

CheckForPageRequests

Fc9-comp-macro.png CheckForPageRequests
To be called periodically. Returns non-zero if a request has been processed 
Fc9-u8-icon.png - BYTE Return


ConnectToSSID

Fc9-comp-macro.png ConnectToSSID
Attempts to connect to the given SSID and Key values. Returns 0 if successful. 
Fc9-string-icon.png - STRING SSID
 
Fc9-string-icon.png - STRING Key
 
Fc9-u8-icon.png - BYTE Return


DisableCommandMode

Fc9-comp-macro.png DisableCommandMode
Exits command mode 
Fc9-void-icon.png - VOID Return


EnableCommandMode

Fc9-comp-macro.png EnableCommandMode
Enables command mode. Must be called before commands are issued. 
Fc9-void-icon.png - VOID Return


GetInValue

Fc9-comp-macro.png GetInValue
Returns the string value of a Request parameter 
Fc9-u8-icon.png - BYTE index
Index of the request paramter, starting at zero. 
Fc9-string-icon.png - STRING Return


GetReply

Fc9-comp-macro.png 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 
Fc9-u8-icon.png - BYTE Return


Initialise

Fc9-comp-macro.png Initialise
Initialise the device with the property data. Returns 0 if successful 
Fc9-u8-icon.png - BYTE Return


ReadConnectionStatus

Fc9-comp-macro.png ReadConnectionStatus
Checks the connection status. Returns 0 if not connected, 1 if connected. 
Fc9-u8-icon.png - BYTE Return


ReceiveIncoming

Fc9-comp-macro.png ReceiveIncoming
Returns the received data string 
Fc9-string-icon.png - STRING Return


SendCommand

Fc9-comp-macro.png SendCommand
Sends the given command and returns the reply status. (See GetReply for return values) 
Fc9-string-icon.png - STRING Command
 
Fc9-u8-icon.png - BYTE Return


SendString

Fc9-comp-macro.png SendString
Sends the given Text. Appends a CR/LF pair of characters it CrLf is true. 
Fc9-string-icon.png - STRING Text
 
Fc9-u8-icon.png - BYTE CrLf
 
Fc9-void-icon.png - VOID Return


Send_Embedded_HTML_Page1

Fc9-comp-macro.png Send_Embedded_HTML_Page1
 
Fc9-void-icon.png - VOID Return


Send_Embedded_HTML_Page2

Fc9-comp-macro.png Send_Embedded_HTML_Page2
 
Fc9-void-icon.png - VOID Return


Send_Embedded_HTML_Page3

Fc9-comp-macro.png Send_Embedded_HTML_Page3
 
Fc9-void-icon.png - VOID Return


Send_Embedded_HTML_Page4

Fc9-comp-macro.png Send_Embedded_HTML_Page4
 
Fc9-void-icon.png - VOID Return


SetOutValue

Fc9-comp-macro.png SetOutValue
Set the value of an outbound substitution string 
Fc9-u8-icon.png - BYTE index
 
Fc9-string-icon.png - STRING value
 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties