Skip to content

USB Connection #32

@mturhan11

Description

@mturhan11

When i want to connect USB device it says;

SWT SessionManagerDBus: Failed to connect to org.gnome.SessionManager: Ba\u011flant\u0131 kapal\u0131
SWT SessionManagerDBus: Failed to connect to org.xfce.SessionManager: Ba\u011flant\u0131 kapal\u0131
[main] INFO org.fintrace.core.drivers.tspl.connection.USBConnectionClient - USB Service Implementation: usb4java
[main] INFO org.fintrace.core.drivers.tspl.connection.USBConnectionClient - Implementation version: 1.2.0
[main] INFO org.fintrace.core.drivers.tspl.connection.USBConnectionClient - Service API version: 1.0.2
[main] INFO org.fintrace.core.drivers.tspl.connection.USBConnectionClient - Interface Direction: 0, Interface Address: 2
[main] INFO org.fintrace.core.drivers.tspl.connection.USBConnectionClient - Interface Direction: -128, Interface Address: -126

My Code is;

TSPLConnectionClient tsplConnectionClient = new USBConnectionClient((short)0x20d1,(short)0x7008 );
tsplConnectionClient.init();
tsplConnectionClient.connect();

My usb-devices list

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=20d1 ProdID=7008 Rev=01.00
S:  Manufacturer=HPRT
S:  Product=LPQ58
S:  SerialNumber=LPQ58017220173
C:  #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=10mA
I:  If#=0x0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=(none)

Please help. Thanks a lot.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions