 |
teknikill.net
IMfree and perl messageboard
FAQ Search Memberlist Usergroups Register |
Profile Log in to check your private messages Log in |
|
 |
teknikill.net Forum Index -> Development |
View previous topic :: View next topic |
Author |
Message |
xantus
Site Admin
Joined: 26 Jan 2005
Posts: 15
Location: Washington
|
Posted: Fri Jan 28, 2005 10:36 am Post subject: Device::USB
|
 |
|
I wrote the first function for Device::USB in perlXS.
Note that the structures will change.
It returns a list of devices on each bus. Here's my output:
Code: |
[
[
{
'manuf' => 'Giant Wireless Technology',
'filename' => '003',
'dirname' => '001',
'product' => 32513,
'prod' => 'MX240a MOTOROLA MESSENGER',
'vendor' => 8888
},
{
'manuf' => 'Linux 2.6.8-1-686-smp uhci_hcd',
'filename' => '001',
'serial' => '0000:00:07.2',
'dirname' => '001',
'product' => 0,
'prod' => 'Intel Corp. 82371AB/EB/MB PIIX4 USB',
'vendor' => 0
}
]
]; |
|
|
Back to top |
|
 |
grn
noob
Joined: 11 Feb 2005
Posts: 13
|
Posted: Fri Feb 11, 2005 11:12 pm Post subject: ...
|
 |
|
I'll see if I can't get some info on controlling it through USB as well.
|
|
Back to top |
|
 |
grn
noob
Joined: 11 Feb 2005
Posts: 13
|
Posted: Sun Feb 13, 2005 6:09 pm Post subject: ...
|
 |
|
Code: |
Port2: USB Human Interface Device
Hub Power: Self Power
Number of Ports: 2
Power switching: None
Compound device: No
Over-current Protection: Individual
Device Descriptor
USB Version: 1.1
Device Class: (0) Reserved (defined in Interface Descriptor)
Device Subclass: 0
Device Protocol: 0
Max Packet Size: 0x08 (8) bytes
Vendor: 0x22b8 ()
Product ID: 0x7f01
Product Version: 0x0001
Manufacturer: 1
0x0409: Giant Wireless Technology
Product: 2
0x0409: MX240a MOTOROLA MESSENGER
0x0409: MX240a MOTOROLA MESSENGER
SerialNumber: 0
Number of Configurations: 1
Connection Status: Device Connected
Current Configuration: 1
Device Bus Speed: Low
Device Address: 0x02
Number of Open Pipes: 1
Configuration Descriptor (1)
Total Length: 34 bytes
Number of Interfaces: 1
Configuration Value: 1
Configuration: 2
0x0409: MX240a MOTOROLA MESSENGER
0x0409: MX240a MOTOROLA MESSENGER
Attributes: 0xc0
Bus Powered
Self Powered
Max Power: 0x32 (100 Ma)
Interface Descriptor (0)
Interface Number: 0
Alternate Setting: 0x00
Number of Endpoints: 0x01
Interface Class: (3) Human Interface (HID)
Interface Subclass: 1
Interface Protocol: 0
Interface: 0
HID Descriptor
HID Version: 0x0100
Country Code: 0x00 (0)
Number of Descriptors: 1
Type: 0x22, Length: 0x001d bytes
Endpoint Descriptor (Addr: 0x81)
Endpoint Address: 0x81, Input
Transfer Type: Interrupt
Max Packet Size: 0x0008 (8) bytes
Interval: 0x0a
|
[/code]
|
|
Back to top |
|
 |
|
 |
teknikill.net Forum Index -> Development |
All times are GMT
|
Page 1 of 1 |
|
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
|
Powered by phpBB 2.0.11 © 2001, 2002 phpBB Group
|