UDP string rx

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

mnf
Valued Contributor
Valued Contributor
Posts: 1188
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

Re: UDP string rx

Post by mnf »

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

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

Post by Ferla »

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 .. :roll:
Ferla

mnf
Valued Contributor
Valued Contributor
Posts: 1188
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

Re: UDP string rx

Post by mnf »

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

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

Post by Ferla »

Martin,
I only see code C, and I lost your reasoning.
Ferla

mnf
Valued Contributor
Valued Contributor
Posts: 1188
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

Re: UDP string rx

Post by mnf »

Sorry - I re-posted = hadn't noticed we were on a new page.....

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

Post by Ferla »

Martin,
you would be kind to show me your Web Server test project
Thank you very much
Ferla

mnf
Valued Contributor
Valued Contributor
Posts: 1188
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

Re: UDP string rx

Post by mnf »

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 ??
Simple Webserver.fcfx
(17.44 KiB) Downloaded 249 times
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

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

Post by Ferla »

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

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

Post by Ferla »

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 ... :wink:
Thanks
Ferla

mnf
Valued Contributor
Valued Contributor
Posts: 1188
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

Re: UDP string rx

Post by mnf »

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

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

Post by Ferla »

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

User avatar
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

Post by Benj »

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.

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

Post by Ferla »

Hi Beny
after so much silence, after seeing your request, my smile is back. :D
- 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

User avatar
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

Post by Benj »

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.
UDP.zip
(9.26 KiB) Downloaded 191 times
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.

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

Post by Ferla »

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

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

Post by Ferla »

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? :shock: 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 :P
Thanks Ferla

Post Reply