I've been asked to add reliable messaging capability over LAN to an existing Flowcode project, currently only using serial UART to a host PC.
Now, having never interfaced LAN to anything before - and particularly with Flowcode (FC10), I'm getting a little tied up trying to establish exactly how and when to invoke the various networking component functions.
I have already bound NetworkComms to TCP-IP-W5500, initialised them both in the flow, and opened an initial socket, and I can successfully ping the W5500 so SPI (etc) is good, but then things get a bit... 'fuzzy'...
Listen, Connect, Socket Open/Close, Accept Open/Close, etc..etc..
Fundamentally, the task is to send short strings (i.e. "commands") from a networked PC that replicate pre-existing UART commands, so that once each command is received via network then it can be channelled to the existing custom command interpreter in Flowcode. A reply will then be returned to the networked PC, in the same way as already done via UART. The IP address of the remote PC can also dynamically change so must be handled as-well (which I presume is handled automatically by the TCP-IP stack on the W5500 chip, without FC intervention?).
Per usual, precious little time to study protocols and experiment with Flowcode, so really just wanting to ask if anyone could point me in the right direction to an example project possibly similar to what I aim to achieve? Just something to get me off the starting block as a good point of reference to work from
Many thanks in advance,
Brendan
Example Sought - W5500 TCP-IP
-
- Posts: 43
- http://meble-kuchenne.info.pl
- Joined: Tue Dec 08, 2020 2:12 pm
- Has thanked: 35 times
- Been thanked: 11 times
-
- Valued Contributor
- Posts: 1178
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 287 times
- Been thanked: 417 times
Re: Example Sought - W5500 TCP-IP
Hi
Without knowing specifics, it sound a good Flowcode App Developer project. Maybe have a look at that as there are plenty of examples. FAD can control projects connected to the PC, over local LAN, and over the internet.
Regards
Without knowing specifics, it sound a good Flowcode App Developer project. Maybe have a look at that as there are plenty of examples. FAD can control projects connected to the PC, over local LAN, and over the internet.
Regards
-
- Valued Contributor
- Posts: 185
- Joined: Wed Jan 13, 2021 7:15 pm
- Has thanked: 81 times
- Been thanked: 30 times
Re: Example Sought - W5500 TCP-IP
Hi Brendan
If you go to MatrixTSL website and look in "learning"
https://www.matrixtsl.com/learning/
There are some very useful courses, in there is an "Embedded Internet Communications" Course maybe this will help (about Half way Down)
https://www.matrixtsl.com/resources/fil ... ternet.pdf
Regards
Steve
If you go to MatrixTSL website and look in "learning"
https://www.matrixtsl.com/learning/
There are some very useful courses, in there is an "Embedded Internet Communications" Course maybe this will help (about Half way Down)
https://www.matrixtsl.com/resources/fil ... ternet.pdf
Regards
Steve