mirror of
https://github.com/Lekensteyn/ltunify.git
synced 2025-12-10 10:25:34 +00:00
Updated README with ltunify session
This commit is contained in:
42
README.txt
42
README.txt
@@ -39,4 +39,46 @@ Usage of USB debugger:
|
|||||||
4. ./read-dev-usbmon /dev/usbmon1
|
4. ./read-dev-usbmon /dev/usbmon1
|
||||||
5. Profit!
|
5. Profit!
|
||||||
|
|
||||||
|
|
||||||
|
Pairing tool
|
||||||
|
The source is not too beautiful, but crafted quickly together while I learned
|
||||||
|
more about the protocol. Set the DEBUG environment variable to get more verbose
|
||||||
|
details.
|
||||||
|
|
||||||
|
Usage of the pairing tool is pretty straight-forward. Example session:
|
||||||
|
|
||||||
|
$ ./ltunify list
|
||||||
|
/dev/hidraw0: Permission denied
|
||||||
|
Logitech Unifying Receiver device is not accessible.
|
||||||
|
Try running this program as root or enable read/write permissions
|
||||||
|
for /dev/hidraw0
|
||||||
|
$ sudo chgrp $USER /dev/hidraw0 && sudo chmod g+rw /dev/hidraw0
|
||||||
|
$ ./ltunify list
|
||||||
|
Devices count: 1
|
||||||
|
Connected devices:
|
||||||
|
idx=1 Mouse M525
|
||||||
|
$ ./ltunify info 1
|
||||||
|
Firmware version: 024.000.00018
|
||||||
|
Bootloader version: BL.000.006
|
||||||
|
|
||||||
|
Device index 1
|
||||||
|
Mouse
|
||||||
|
Name: M525
|
||||||
|
Wireless Product ID: 4013
|
||||||
|
Serial number: DAFA335E
|
||||||
|
Device was unavailable, version information not available.
|
||||||
|
$ ./ltunify unpair 1
|
||||||
|
Device 0x01 succesfully unpaired
|
||||||
|
$ ./ltunify list
|
||||||
|
Devices count: 0
|
||||||
|
Connected devices:
|
||||||
|
$ ./ltunify pair
|
||||||
|
Please turn your wireless device off and on to start pairing.
|
||||||
|
Found new device, id=0x01 Mouse
|
||||||
|
$ ./ltunify list
|
||||||
|
Devices count: 1
|
||||||
|
Connected devices:
|
||||||
|
idx=1 Mouse M525
|
||||||
|
|
||||||
|
|
||||||
~ Peter Wu <lekensteyn@gmail.com>
|
~ Peter Wu <lekensteyn@gmail.com>
|
||||||
|
|||||||
@@ -559,6 +559,7 @@ void perform_pair(int fd, u8 timeout) {
|
|||||||
fprintf(stderr, "Failed to send pair request\n");
|
fprintf(stderr, "Failed to send pair request\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
puts("Please turn your wireless device off and on to start pairing.");
|
||||||
// WARNING: mess ahead. I knew it would become messy before writing it.
|
// WARNING: mess ahead. I knew it would become messy before writing it.
|
||||||
for (;;) {
|
for (;;) {
|
||||||
msg.report_id = SHORT_MESSAGE;
|
msg.report_id = SHORT_MESSAGE;
|
||||||
|
|||||||
Reference in New Issue
Block a user