Author Topic: Brymen BM869 / BC-86X software example  (Read 1497 times)

0 Members and 1 Guest are viewing this topic.

Offline miro123Topic starter

  • Regular Contributor
  • *
  • Posts: 216
  • Country: nl
Brymen BM869 / BC-86X software example
« on: March 17, 2022, 02:17:53 pm »
Hello,
I have Brymen 869s and brymen usb dongle BC-86X
I struggling to get the communication up and running in Python or C++, as wel as on Linux or Windows platform

My question are.
1. Can I find software example for communication with BC-86X /BM869s
2. I run to to following problems   - BC-86X  is represent as USB HID . There is only one USB Output endpoint. How can I send command to this HID device if there is Output endpoint
3. As far as I undersood  - protocol requires to send <0x00 , 0x00,0x86,0x66 > device returns the BM869s Display status encoded in 27 bytes - Do I make  correct assumption?

I have attached the protocol description

Thanks in advance
Miro

« Last Edit: March 17, 2022, 02:30:55 pm by miro123 »
 

Offline HKJ

  • Super Contributor
  • ***
  • Posts: 3086
  • Country: dk
    • Tests
 
The following users thanked this post: miro123

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17518
  • Country: 00
 
The following users thanked this post: miro123

Offline miro123Topic starter

  • Regular Contributor
  • *
  • Posts: 216
  • Country: nl
Re: Brymen BM869 / BC-86X software example
« Reply #3 on: March 17, 2022, 05:43:50 pm »
TestController supports it on Windows.

Forum: https://www.eevblog.com/forum/testgear/program-that-can-log-from-many-multimeters/
Download: https://lygte-info.dk/project/TestControllerIntro%20UK.html
I start searching on this 93 pages blog but I haven't found it yet. Can you show me an example code reading the RAW data. snapshot from 3...10 line code should be sufficient
Are you using this library - https://github.com/libusb/hidapi
« Last Edit: March 17, 2022, 06:01:26 pm by miro123 »
 

Offline HKJ

  • Super Contributor
  • ***
  • Posts: 3086
  • Country: dk
    • Tests
Re: Brymen BM869 / BC-86X software example
« Reply #4 on: March 17, 2022, 06:37:04 pm »
I start searching on this 93 pages blog but I haven't found it yet. Can you show me an example code reading the RAW data. snapshot from 3...10 line code should be sufficient
Are you using this library - https://github.com/libusb/hidapi

If you run TC in debug mode it will list the bytes used for communication.
 
The following users thanked this post: miro123

Offline miro123Topic starter

  • Regular Contributor
  • *
  • Posts: 216
  • Country: nl
Re: Brymen BM869 / BC-86X software example
« Reply #5 on: March 17, 2022, 07:41:42 pm »
Thanks I've got it.
It works on python3 Ubuntu 20.04
 

Offline miro123Topic starter

  • Regular Contributor
  • *
  • Posts: 216
  • Country: nl
Re: Brymen BM869 / BC-86X software example
« Reply #6 on: December 24, 2023, 01:13:42 am »
I have been using my two Brymen869s in various data logging scenarios.
In all cases I use the the original usb dongle -BC-86x.
Here is short summary
1. Using sigrock-cli - it works out of the box in Linux as wel as windows.  Output can be integrated in python script
# sigrok-cli --driver=brymen-bm86x:conn=0820.0001 --samples=10
0x820 0x1 are PID and VIDs
You can trace them back with lsusb command
This one can be used too
# sigrok-cli --driver=brymen-bm86x --samples=10
2. using python hid api - you need to decode the protocol itself. Installing python hid can hurdle beginer programmer. Advantage is - better integration in python. I have atached example script. I used to test stability of my brymen 869


« Last Edit: December 24, 2023, 01:20:47 am by miro123 »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf