Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
5 years 2 weeks ago #223501 by Bari
wizwiki.net/wiki/doku.php/products:w5500...ication:udp_function

Receiving process

Process the received UDP data in Internal RX memory.
The structure of received UDP data is as below.

image missing http://wizwiki.net/wiki/lib/exe/fetch.php/products:w5500:application:received_udp_data.jpg

The Received UDP data format

The received UDP data consists of 8bytes PACKET-INFO, and DATA packet. The PACKETINFO contains transmitter’s information (IP address, Port number) and the length of DATA packet. The UDP can receive UDP data from many others. User can classify the transmitter by transmitter’s information of PACKET-INFO. It also receives broadcast SOCKET by using “255.255.255.255” IP address. So the host should ignore unwanted reception by analysis of transmitter’s information. If the DATA size of Socket n is larger than Internal RX memory free size, user cannot receive that DATA and also cannot receive fragmented DATA.

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

More
5 years 2 weeks ago - 5 years 1 week ago #223502 by Bari
Looks like the W5500 generates an interrupt. Still have to read more of the docs on IR, IMR
Sn_IMR and Sn_IR.

First method :
{
if (Sn_IR(RECV) == ‘1’) Sn_IR(RECV) = ‘1’; goto Receiving Process stage;
/* In this case, if the interrupt of Socket n is activated, interrupt occurs. Refer to IR, IMR
Sn_IMR and Sn_IR. */
}


This is a working UDP code both by polling and interrupt , tested on STM32F100RB 

File Attachment:

File Name: udp00.c
File Size:17.89 KB

forum.wiznet.io/t/topic/3156/4
Last edit: 5 years 1 week ago by Bari. Reason: more UDP info

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

More
5 years 1 week ago - 5 years 1 week ago #223507 by Bari
Here is a listing of the STM32F407/417 with integrated Ethernet:

www.st.com/content/st_com/en/products/mi...uctId=LN11*#products

STM32 ETHERNET #2. UDP SERVER, even easier as a device, slave or peer


I have no problem with designing and building simple devices like these so that they may be copied by low cost manufacturers in order to keep board costs down.
Last edit: 5 years 1 week ago by Bari. Reason: typo

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

More
5 years 1 week ago - 5 years 1 week ago #223519 by Bari
More on the Teensy4.1 just no git repo  :(
forum.linuxcnc.org/24-hal-components/39813-teensy-4-1-linuxcnc

I wrote realtime HAL component for communication with Teensy from LinuxCNC. Run from LinuxCNC, I am able to achieve 60us roundtrips with 40byte payload. I have written a simple HAL example for a simple servo loop, and have tested the servo loop on a single axis kinematic stage, equipped with high-precision encoder and a DC motor run by a small H-bridge driver.
I did some serious testing at 1ms servo-threads over several hours with no problems whatsoever.
I was also able to run servo-thread with 150us (6600Hz) without any problems, but I haven't spent much time testing it and don't know how stable it really is at this speeds.

Last edit: 5 years 1 week ago by Bari.

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

More
More
5 years 1 week ago #223718 by scotta
Hi, I've created a new thread to capture testing issues for Remora 1.0.0 that supports STM32F4 boards.

www.forum.linuxcnc.org/18-computer/43988...d-for-testing#223716

Appreciate any feedback and issues.

Thanks
Scott

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

Time to create page: 0.199 seconds
Powered by Kunena Forum