From a6e770f5485c6ef9116157a9e141c8edecb407e9 Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Sun, 30 Jan 2022 22:38:35 -0800 Subject: [PATCH] add info about 19003 --- info/mac/rak4631_19003.txt | 58 ++++++++++++++++++++++++++++++++++ meshtastic/supported_device.py | 1 + meshtastic/util.py | 2 +- 3 files changed, 60 insertions(+), 1 deletion(-) diff --git a/info/mac/rak4631_19003.txt b/info/mac/rak4631_19003.txt index c60e913..692d31d 100644 --- a/info/mac/rak4631_19003.txt +++ b/info/mac/rak4631_19003.txt @@ -8,3 +8,61 @@ % ls -al /dev/*modem* crw-rw-rw- 1 root wheel 0x9000005 Jan 29 15:32 /dev/cu.usbmodem14401 crw-rw-rw- 1 root wheel 0x9000004 Jan 29 15:31 /dev/tty.usbmodem14401 + + +Note: On a Mac Air, output is: + +% system_profiler SPUSBDataType +USB: + USB 3.1 Bus: + Host Controller Driver: AppleT8103USBXHCI + USB 3.1 Bus: + Host Controller Driver: AppleT8103USBXHCI + WisCore RAK4631 Board: + Product ID: 0x8029 + Vendor ID: 0x239a + Version: 1.00 + Serial Number: E6CF9502B1D410D8 + Speed: Up to 12 Mb/s + Manufacturer: RAKwireless + Location ID: 0x01100000 / 2 + Current Available (mA): 500 + Current Required (mA): 100 + Extra Operating Current (mA): 0 + +However, in FTHR840BOOT mode, it shows this: + +% system_profiler SPUSBDataType +USB: + USB 3.1 Bus: + Host Controller Driver: AppleT8103USBXHCI + USB 3.1 Bus: + Host Controller Driver: AppleT8103USBXHCI + Feather nRF52840 Express: + Product ID: 0x0029 + Vendor ID: 0x239a + Version: 1.00 + Serial Number: E6CF9502B1D410D8 + Speed: Up to 12 Mb/s + Manufacturer: Adafruit Industries + Location ID: 0x01100000 / 1 + Current Available (mA): 500 + Current Required (mA): 100 + Extra Operating Current (mA): 0 + Media: + nRF UF2: + Capacity: 33.7 MB (33,690,112 bytes) + Removable Media: Yes + BSD Name: disk4 + Logical Unit: 0 + Partition Map Type: Unknown + S.M.A.R.T. status: Verified + USB Interface: 2 + + +$ cat /Volumes/FTHR840BOOT/INFO_UF2.TXT +UF2 Bootloader 0.3.2-109-gd6b28e6-dirty lib/nrfx (v2.0.0) lib/tinyusb (0.6.0-272-g4e6aa0d8) lib/uf2 (heads/master) +Model: Adafruit Feather nRF52840 Express +Board-ID: nRF52840-Feather-revD +SoftDevice: S140 version 6.1.1 +Date: Jun 16 2020 diff --git a/meshtastic/supported_device.py b/meshtastic/supported_device.py index f49b049..e4d027d 100755 --- a/meshtastic/supported_device.py +++ b/meshtastic/supported_device.py @@ -75,6 +75,7 @@ rak4631_5005 = SupportedDevice(name="RAK 4631 5005", version="", for_firmware="r device_class="nrf52", baseport_on_linux="ttyACM", baseport_on_mac="cu.usbmodem", usb_vendor_id_in_hex="239a", usb_product_id_in_hex="0029") +# Note: The 19003 reports same product id as 5005 in boot mode rak4631_19003 = SupportedDevice(name="RAK 4631 19003", version="", for_firmware="rak4631_19003", device_class="nrf52", baseport_on_linux="ttyACM", baseport_on_mac="cu.usbmodem", diff --git a/meshtastic/util.py b/meshtastic/util.py index 3e91799..c1a26b1 100644 --- a/meshtastic/util.py +++ b/meshtastic/util.py @@ -327,7 +327,7 @@ def detect_supported_devices(): elif system == "Darwin": # run: system_profiler SPUSBDataType - # if mac air (eg: arm m1) do not know how to get info TODO: research + # Note: If in boot mode, the 19003 reports same product ID as 5005. _, sp_output = subprocess.getstatusoutput('system_profiler SPUSBDataType') vids = get_unique_vendor_ids()