Please login or register.

Login with username, password and session length
 

News:

Latest updates at DangerousPrototypes.com.


Author Topic: BP Serial to USB Mode  (Read 176 times)

Shadyman

  • Newbie
  • *
  • Posts: 35
  • Karma: +0/-0
    • View Profile
    • Error: Access Denied
BP Serial to USB Mode
« on: February 04, 2010, 04:06:11 PM »
Hey,

Can I suggest a BusPirate mode that, when activated, makes ttyUSB0 into a generic SPI/I2C/UART-to-USB converter until it is removed from power?

IE, connect, set mode, options, etc, then set the 'automagic mode', then disconnect.
Then be able to, IE, stream data off of /dev/ttyUSB0 into a GPS program, etc.

It'd make for easier testing of UART things in environments that are already known (IE, dumping NMEA data into a GPS program)
Vote "Logic Ninja" or "Bit Ninja" for the DangerousPrototypes SUMP Logic Analyzer!

ian

  • Crew
  • Hero Member
  • *****
  • Posts: 2898
  • Karma: +61/-0
    • View Profile
Re: BP Serial to USB Mode
« Reply #1 on: February 05, 2010, 12:36:42 AM »
There is a macro in the UART library that is a transparent bridge. It's not really possible with the other protocols without a control protocol (like the binary modes have) to detect and send ACKs, raise/lower CS, etc.

Shadyman

  • Newbie
  • *
  • Posts: 35
  • Karma: +0/-0
    • View Profile
    • Error: Access Denied
Re: BP Serial to USB Mode
« Reply #2 on: February 05, 2010, 11:34:37 PM »
Bonus :) I'll have to check those out, thanks!
Vote "Logic Ninja" or "Bit Ninja" for the DangerousPrototypes SUMP Logic Analyzer!