Hi dennis,
a Colleague from Christian here.
We attached our RFID Reader to the dock USB connector, which leads to the “select device” screen to pop up. The device would normally show up as serial device, which is no option on the screen.
How can I communicate with the device? How can I trigger the creation of the serial port?
logs from the android console:
03-21 13:58:52.068 1398-1398/? D/BootUpReceiver: received intent Intent { act=android.hardware.usb.action.USB_DEVICE_ATTACHED flg=0x10000010 cmp=co.poynt.accessory.manager/.receiver.USBReceiver (has extras) }
03-21 13:58:52.069 1398-1398/? D/BootUpReceiver: INFO UsbDevice[mName=/dev/bus/usb/001/009,mVendorId=4292,mProductId=60000,mClass=0,mSubclass=0,mProtocol=0,mInterfaces=[Landroid.os.Parcelable;@41a00f08]
03-21 13:58:52.069 1398-1398/? D/BootUpReceiver: INFO interfaceCount:1
03-21 13:58:52.070 1398-1398/? D/BootUpReceiver: INFO interface:UsbInterface[mId=0,mClass=255,mSubclass=0,mProtocol=0,mEndpoints=[Landroid.os.Parcelable;@41a00f98]
03-21 13:58:52.071 1398-1398/? D/BootUpReceiver: INFO interface id:0
03-21 13:58:52.072 1398-1398/? D/BootUpReceiver: INFO interface endpoint:UsbEndpoint[mAddress=129,mAttributes=2,mMaxPacketSize=64,mInterval=0]
03-21 13:58:52.072 1398-1398/? D/BootUpReceiver: INFO interface endpoint:UsbEndpoint[mAddress=1,mAttributes=2,mMaxPacketSize=64,mInterval=0]
03-21 13:58:52.072 1398-1398/? D/BootUpReceiver: INFO interfaceCount:1
03-21 13:58:52.073 1398-1398/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1487 android.content.ContextWrapper.startService:494 android.content.ContextWrapper.startService:494 co.poynt.accessory.manager.receiver.USBReceiver.onReceive:35 android.app.ActivityThread.handleReceiver:2407
03-21 13:58:52.080 1398-10667/? D/AccessoryService: onHandleIntent received: Intent { act=android.hardware.usb.action.USB_DEVICE_ATTACHED cmp=co.poynt.accessory.manager/.service.AccessoryService (has extras) }
03-21 13:58:52.081 1398-10667/? D/AccessoryService: device attached: UsbDevice[mName=/dev/bus/usb/001/009,mVendorId=4292,mProductId=60000,mClass=0,mSubclass=0,mProtocol=0,mInterfaces=[Landroid.os.Parcelable;@41a06da8]
03-21 13:58:52.083 1398-10667/? D/AccessoryService: INFO serial number; 0001
03-21 13:58:52.088 1398-10667/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startActivity:1028 android.content.ContextWrapper.startActivity:311 co.poynt.accessory.manager.service.AccessoryService.showAccessorySelection:295 co.poynt.accessory.manager.service.AccessoryService.onHandleIntent:161 android.app.IntentService$ServiceHandler.handleMessage:65
03-21 13:58:52.089 1398-10667/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startActivity:1040 android.app.ContextImpl.startActivity:1029 android.content.ContextWrapper.startActivity:311 co.poynt.accessory.manager.service.AccessoryService.showAccessorySelection:295 co.poynt.accessory.manager.service.AccessoryService.onHandleIntent:161
03-21 13:58:52.090 936-1375/? I/ActivityManager: START u0 {flg=0x10000000 cmp=co.poynt.accessory.manager/.ui.AccessorySelectionActivity (has extras)} from pid 1398
tia,
roland