Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

controlRead not defined when trying to playback. #82

Open
DMJC opened this issue Sep 28, 2024 · 0 comments
Open

controlRead not defined when trying to playback. #82

DMJC opened this issue Sep 28, 2024 · 0 comments

Comments

@DMJC
Copy link

DMJC commented Sep 28, 2024

python replay.py
Traceback (most recent call last):
File "/home/james/development/psvr2/usbrply/replay.py", line 10, in
buff = controlRead(0xC2, 0x01, 0x00A1, 0x0000, 12)
^^^^^^^^^^^
NameError: name 'controlRead' is not defined

It's obviously generated the code because I have a ~750mb file with the codes in it. But I don't know howto verify the controlRead function. What library provides it?

#!/usr/bin/env python3

Generated by usbrply

cmd: /usr/local/bin/usbrply --vid 0x054c --pid 0x0cde -p PSVR_Activation_Codes1.pcapng

Generated by usbrply

Source: Windows pcap (USBPcap)

cmd: /usr/local/bin/usbrply --vid 0x054c --pid 0x0cde -p PSVR_Activation_Codes1.pcapng

VidpidFilter: match device 14 w/ 0x054C:0x0CDE

Generated from packet 7/8

buff = controlRead(0xC2, 0x01, 0x00A1, 0x0000, 12)
validate_read(b"\xA1\x00\x01\x00\x04\x00\x00\x00\x00\x00\x00\x01", buff, "packet 7/8")

Generated from packet 9/10

buff = controlRead(0xC2, 0x01, 0x0081, 0x0000, 92)
validate_read(b"\x81\x00\x01\x00\x54\x00\x00\x00\x02\x01\x00\x06\x00\x00\x00\x00"
b"\x36\x65\x39\x37\x64\x62\x33\x31\x33\x35\x35\x38\x37\x65\x65\x66"
b"\x37\x32\x39\x63\x39\x65\x38\x39\x34\x31\x37\x66\x37\x38\x61\x37"
b"\x36\x64\x63\x61\x33\x63\x61\x35\xCF\x00\x00\x00\x0B\x00\x00\x00"
b"\x31\x36\x31\x31\x31\x33\x30\x36\x30\x34\x33\x30\x32\x38\x00\x00"
b"\x00\x00\x00\x00\x00\x00\x00\x1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant