Internet of Things made simple – Flowcode Simulated Webserver & TCP Comms
|As we are discussing the internet of things it might be worthwhile mentioning the simulation capability of Flowcode 6.
The TCP base component provides the simulated network communications which is then built into the higher level embedded components to provide the simulation functionality should the user want it.
The higher level components provide connectivity for these modules though more could be added using the component creation interface. More are planned for the future based on demand.
- Wiznet NM7010A Ethernet Module
- Wiznet WIZ810MJ Ethernet Module
- Wiznet WIZ610WI Wifi Module
- Microchip ENC28J60 Ethernet Module
- Espressif ESP8266 Wifi Module
This wiki page details an example of creating a webserver that can be ran in simulation or downloaded to an embedded target.
By clicking the play button in Flowcode the web server will initialise and become active so that typing in the IP address into the address bar of your web browser should fetch the webpage served by the Flowcode software. Any device on your local network should then be able to access your served page.
This functionality allows you to simulate a lot of different scenarios:
- An internet of things sensor
- An internet of things actuator
- A web Server or data center
- A real time TCP/IP data logger
- Low level TCP/IP comms
Another nice feature is that the low level comms data is automatically provided for you as part of the console interface. Red indicates incoming data and Blue indicates outgoing data.
By running multiple instances of Flowcode (either on the same PC or on different PC’s connected to the same network) it is possible to establish communications and simulate a whole host of different hardware so you can be sure to get your software interacting seamlessly before you download the code to the black box that is a microcontroller.
Once the code is in the Microcontroller you can use Matrix’s Ghost Technology to control the program execution as well as monitoring the external signals around the microcontroller.
My friend, I want to turn on and turn off a led diode with a pic 16f628A and esp8266 with my cellphone out of my house with this led diode in my house with flowcode. Is possible this work??
I have a wifi net in my house.
Hi Jarvin, Yes its certainly possible to do that. We have a lot of examples on our Wiki for the ESP8266 component and our user forums can help if you have any problems. You would need to enable port forwarding on your router to allow you to connect to the ESP module from outside your home network.
Thanks for response, can you teach me one example of this. Please.
I did a project here which may help.
http://www.matrixtsl.com/mmforums/viewtopic.php?f=63&t=18721&p=80530
My friend, can you help me. I am working with a servomotor and a pic 16F877A, I see a flowchart example but it only work 90 degrees so I need work with 180 degrees.
Hello, I beleive this has been answered for you on our forums.
yes my friend I did it. I am new in the forum. I going to see the project that you did. Sorry if my english is not good.
Thank you