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: 700
Joined: Wed May 31, 2017 11:57 am
Has thanked: 63 times
Been thanked: 403 times
Contact:

Re: UDP string rx

Postby mnf » Wed Jan 31, 2018 8:50 am

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: 120
Joined: Sun Jan 06, 2013 8:58 pm
Location: Italy
Been thanked: 19 times
Contact:

Re: UDP string rx

Postby Ferla » Wed Jan 31, 2018 9:24 am

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: 700
Joined: Wed May 31, 2017 11:57 am
Has thanked: 63 times
Been thanked: 403 times
Contact:

Re: UDP string rx

Postby mnf » Wed Jan 31, 2018 1:05 pm

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: 120
Joined: Sun Jan 06, 2013 8:58 pm
Location: Italy
Been thanked: 19 times
Contact:

Re: UDP string rx

Postby Ferla » Wed Jan 31, 2018 2:28 pm

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

mnf
Valued Contributor
Valued Contributor
Posts: 700
Joined: Wed May 31, 2017 11:57 am
Has thanked: 63 times
Been thanked: 403 times
Contact:

Re: UDP string rx

Postby mnf » Wed Jan 31, 2018 3:05 pm

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

Ferla
Flowcode v5 User
Posts: 120
Joined: Sun Jan 06, 2013 8:58 pm
Location: Italy
Been thanked: 19 times
Contact:

Re: UDP string rx

Postby Ferla » Wed Jan 31, 2018 6:39 pm

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

mnf
Valued Contributor
Valued Contributor
Posts: 700
Joined: Wed May 31, 2017 11:57 am
Has thanked: 63 times
Been thanked: 403 times
Contact:

Re: UDP string rx

Postby mnf » Thu Feb 01, 2018 9:11 am

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.5 KiB) Downloaded 54 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: 120
Joined: Sun Jan 06, 2013 8:58 pm
Location: Italy
Been thanked: 19 times
Contact:

Re: UDP string rx

Postby Ferla » Thu Feb 01, 2018 10:30 am

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: 120
Joined: Sun Jan 06, 2013 8:58 pm
Location: Italy
Been thanked: 19 times
Contact:

Re: UDP string rx

Postby Ferla » Fri Feb 02, 2018 12:55 pm

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: 700
Joined: Wed May 31, 2017 11:57 am
Has thanked: 63 times
Been thanked: 403 times
Contact:

Re: UDP string rx

Postby mnf » Sat Feb 03, 2018 5:15 pm

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: 120
Joined: Sun Jan 06, 2013 8:58 pm
Location: Italy
Been thanked: 19 times
Contact:

Re: UDP string rx

Postby Ferla » Mon Feb 05, 2018 11:31 am

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: 14797
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4759 times
Been thanked: 4362 times
Contact:

Re: UDP string rx

Postby Benj » Mon Feb 05, 2018 6:28 pm

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: 120
Joined: Sun Jan 06, 2013 8:58 pm
Location: Italy
Been thanked: 19 times
Contact:

Re: UDP string rx

Postby Ferla » Tue Feb 06, 2018 4:44 pm

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
These users thanked the author Ferla for the post:
Benj (Thu Feb 08, 2018 11:49 am)
Rating: 5%
 

User avatar
Benj
Matrix Staff
Posts: 14797
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4759 times
Been thanked: 4362 times
Contact:

Re: UDP string rx

Postby Benj » Thu Feb 08, 2018 11:53 am

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 57 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: 120
Joined: Sun Jan 06, 2013 8:58 pm
Location: Italy
Been thanked: 19 times
Contact:

Re: UDP string rx

Postby Ferla » Thu Feb 08, 2018 12:26 pm

Thanks, Beny
your examples have already been tried without success.
It works only when I receive, use SW SimpleCommTools http://www.simplecomtools.com/productca ... product=6& ,and on other hw it works
Ferla
These users thanked the author Ferla for the post:
Benj (Thu Feb 08, 2018 5:53 pm)
Rating: 5%
 

Ferla
Flowcode v5 User
Posts: 120
Joined: Sun Jan 06, 2013 8:58 pm
Location: Italy
Been thanked: 19 times
Contact:

Re: UDP string rx

Postby Ferla » Wed Feb 14, 2018 8:34 am

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
These users thanked the author Ferla for the post:
Benj (Fri Feb 16, 2018 1:29 pm)
Rating: 5%