Skip to content

Instantly share code, notes, and snippets.

@NeoCat
Created April 7, 2018 15:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NeoCat/1e8188c0d107b7af7ee69d96f19388c2 to your computer and use it in GitHub Desktop.
Save NeoCat/1e8188c0d107b7af7ee69d96f19388c2 to your computer and use it in GitHub Desktop.
Bluetooth connection to USB Voltage/Current Monitor UM24C using Linux
$ bluetoothctl
[bluetooth]# scan on
Discovery started
[NEW] Device 00:BA:55:XX:XX;XX UM24C
[CHG] Device 00:BA:55:XX:XX;XX RSSI: -63
[bluetooth]# pair 00:BA:55:XX:XX;XX
Attempting to pair with 00:BA:55:XX:XX;XX
[CHG] Device 00:BA:55:XX:XX;XX Connected: yes
Request PIN code
[UM241m[agent] Enter PIN code: 1234
...
Pairing successful
...
[bluetooth]# trust 00:BA:55:XX:XX;XX
[CHG] Device 00:BA:55:XX:XX;XX Trusted: yes
Changing 00:BA:55:XX:XX;XX trust succeeded
$ sudo rfcomm bind 0 00:BA:55:XX:XX;XX
$ (while true; do sleep 0.5; printf "\xf0"; done) | jerm -b 9600 /dev/rfcomm0 | xxd
Jerminal v0.8096 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007 candy
Type "Ctrl-M ~ ." to exit.
ispeed 115200 ospeed 115200
-IGNBRK -BRKINT +IGNPAR -PARMRK -INPCK -ISTRIP -INLCR -IGNCR -ICRNL -IXON -IXOFF -IXANY -IMAXBEL
-OPOST -ONLCR -TABDLY
cs8 -CSTOPB +CREAD -PARENB -PARODD -HUPCL +CLOCAL -CRTSCTS -ECHOKE -ECHOE -ECHO -ECHONL -ECHOPRT -ECHOCTL -ISIG -ICANON -IEXTEN
-EXTPROC -TOSTOP -FLUSHO -PENDIN -NOFLSH
00000000: 0963 01ed 0000 0000 0000 0012 0041 0000 .c...........A..
00000010: 0000 00d1 0000 03f6 0000 0000 0000 0000 ................
00000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000060: 0000 0000 0000 0000 0000 0000 0000 000a ................
00000070: 0000 0000 0000 0001 0002 0001 869f 0000 ................
00000080: fff1 0963 01ed 0000 0000 0000 0012 0041 ...c...........A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment