custom board for smart serial interface?
- incomplete
- Offline
- New Member
- Posts: 2
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
- Posts: 10739
- Thank you received: 3543
linuxcnc.org/docs/html/man/man9/hostmot2.9.html#UART
This allows you to read and write to the RS422 interface.
There is a gyroscope example floating around so have a look at that and see if it might do what you want.
Andy is the expert on the UART and maybe PCW will write a bitfile for you ...
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
- Posts: 17853
- Thank you received: 4774
You might look at the STMBL project as a code example
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23310
- Thank you received: 4858
The protocol is described in the back of any Mesa smart serial interface card manual (SSLBP and LBP sections)
This is handled, in the case of Mesa cards, by an FPGA. The source-code is here:
github.com/LinuxCNC/hostmot2-firmware/bl...ster/src/sserial.vhd
STMBL uses the STM32 microprocessor, so the source-code is in C and might be more easily adaptable:You might look at the STMBL project as a code example
github.com/rene-dev/stmbl/blob/master/src/comps/sserial.c
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23310
- Thank you received: 4858
Please Log in or Create an account to join the conversation.
- incomplete
- Offline
- New Member
- Posts: 2
- Thank you received: 0
I read mesa smart serial manual but i dont understand what SSLBP and LBP stand for. It seem SSLBP describe smart serial handled by FPGA card( maybe i can skip this) and LBP handled by peripherals like 7i69,7i83...
What would be really useful here might be an Arduino smart-serial library.
I dont really get it. Do you mean Arduino also have this protocol library?
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
- Posts: 17853
- Thank you received: 4774
LBP remotes implement the LBP protocol
(For example a Modbus Smart Serial interface would be possible using the same smart serial FPGA firmware but a different
software ROM: SSModbus)
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23310
- Thank you received: 4858
i dont understand what SSLBP and LBP stand for.
I think it is "Smart Serial Little Binary Protocol" and "Little Binary Protocol"
No, I mean that it would be really useful if someone could write itI dont really get it. Do you mean Arduino also have this protocol library?
Please Log in or Create an account to join the conversation.
- fupeama
- Offline
- Senior Member
- Posts: 73
- Thank you received: 15
STM32 (cortex) or PIC is better choice I think.
Martin
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23310
- Thank you received: 4858
can arduino run on the 2.5Mbit/s on uart??
It can at a 20MHz clock, but it looks like the answer is "no" otherwise, even at 84MHz
wormfood.net/avrbaudcalc.php?bitrate=500...C48%2C+84&databits=8
Please Log in or Create an account to join the conversation.