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

USB protocol for database? #777

Open
ghost opened this issue Jun 5, 2017 · 2 comments
Open

USB protocol for database? #777

ghost opened this issue Jun 5, 2017 · 2 comments
Assignees

Comments

@ghost
Copy link

ghost commented Jun 5, 2017

hello everybody,

who can say me where find the communication protocol between TYT and computer through USB for the user database implantation?

I would try to make a software on Windows OS :-)

thank you

@travisgoodspeed
Copy link
Owner

Tytera's CPS works on Windows by re-using the STMicro Cube SDK's example DFU code, patched to add their own commands. They also re-use STMicro's driver, USB VID, and USB PID.

You'll find the device side of the source code as ./applet/src/usb.c. From a higher level perspective, we are hooking the USB Device Firmware Update protocol to add our own commands. Be sure to query the Manufacturer String first, as that's what installs our USB stack hooks on the device side.

I'll draft up some proper documentation of our protocol in the Wiki and close this issue when it's ready.

@KG5RKI
Copy link

KG5RKI commented Feb 9, 2018

Link to my library I made from reversing the stock drivers and writing simple wrappers. It can be used in place of libusb on windows.

https://github.com/KG5RKI/dfulib

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

No branches or pull requests

2 participants