Skip to content

Commit f4f7fe5

Browse files
author
Jamie C. Driver
committed
jade: update Jade api to 1.0.33
This extends the serial api to recognise recently supported hardware.
1 parent 21f6025 commit f4f7fe5

File tree

5 files changed

+303
-21
lines changed

5 files changed

+303
-21
lines changed

hwilib/devices/jade.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from .jadepy import jade
77
from .jadepy.jade import JadeAPI, JadeError
8+
from .jadepy.jade_serial import JadeSerialImpl
89

910
from serial.tools import list_ports
1011

@@ -58,7 +59,6 @@
5859
# The test emulator port
5960
SIMULATOR_PATH = 'tcp:127.0.0.1:30121'
6061

61-
JADE_DEVICE_IDS = [(0x10c4, 0xea60), (0x1a86, 0x55d4), (0x0403, 0x6001), (0x1a86, 0x7523)]
6262
HAS_NETWORKING = hasattr(jade, '_http_request')
6363

6464
py_enumerate = enumerate # To use the enumerate built-in, since the name is overridden below
@@ -533,7 +533,7 @@ def _get_device_entry(device_model: str, device_path: str) -> Dict[str, Any]:
533533
# Scan com ports looking for the relevant vid and pid, and use 'path' to
534534
# hold the path to the serial port device, eg. /dev/ttyUSB0
535535
for devinfo in list_ports.comports():
536-
if (devinfo.vid, devinfo.pid) in JADE_DEVICE_IDS:
536+
if (devinfo.vid, devinfo.pid) in JadeSerialImpl.JADE_DEVICE_IDS:
537537
results.append(_get_device_entry('jade', devinfo.device))
538538

539539
# If we can connect to the simulator, add it too

hwilib/devices/jadepy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is a slightly stripped down version of the official [Jade](https://github.com/Blockstream/Jade) python library.
44

5-
This stripped down version was made from tag [0.1.38](https://github.com/Blockstream/Jade/releases/tag/0.1.38)
5+
This stripped down version was made from tag [1.0.33](https://github.com/Blockstream/Jade/releases/tag/1.0.33)
66

77
## Changes
88

hwilib/devices/jadepy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from .jade import JadeAPI
22
from .jade_error import JadeError
33

4-
__version__ = "0.2.0"
4+
__version__ = "1.0.33"

0 commit comments

Comments
 (0)