Connecting to RPi PicoMite via USB
Detlef Froehlich (9715) 4 posts |
Hello, I’d like to connect a Raspberry Pi 3+ running RISC OS with a PicoMite via USB to program it. A PicoMite is a Raspberry Pi Pico microcontroller board running the MMBasic interpreter. The PicoMite creates a virtual serial port over it’s USB connection using the CDC protocol. Connected to a Windows or Linux PC, you use a VT 100 terminal emulation to issue MMBasic commands to be executed on the PicoMite. Please visit geoffg.net for more details. On the Raspberry Pi 3+ running RISC OS 5.28, I’ve installed the SerialUSB module from Colin Granville and the BlockDrivers from X-Ample Technology. I expected this would allow me to connect to the PicoMite using the modified HearSay 2.24, but the virtual serial port is not recognised. Before plugging in the PicoMite, As I understand it, the SerialUSB module does not recognise the PicoMite’s implementation of a virtual serial port or the CDC protocol, and without this “mapping” I can’t use HearSay. Can I do anything else to have SerialUSB recognise the PicoMite, or is there another way to exchange data? I’d be happy to experiment with BASIC or the BASIC Assembler. I’ve added some USB related CLI commands with results below. I would appreciate any help.
xxx |
Chris Hall (132) 3554 posts |
or is there another way to exchange data? I was using BASIC to read GPS data from the UART serial port using SYS “OS_SerialOp” but had the same trouble if I tried to use Serial_USB and the block drivers to read from a USB-connected GPS unit which had a non-supported serial port implementation. I also wanted to make it work even if the unit was unplugged and replugged (which re-enumaerates it). The lines below might help, as reported in Archive 26:3.
|
Jean-Michel BRUCK (3009) 351 posts |
From Colin Granville SerialUSB module specification: |
Detlef Froehlich (9715) 4 posts |
Thanks for your information and code examples! I’m just testing a version of the SerialUSB module Colin Granville has kindly adapted to recognize the virtual serial interface used by PicoMite. |
Detlef Froehlich (9715) 4 posts |
A quick update on this topic: Colin Granville is putting a lot of work into customizing and testing SerialUSB and Hearsay to make the PicoMite usable under RISC OS. The current state is already excellent. |