Mesa SSLBP python class
- vedatech
- Offline
- Senior Member
-
Less
More
- Posts: 78
- Thank you received: 3
15 Apr 2024 02:17 #298265
by vedatech
Mesa SSLBP python class was created 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.
- Cant do this anymore bye all
-
- Offline
- Platinum Member
-
Less
More
- Posts: 1199
- Thank you received: 420
15 Apr 2024 03:14 #298269
by Cant do this anymore bye all
Replied by Cant do this anymore bye all 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
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.
- vedatech
- Offline
- Senior Member
-
Less
More
- Posts: 78
- Thank you received: 3
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.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18349
- Thank you received: 5002
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)
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.
- vedatech
- Offline
- Senior Member
-
Less
More
- Posts: 78
- Thank you received: 3
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.056 seconds