USB->Serial converter

MiniPOV4 and previous versions

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
dshookowsky
 
Posts: 2
Joined: Sun Jun 03, 2012 8:32 pm

USB->Serial converter

Post by dshookowsky »

FIRST: Are you using a Minipov3 from a kit or from DIY? Make sure you mention that in your post
Minipov3 from a kit purchased from adafruit
SECOND: What OS and computer are you using?
Linux Mint on an ancient Toshiba Satelite Notebook
THIRD: Are you using a USB adapter or a serial port?
I'm attempting to use a Palm III USB to Serial Adapter because I had it on hand.
FOURTH: Did the minipov light up at all when you turned it on?
The Minipov lights up and cycles LEDs when turned on
FIFTH: What -specifically- isn't working?
I can't program the minipov from the command line. I'm wondering if there's any way to make the adapter I have work or if i should just get another adapter.

When I plug in the adapter, dmesg reports the following:

Code: Select all

[67498.356042] usb 2-2: new full speed USB device using ohci_hcd and address 4
[67498.571034] kl5kusb105d 2-2:1.0: Handspring Visor / Palm OS converter detected
[67498.571261] usb 2-2: Handspring Visor / Palm OS converter now attached to ttyUSB0
[67498.571443] usb 2-2: Handspring Visor / Palm OS converter now attached to ttyUSB1
I've tried using /dev/ttyUSB0 and /dev/ttyUSB1 in the Makefile, but neither works.

Code: Select all

avrdude -p attiny2313 -P /dev/ttyUSB0	 -c dasa -U flash:w:minipov.hex

avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

make: *** [program-minipov] Error 1

Code: Select all

avrdude -p attiny2313 -P /dev/ttyUSB1	 -c dasa -U flash:w:minipov.hex

avrdude done.  Thank you.

make: *** [program-minipov] Error 1
Relevant lsusb -v output:

Code: Select all


Bus 002 Device 004: ID 0830:0080 Palm, Inc. Serial Adapter [for Palm III]
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x0830 Palm, Inc.
  idProduct          0x0080 Serial Adapter [for Palm III]
  bcdDevice            1.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           39
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    BANNED               94mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               1
cannot read device status, Operation not permitted (1)
dasa lines from /etc/avrdude.conf

Code: Select all


# unknown (dasa in uisp)
# reset=rts sck=dtr mosi=txd miso=cts

programmer
  id    = "dasa";
  desc  = "serial port banging, reset=rts sck=dtr mosi=txd miso=cts";
  type  = serbb;
  reset = 7;
  sck   = 4;
  mosi  = 3;
  miso  = 8;
  delay = 4000;
;

User avatar
adafruit_support_bill
 
Posts: 88088
Joined: Sat Feb 07, 2009 10:11 am

Re: USB->Serial converter

Post by adafruit_support_bill »

Do you have the device powered? It needs to be powered on during programming.

Some USB/Serial device & driver combinations work better than others. I haven't heard of anyone using the Palm III. That doesn't mean it can't work. We just don't have any experience with it.

dshookowsky
 
Posts: 2
Joined: Sun Jun 03, 2012 8:32 pm

Re: USB->Serial converter

Post by dshookowsky »

I powered it on and plugged it in. Most of the time it just lights up the first LED when plugged in, but once it continued to cycle. I ran the make program-minipov command during that and got the same error.

I was just hoping there was some Litmus test that I could use to tell if it was the cable, my setup, or my assembly.


dmesg output:

Code: Select all

[82152.294673] usb 2-2: read status 0 0
[82152.294746] usb 2-2: sending SIO Poll request
[82152.296659] usb 2-2: read status 0 0
[82152.296790] usb 2-2: sending SIO Poll request
[82152.298668] usb 2-2: read status 0 0
[82152.298679] usb 2-2: sending SIO Poll request
[82152.300660] usb 2-2: read status 0 0
[82152.300729] usb 2-2: sending SIO Poll request
[82152.302672] usb 2-2: read status 0 0
[82152.302751] usb 2-2: sending SIO Poll request
[82152.304671] usb 2-2: read status 0 0
[82152.304748] usb 2-2: sending SIO Poll request
[82152.306670] usb 2-2: read status 0 0
[82152.308668] usb 2-2: 5 byte block, baudrate 6, databits 8, u1 0, u2 1
[82178.977370] usb 2-2: USB disconnect, address 2

mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am

Re: USB->Serial converter

Post by mtbf0 »

dtr, cts, tx and rts are used to program the minipov, so unless your cable brings them all out it's not going to work.

but, then again, your dmesg output does not look encouraging...

mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am

Re: USB->Serial converter

Post by mtbf0 »

in your lsusb output it seems like you'd want "CDC Data" for the device class. maybe you can force your system to load the cdc driver. linux has gotten so easy that i've long since forgotten how to do all the interesting stuff.

Locked
Please be positive and constructive with your questions and comments.

Return to “MiniPOV”