UDP string rx
Moderator: Benj
-
- Valued Contributor
- Posts: 1200
- Joined: Wed May 31, 2017 11:57 am
- Has thanked: 70 times
- Been thanked: 440 times
- Contact:
Re: UDP string rx
Hi Ferla,
Sorry - I can get the WebServer component to work (though not with files from SD - see above) - but haven't had much joy with the UDP socket..
I get an output to UART following creation of the socket - but then things seem to grind to a halt. Ben / Leigh maybe have some examples ?
Martin
Sorry - I can get the WebServer component to work (though not with files from SD - see above) - but haven't had much joy with the UDP socket..
I get an output to UART following creation of the socket - but then things seem to grind to a halt. Ben / Leigh maybe have some examples ?
Martin
-
- Flowcode v5 User
- Posts: 126
- Joined: Sun Jan 06, 2013 8:58 pm
- Location: Italy
- Been thanked: 19 times
- Contact:
Re: UDP string rx
Hi Martin
I also noticed the same thing and I thought it was my converter TTL Max3232 that had broken then verifying it was not. Everything happened from the Pic ..
Ferla
I also noticed the same thing and I thought it was my converter TTL Max3232 that had broken then verifying it was not. Everything happened from the Pic ..
Ferla
-
- Valued Contributor
- Posts: 1200
- Joined: Wed May 31, 2017 11:57 am
- Has thanked: 70 times
- Been thanked: 440 times
- Contact:
Re: UDP string rx
Hi Ferla,
I haven't managed to get a UDPSocket to work - although I can send a message to the UART after creation - I managed to get a WebServer apllication working (although see above) - Ben / Leigh might have some better examples.
Martin
I haven't managed to get a UDPSocket to work - although I can send a message to the UART after creation - I managed to get a WebServer apllication working (although see above) - Ben / Leigh might have some better examples.
Martin
-
- Flowcode v5 User
- Posts: 126
- Joined: Sun Jan 06, 2013 8:58 pm
- Location: Italy
- Been thanked: 19 times
- Contact:
Re: UDP string rx
Martin,
you would be kind to show me your Web Server test project
Thank you very much
Ferla
you would be kind to show me your Web Server test project
Thank you very much
Ferla
-
- Valued Contributor
- Posts: 1200
- Joined: Wed May 31, 2017 11:57 am
- Has thanked: 70 times
- Been thanked: 440 times
- Contact:
Re: UDP string rx
It's really just the demo program from the Flowcode Wiki...
I added some strings to the index page (scroll up when clicking on them - I looked and thought not much here!) - but the temperature = B001 etc was part of the original and the the strings don't get substituted - which I suspect the html was intended to do?
I can't see any way to make the SD served files work ??
The pins are set as for an Arduino + Shield (so pin digital 10 for CS for example) and may need changing. You'll also need to set your gateway IP (your router's IP address). Then open a web browser and enter 192.168.1.177 in the address bar (or whatever you've changed this to - first 3 numbers should be the same as the first three numbers of the gateway IP) - for some reason it only works in Chrome for me - not MS Edge??
Martin
I added some strings to the index page (scroll up when clicking on them - I looked and thought not much here!) - but the temperature = B001 etc was part of the original and the the strings don't get substituted - which I suspect the html was intended to do?
I can't see any way to make the SD served files work ??
The pins are set as for an Arduino + Shield (so pin digital 10 for CS for example) and may need changing. You'll also need to set your gateway IP (your router's IP address). Then open a web browser and enter 192.168.1.177 in the address bar (or whatever you've changed this to - first 3 numbers should be the same as the first three numbers of the gateway IP) - for some reason it only works in Chrome for me - not MS Edge??
Martin
-
- Flowcode v5 User
- Posts: 126
- Joined: Sun Jan 06, 2013 8:58 pm
- Location: Italy
- Been thanked: 19 times
- Contact:
Re: UDP string rx
Martin,
Thank you, but we came out of the lens.
Using EB006 + pic16F1937 + EB023 I managed to send a string via UDP without problems.
Here the problem seems to be another maybe because the Pic and 16bit maybe you have to intervene with C code by activating the SPI device I do not understand, I kindly ask the Matrix staff for help
Ferla
Thank you, but we came out of the lens.
Using EB006 + pic16F1937 + EB023 I managed to send a string via UDP without problems.
Here the problem seems to be another maybe because the Pic and 16bit maybe you have to intervene with C code by activating the SPI device I do not understand, I kindly ask the Matrix staff for help
Ferla
-
- Flowcode v5 User
- Posts: 126
- Joined: Sun Jan 06, 2013 8:58 pm
- Location: Italy
- Been thanked: 19 times
- Contact:
Re: UDP string rx
Benj help me ....
no help, I do not want to interface to one more micro to ECIO40p16 just to handle UDP EB023. Show me the way, then walk alone ...
Thanks
Ferla
no help, I do not want to interface to one more micro to ECIO40p16 just to handle UDP EB023. Show me the way, then walk alone ...
Thanks
Ferla
-
- Valued Contributor
- Posts: 1200
- Joined: Wed May 31, 2017 11:57 am
- Has thanked: 70 times
- Been thanked: 440 times
- Contact:
Re: UDP string rx
Hi Ferla,
How do you transmit a message to the UDP socket? Sorry - I don't have the same hardware - hopefully Ben can guide you....
Martin
How do you transmit a message to the UDP socket? Sorry - I don't have the same hardware - hopefully Ben can guide you....
Martin
-
- Flowcode v5 User
- Posts: 126
- Joined: Sun Jan 06, 2013 8:58 pm
- Location: Italy
- Been thanked: 19 times
- Contact:
Re: UDP string rx
Hi Martin,
I receive on the PC through SW Hercules, I can transmit from EB023 to PC but not receive. I've tried without success for two days. Benj you have some examples that I can view.
I noticed that when I use the RxReadByte macro I see the ip inherent to the EB023 module on the EB005 display. Also disconnecting the cable from the PC. Because ?
Ferla
I receive on the PC through SW Hercules, I can transmit from EB023 to PC but not receive. I've tried without success for two days. Benj you have some examples that I can view.
I noticed that when I use the RxReadByte macro I see the ip inherent to the EB023 module on the EB005 display. Also disconnecting the cable from the PC. Because ?
Ferla
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: UDP string rx
Hi Guys,
I've been following the thread but not too closely and seen my name mentioned.
Can you attach your current program and say specifically what the problem is to save me having to read through and infer what the problem might be.
Also which version of the EB023 board are you using? The version is printed on the board in the form of EB023-00-X where X is the version number.
I've been following the thread but not too closely and seen my name mentioned.
Can you attach your current program and say specifically what the problem is to save me having to read through and infer what the problem might be.
Also which version of the EB023 board are you using? The version is printed on the board in the form of EB023-00-X where X is the version number.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Flowcode v5 User
- Posts: 126
- Joined: Sun Jan 06, 2013 8:58 pm
- Location: Italy
- Been thanked: 19 times
- Contact:
Re: UDP string rx
Hi Beny
after so much silence, after seeing your request, my smile is back.
- Version EB023 = EB-023-00-3
Surely it's easy for you, I try to explain:
-First problem: I use ECIO40P16 I want to connect EB023 when I implement the Macro (UDP socket), because Pic stops working because? look at my project some posts project WS2812B_40P16_Rev2_OK.fcfx
-I need to have examples in which a string transmitted from the PC via UDP to EB023, this is taken over by the manipulated FC to do something.
-Example also with ENC28J60 please.
-Other example, send string from EB023 to PC always using UDP.
Thanks so much
Ferla
after so much silence, after seeing your request, my smile is back.
- Version EB023 = EB-023-00-3
Surely it's easy for you, I try to explain:
-First problem: I use ECIO40P16 I want to connect EB023 when I implement the Macro (UDP socket), because Pic stops working because? look at my project some posts project WS2812B_40P16_Rev2_OK.fcfx
-I need to have examples in which a string transmitted from the PC via UDP to EB023, this is taken over by the manipulated FC to do something.
-Example also with ENC28J60 please.
-Other example, send string from EB023 to PC always using UDP.
Thanks so much
Ferla
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: UDP string rx
Hi Ferla,
Thanks for the clarification. These examples are from our TCP/IP solution and are known to work well with the EB023-00-2 board.
Crazy busy in the office at the minute so can't comb through your program but hopefully you can spot something useful from the examples.
Let us know how you're getting on. If you're still having problems then I'll have a dig in for you.
Thanks for the clarification. These examples are from our TCP/IP solution and are known to work well with the EB023-00-2 board.
Crazy busy in the office at the minute so can't comb through your program but hopefully you can spot something useful from the examples.
Let us know how you're getting on. If you're still having problems then I'll have a dig in for you.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Flowcode v5 User
- Posts: 126
- Joined: Sun Jan 06, 2013 8:58 pm
- Location: Italy
- Been thanked: 19 times
- Contact:
Re: UDP string rx
Thanks, Beny
your examples have already been tried without success.
It works only when I receive, use SW SimpleCommTools http://www.simplecomtools.com/productca ... dproduct=6& ,and on other hw it works
Ferla
your examples have already been tried without success.
It works only when I receive, use SW SimpleCommTools http://www.simplecomtools.com/productca ... dproduct=6& ,and on other hw it works
Ferla
-
- Flowcode v5 User
- Posts: 126
- Joined: Sun Jan 06, 2013 8:58 pm
- Location: Italy
- Been thanked: 19 times
- Contact:
Re: UDP string rx
Hi Beny
I solved the problem RX with UDP, but the problem remains still ECIO40P16.
When I insert the EB023 socket component macro into FC7, ECIO40P16 stops working. Can you take a look? I also ask the friends of the forum
Many have seen my post, but no one commented, just kind Martin.
Guys, I count on your help.
Do not disappoint me
Thanks Ferla
I solved the problem RX with UDP, but the problem remains still ECIO40P16.
When I insert the EB023 socket component macro into FC7, ECIO40P16 stops working. Can you take a look? I also ask the friends of the forum
Many have seen my post, but no one commented, just kind Martin.
Guys, I count on your help.
Do not disappoint me
Thanks Ferla