custom board for smart serial interface?

More
25 Apr 2018 06:37 #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 or Create an account to join the conversation.

More
25 Apr 2018 10:10 #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 or Create an account to join the conversation.

More
25 Apr 2018 14:23 #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
The following user(s) said Thank You: tivoi, incomplete, silopolis

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

More
26 Apr 2018 12:36 #109646 by andypugh

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
The following user(s) said Thank You: silopolis

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

More
26 Apr 2018 12:37 #109647 by andypugh
What would be really useful here might be an Arduino smart-serial library.
The following user(s) said Thank You: PKM, incomplete

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

More
26 Apr 2018 16:30 #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...

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.

More
26 Apr 2018 16:41 #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 or Create an account to join the conversation.

More
26 Apr 2018 16:55 - 26 Apr 2018 16:56 #109671 by andypugh

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 :-)
Last edit: 26 Apr 2018 16:56 by andypugh.

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

More
27 Apr 2018 12:22 #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 or Create an account to join the conversation.

More
27 Apr 2018 13:08 #109705 by andypugh

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.

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