Page 2 of 2

Re: UDP string rx

Posted: Wed Jan 31, 2018 8:50 am
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

Re: UDP string rx

Posted: Wed Jan 31, 2018 9:24 am
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

Re: UDP string rx

Posted: Wed Jan 31, 2018 1:05 pm
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

Re: UDP string rx

Posted: Wed Jan 31, 2018 2:28 pm
by Ferla
Martin,
I only see code C, and I lost your reasoning.
Ferla

Re: UDP string rx

Posted: Wed Jan 31, 2018 3:05 pm
by mnf
Sorry - I re-posted = hadn't noticed we were on a new page.....

Re: UDP string rx

Posted: Wed Jan 31, 2018 6:39 pm
by Ferla
Martin,
you would be kind to show me your Web Server test project
Thank you very much
Ferla

Re: UDP string rx

Posted: Thu Feb 01, 2018 9:11 am
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 355 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

Re: UDP string rx

Posted: Thu Feb 01, 2018 10:30 am
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

Re: UDP string rx

Posted: Fri Feb 02, 2018 12:55 pm
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

Re: UDP string rx

Posted: Sat Feb 03, 2018 5:15 pm
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

Re: UDP string rx

Posted: Mon Feb 05, 2018 11:31 am
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

Re: UDP string rx

Posted: Mon Feb 05, 2018 6:28 pm
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.

Re: UDP string rx

Posted: Tue Feb 06, 2018 4:44 pm
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

Re: UDP string rx

Posted: Thu Feb 08, 2018 11:53 am
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 290 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.

Re: UDP string rx

Posted: Thu Feb 08, 2018 12:26 pm
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

Re: UDP string rx

Posted: Wed Feb 14, 2018 8:34 am
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