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

Remote setting of device time #2

Open
dmatech1 opened this issue May 18, 2020 · 6 comments
Open

Remote setting of device time #2

dmatech1 opened this issue May 18, 2020 · 6 comments

Comments

@dmatech1
Copy link

This script seems to work flawlessly with the CVS-branded BP3AC1-1PC (UK link). The software for it has a feature to set the time on the device, but it didn't seem to work on anything beyond 32-bit Windows XP. Is there any interest in adding this if I can somehow get a USB capture of this operation?

@phako
Copy link
Owner

phako commented May 18, 2020

I think I have the command sequence for that, I'll come back to you if or if I haven't found it:)

@phako
Copy link
Owner

phako commented Jun 24, 2020

Hm, no I cannot find it. If you have a capture, that would be very nice.

What I did was using a Windows VM on Linux, route the USB device to that and use https://www.kernel.org/doc/Documentation/usb/usbmon.txt to dump the traffic

@dmatech1
Copy link
Author

I finally got around to testing this some and I've at least figured out some of this. Normally I'd just reverse-engineer the code, but I live in a jurisdiction that might enforce the EULA terms. I'll do a few more of these just to make sure I'm right about them.

First run:

=== Send ===
04 12 16 18 27 00 00 00             ....'...    Command?

=== Receive ===
F1 06 30 30 30 30 30 39             ..000009    Response.  Could be a protocol version.

=== Send ===
07 31 31 31 33 32 31 32             .1113212    .MMDDYYC
07 30 31 36 31 34 31 38             .0161418    .Chhmmss
07 30 30 30 30 30 31 31             .0000011
07 38 30 33 30 31 30 30             .8030100
07 30 37 30 30 30 30 30             .0700000
07 30 30 30 30 30 30 30             .0000000
07 46 46 33 32 39 36 46             .FF3296F
07 30 31 34 39 36 46 41             .01496FA
07 30 41 30 31 30 31 30             .0A01010
07 31 30 31 30 31 30 30             .1010100
07 30 34 30 30 30 30 30             .0400000
05 30 30 30 46 34 00 00             .000F4..    .?????

Second Run:

=== Send ===
04 12 16 18 27 00 00 00             ....'...

=== Receive ===
F1 06 30 30 30 30 30 39             ..000009

=== Send ===
07 31 31 31 34 32 31 32             .1114212    .MMDDYYC
07 30 31 35 31 30 30 34             .0151004    .Chhmmss
07 30 30 30 30 30 31 31             .0000011
07 38 30 33 30 31 30 30             .8030100
07 30 37 30 30 30 30 30             .0700000
07 30 30 30 30 30 30 30             .0000000
07 46 46 33 32 39 36 46             .FF3296F
07 30 31 34 39 36 46 41             .01496FA
07 30 41 30 31 30 31 30             .0A01010
07 31 30 31 30 31 30 30             .1010100
07 30 34 30 30 30 30 30             .0400000
05 30 30 30 45 35 00 00             .000E5..    .?????

@phako
Copy link
Owner

phako commented Nov 17, 2021

Ah interesting. I haven"t worked on this for some time, I need to check my notes, sorry. Will get back to you

@joergmlpts
Copy link

Does this code work for you? That's for Microlife model BP3GX1-5X that I bought at Costco maybe 5-8 years ago.

@phako
Copy link
Owner

phako commented Nov 18, 2021

Oh, nice app, that's what I wanted to write but never came to do

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

3 participants