Ethernet Interface on STM32 MCU

More
02 Apr 2022 21:58 #239109 by Daddio
Greetings,
I'm very interested in building an ethernet interface card based on an STM32 microcontroller.  I am trying to understand the flow of data and how to put the motion commands out via UDP ethernet.  My understanding, and please correct me if I'm wrong here, is the g code is parsed through an interpreter and consumed by the trajectory planner which sends canonical machine commands to the machine controller.
I've used/using mesa's ethernet interface cards (they are great).  Their FPGA's run HostMot2 and uses the HAL driver hostmot2 (same name for both), and uses the ethernet driver hm2_eth.  Every 1ms, linuxcnc effectively writes to the FPGA's registers to execute the next move.  Using wireshark I can see that traffic.
The way I see it, the best approach is to use as much as possible that is already created, which leads me to a few big questions:

1. Where along the data flow can I put the motion command out over ethernet before they're parsed into mesa's LBP16 protocol for their FPGA's register read/writes?
2.  Which file(s) is actually parsing to the LBP16 protocol?
3.  What are the actual tasks that need to happen, i.e., write a new ethernet HAL driver... etc.??

Thank you all!

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

More
02 Apr 2022 23:55 #239115 by cakeslob
The following user(s) said Thank You: tommylight

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

Moderators: PCWjmelson
Time to create page: 0.075 seconds
Powered by Kunena Forum