custom board for smart serial interface?

More
8 years 6 months ago #109579 by incomplete
i 'm using mesa PCI card with 7i74 break out board. I would like to design a daughter board for read write IO instead of use mesa remote daughter cards. Is there any documents that explain smart serial protocol and source code that i need to design this board? Are these licensed?

Please Log in to join the conversation.

More
8 years 6 months ago #109585 by rodw
With the right bit file, the Mesa SmartSerial UART can be exposed.
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 to join the conversation.

More
8 years 6 months ago #109594 by PCW
The protocol is described in the back of any Mesa smart serial interface card manual (SSLBP and LBP sections)

You might look at the STMBL project as a code example

Please Log in to join the conversation.

More
8 years 6 months ago #109646 by andypugh

PCW wrote: 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

You might look at the STMBL project as a code example

STMBL uses the STM32 microprocessor, so the source-code is in C and might be more easily adaptable:
github.com/rene-dev/stmbl/blob/master/src/comps/sserial.c

Please Log in to join the conversation.

More
8 years 6 months ago #109647 by andypugh
What would be really useful here might be an Arduino smart-serial library.

Please Log in to join the conversation.

More
8 years 6 months ago #109666 by incomplete
I found that source code yesterday, thank you very much.

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...

andypugh wrote: 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 to join the conversation.

More
8 years 6 months ago #109669 by PCW
SSLBP is a specific Smart Serial FPGA module for interfacing with remote devices using the LBP protocol.
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 to join the conversation.

More
8 years 6 months ago #109671 by andypugh

incomplete wrote: i dont understand what SSLBP and LBP stand for.


I think it is "Smart Serial Little Binary Protocol" and "Little Binary Protocol"

I dont really get it. Do you mean Arduino also have this protocol library?

No, I mean that it would be really useful if someone could write it :-)

Please Log in to join the conversation.

More
8 years 6 months ago #109701 by fupeama
can arduino run on the 2.5Mbit/s on uart??
STM32 (cortex) or PIC is better choice I think.
Martin

Please Log in to join the conversation.

More
8 years 6 months ago #109705 by andypugh

fupeama wrote: 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 to join the conversation.

Time to create page: 0.121 seconds
Powered by Kunena Forum