machdyne / blaustahl

Blaustahl Storage Device
Other
53 stars 8 forks source link

Configuring machdyne blaustahl storage device for direct data access via serial port #9

Closed binqbit closed 14 minutes ago

binqbit commented 1 day ago

I have a question regarding the possibility of configuring the Machdyne Blaustahl Storage Device to enable direct data reading and writing through my custom software, without using a terminal interface. Could you please provide guidance or documentation on how to effectively integrate this functionality via the serial port, if this is possible?

machdyne commented 23 hours ago

Hello. I plan to create a simple SDK/API for this but at the moment the best example I can offer is the bs utility, which uses libusb to communicate with the composite firmware using a USB "vendor class" interface and allows reading/writing of the FRAM from the host computer.

Another possibility would be to add a mode to the firmware that provides something like an AT command set for reading and writing data. That would also work on the CDC-only firmware.

If you'd like to provide any more details about what you're trying to accomplish I may be able to help with your specific case.

binqbit commented 14 minutes ago

Hi, If anyone still has a similar question, I've found a simple solution and already implemented it. In my fork of the repository, all necessary changes have been made to the driver to support a simple read/write protocol, and the drivers are ready to use. Here are the links for those who need them:

  1. Fork of the repository with updated drivers: blaustahl.
  2. Example code of the application implementing the protocol: serialport_srwp.