Mesa SSLBP python class

More
15 Apr 2024 02:17 #298265 by vedatech
Does anyone have a python3 class for the SSLBP interface? I'm working with a Mesa 7i87 ADC card and need user space control from an external program. Surely others have done this and I don't want to re-invent the wheel.

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

More
15 Apr 2024 03:14 #298269 by cornholio
Replied by cornholio on topic Mesa SSLBP python class
Are you going thru a Mesa FPGA card or hoping to use just a serial interface. I'm not sure if you'll get the full 2.5MBuad speed without the FPGA card.

I think the SSLBP code is implemented in the hostmot2 driver.

There is some source code here, not python, but might give you an idea, www.mesanet.com/software/parallel/sserial.tgz

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

More
15 Apr 2024 15:09 #298291 by vedatech
Replied by vedatech on topic Mesa SSLBP python class
Thanks cornholio. I found src/hal/drivers/mesa-hostmot2/sserial.c and I'm looking through it. I was hoping to find something I could use for bench testing sensors on a laptop prior to installing the hardware on the machine. Then I will be using hostmot2 in the usual way. I don't want to do all of my software development in the shop.

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

More
15 Apr 2024 15:34 #298295 by PCW
Replied by PCW on topic Mesa SSLBP python class
If you have a Mesa FPGA host interface, you can poke around a bit with mesaflash:

Start all sserial channels:

mesaflash --device ethernet --addr 10.10.10.10 --enable-all-mod     # enable all module outputs
mesaflash --device ethernet --addr 10.10.10.10 --wpo 0x5B00=0x800   # stopall in case we were already running
mesaflash --device ethernet --addr 10.10.10.10 --wpo 0x5B00=0x9FF   # start all 8 channels

Stop all sserial channels:

mesaflash --device ethernet --addr 10.10.10.10 --enable-all-mod    # enable all module outputs
mesaflash --device ethernet --addr 10.10.10.10 --wpo 0x5B00=0x800  # issue stopall command
mesaflash --device ethernet --addr 10.10.10.10 --safe-io           # restore FPGA I/O to power up state

Note that this needs the latest mesaflash version (3.5.7)


 

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

More
15 Apr 2024 17:04 #298301 by vedatech
Replied by vedatech on topic Mesa SSLBP python class
I think I found what I need. Downloaded the source for pyserial. Should be able to modify some of this code to do what I want.

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

Time to create page: 0.165 seconds
Powered by Kunena Forum