USB-Serial communication not working on Linux (Bill Validator GBA ST2) -


i trying communicate gba st2 bill validator using usb-serial connection. works fine on windows (the device attached com port) not on linux (so far ubuntu 14.04, 16.04 , debian 8).

by default cdc_acm drivers used attached /dev/ttyacmx, not answer request. (however when requested while in sleep mode wakes instantly).

related output of dmesg , lsusb:

$ dmesg [26600.821389] usb 2-1: new full-speed usb device number 37 using ohci-pci [26601.307233] usb 2-1: new usb device found, idvendor=16f9, idproduct=0003 [26601.307237] usb 2-1: new usb device strings: mfr=1, product=2, serialnumber=3 [26601.307239] usb 2-1: product: gba st2 [26601.307240] usb 2-1: manufacturer: astrosystems [26601.307242] usb 2-1: serialnumber: 06010010001 [26601.316173] cdc_acm 2-1:1.0: ttyacm0: usb acm device  $ lsusb -t /:  bus 02.port 1: dev 1, class=root_hub, driver=ohci-pci/12p, 12m     |__ port 1: dev 37, if 0, class=communications, driver=cdc_acm, 12m     |__ port 1: dev 37, if 1, class=cdc data, driver=cdc_acm, 12m /:  bus 01.port 1: dev 1, class=root_hub, driver=ehci-pci/12p, 480m 

when forcing device use usbserial driver, able use under linux vm (virtualbox hosted on windows), not on plain linux machine. used following commands use usbserial driver:

sudo modprobe -r cdc_acm sudo modprobe usbserial vendor=0x16f9 product=0x0003 

related dmesg , lsusb output:

$ sudo dmesg [26022.203166] usbserial: usb serial support registered generic [26022.203188] usbserial_generic 2-1:1.0: generic device no bulk out, not allowed. [26022.206497] usbserial_generic: probe of 2-1:1.0 failed error -5 [26022.206530] usbserial_generic 2-1:1.1: "generic" usb-serial driver testing , one-off prototypes. [26022.206532] usbserial_generic 2-1:1.1: tell linux-usb@vger.kernel.org add device proper driver. [26022.206533] usbserial_generic 2-1:1.1: generic converter detected [26022.207075] usb 2-1: generic converter attached ttyusb0   lsusb -t /:  bus 02.port 1: dev 1, class=root_hub, driver=ohci-pci/12p, 12m     |__ port 1: dev 35, if 0, class=communications, driver=, 12m     |__ port 1: dev 35, if 1, class=cdc data, driver=usbserial_generic, 12m /:  bus 01.port 1: dev 1, class=root_hub, driver=ehci-pci/12p, 480m 

how can communicate device under linux? idea appreciated.

depends on protocol bill validator uses @ moment, according http://www.intelligentvending.co.uk/payment-systems-telemetry/banknote-readers-note-stackers/gba-st2.htm able communicate on cctalk, mdb, parallel, pulse, serial, ssp

you can communicate cdc acm device using socat. example using socat send @ commands on https://unix.stackexchange.com/questions/97242/how-to-send-at-commands-to-a-modem-in-linux

socat establishes connection command sequences have send depends on present protocol of bill validator...


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -