Go Down

Topic: USB host to talk to Uniden scanner (Read 136 times) previous topic - next topic

jmusther

Sep 13, 2017, 05:08 am Last Edit: Sep 13, 2017, 05:30 am by jmusther
I'm trying to use the USB host shield (https://store.arduino.cc/usa/arduino-usb-host-shield) to talk to the Uniden Bearcat BC125AT.

I've used a serial port terminal to talk to the scanner, so I know the serial configuration (8n1 at 115200).

Then I moved to trying to get a connection using the host shield and and USB host shield library (https://github.com/felis/USB_Host_Shield_2.0).

I got the USB host shield to see the scanner, so I know the hardware is working and the library is talking to the host chipset.  

So far I've had no success getting the the comms to work.

I've dumped the details of the scanner, as returned by the USB host, I'll add it below.  

Any help would be greatly appreciated!

Code: [Select]
01
--
String Descriptors:
Manufacturer: Uniden America Corp.
Product: BC125AT
Serial: 0001

Device descriptor:
Descriptor Length: 12
Descriptor type: 01
USB version: 0200
Device class: 02
Device Subclass: 00
Device Protocol: 00
Max.packet size: 40
Vendor  ID: 1965
Product ID: 0017
Revision ID: 0001
Mfg.string index: 01
Prod.string index: 02
Serial number index: 03
Number of conf.: 01

Configuration descriptor:
Total length: 0030
Num.intf: 02
Conf.value: 01
Conf.string: 00
Attr.: 80
Max.pwr: FA

Interface descriptor:
Intf.number: 00
Alt.: 00
Endpoints: 01
Intf. Class: 02
Intf. Subclass: 02
Intf. Protocol: 00
Intf.string: 00

Endpoint descriptor:
Endpoint address: 87
Attr.: 03
Max.pkt size: 0008
Polling interval: 0A

Interface descriptor:
Intf.number: 01
Alt.: 00
Endpoints: 02
Intf. Class: 0A
Intf. Subclass: 00
Intf. Protocol: 00
Intf.string: 00

Endpoint descriptor:
Endpoint address: 81
Attr.: 02
Max.pkt size: 0040
Polling interval: 00

Endpoint descriptor:
Endpoint address: 02
Attr.: 02
Max.pkt size: 0040
Polling interval: 00

Addr:1(0.0.1)



gdsports

Quote
I've used a serial port terminal to talk to the scanner, so I know the serial configuration (8n1 at 115200).
Since this device looks like serial port, you can try all USB host drivers that look like serial ports. I think the descriptor dumps indicates the scanner declares itself to be CDC ACM device (but it has been a long time since I worked on this) so I would try the acm example first.


Code: [Select]
examples/
 acm/acm_terminal
 pl2303
 ftdi/FTDIUSBLoopback



Go Up