LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

More
2 years 2 months ago #306785 by meister
my professional test setup image missing /media/kunena/emoticons/w00t.png

 

why didn't I try this before image missing /media/kunena/emoticons/blush.png

i am sooo stupid, well, at least i realized it at some point :)

now i can also increase the SPI speed and in python the looptime dropped from ~0.88ms to 0.42ms image missing /media/kunena/emoticons/shocked.png
Code:
tx (280): [116, 105, 114, 119, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 70, 5, 0, 0, 0, 0, 0] rx: [97, 116, 97, 100, 151, 2, 0, 0, 0, 0, 0, 0, 31, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] 0.8819103240966797
Code:
tx (280): [116, 105, 114, 119, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 70, 5, 0, 0, 0, 0, 0] rx: [97, 116, 97, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] 0.4222393035888672

the problem was, when checking whether a new packet was received, the size was also read out, if this check happened exactly during the transmission and the packet was not yet 100% there, the size was not correct and the check failed

a second before i wanted to send this message, there was a timeout, but ok, this is running over my home network, so it can happen, but it has become extremely good now, i have to let it run isolated for a while.

thank you all, if i hadn't kept asking, i would probably have resigned myself to the esp32 solution
The following user(s) said Thank You: Mecanix

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago - 2 years 2 months ago #306786 by meister
 

EDIT: >140 minuted later , 5 lost packages of >8400000 that's ~0.00006% package lost
hmm, i think it's ok image missing /media/kunena/emoticons/w00t.png
Last edit: 2 years 2 months ago by meister.
The following user(s) said Thank You: samueldutradasilva, Mecanix

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago #306797 by tommylight
The following user(s) said Thank You: meister, Mecanix

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago #306822 by Cant do this anymore bye all

If you have a look at the figures on the wiz net wiki you’ll see as packet size drops so does the overall throughput.
 
All I could find is the implementation and proposed data integrity stuff. I know you're past your daylight but when you have a chance tomorrow, see if you can find that bit of info you ref'ed and we'll talk to their engineer about it. See if we can flip a Magic Register to disable that supposedly/suspected throttling thingy...

Impl. Ref:  docs.wiznet.io/Product/iEthernet/W5500/Application/udp

 
docs.wiznet.io/Product/iEthernet/W5500/A...tion/spi-performance
The following user(s) said Thank You: Mecanix

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago - 2 years 2 months ago #306836 by Mecanix
@cornholio post=306822 userid=35653
Can we append a Kb of great zero-dummy nothingness to the rx and tx buffers to cancel this throttling misery thing? How silly.
This needs testing on a 20~30bytes load to confirm. I'll see if I can rig something up before cracking on something gigabit-like. 

@meister post=306785 userid=19472
That's awesome news, knew you'd sort it eventually (ha!). Let me test this out after dinner when my bunch here is quiet (saturday!).
Last edit: 2 years 2 months ago by Mecanix.

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago #306844 by Mecanix
Tests carried. Tested onto my production Lcnc-uspace computer which host a high performance r8169 ethernet adapter. Same I use for my gigabit based lathe (LiteXcnc). Yet I'm unable to have Rio working on this one :(

Strangely enough, I get zero pkt losses and a fast ping response from the wizzy part on that computer. As if it likes it very much! Therefore fair to assume I'm connected solid.

So upsetting to see Rio working for others, but not for myself. I smell badluck arrggh

HELP, calling the Godz!!



Please Log in or Create an account to join the conversation.

Time to create page: 1.610 seconds
Powered by Kunena Forum