From 6d5ed2129a783dbecf23c0bb45e4f06cc9b47adc Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Thu, 10 Feb 2022 15:12:28 -0800 Subject: [PATCH] add rak11200 --- info/mac/rak11200.txt | 52 ++++++++++++++++++++++++++++++++++ meshtastic/supported_device.py | 6 +++- 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 info/mac/rak11200.txt diff --git a/info/mac/rak11200.txt b/info/mac/rak11200.txt new file mode 100644 index 0000000..13d94b4 --- /dev/null +++ b/info/mac/rak11200.txt @@ -0,0 +1,52 @@ + + +% ioreg -p IOUSB > /tmp/a +# only a solid red light (pins GRND and BOOT0 jumpered) + +% ioreg -p IOUSB > /tmp/b +# solid red light and solid green light + +% ioreg -p IOUSB > /tmp/c +# nothing plugged in + + + +% diff /tmp/a /tmp/c +13c13 +< +-o AppleUSBXHCI Root Hub Simulation@14000000 +--- +> +-o AppleUSBXHCI Root Hub Simulation@14000000 +18d17 +< +-o USB Serial@14300000 + + +% diff /tmp/b /tmp/c +13c13 +< +-o AppleUSBXHCI Root Hub Simulation@14000000 +--- +> +-o AppleUSBXHCI Root Hub Simulation@14000000 +18d17 +< +-o USB Serial@14300000 + + + +system_profiler SPUSBDataType > /tmp/d +# red solid + + +system_profiler SPUSBDataType > /tmp/e +# nothing + + +% diff /tmp/d /tmp/e +38,48d37 +< USB Serial: +< +< Product ID: 0x7523 +< Vendor ID: 0x1a86 +< Version: 2.64 +< Speed: Up to 12 Mb/s +< Location ID: 0x14300000 / 33 +< Current Available (mA): 500 +< Current Required (mA): 98 +< Extra Operating Current (mA): 0 diff --git a/meshtastic/supported_device.py b/meshtastic/supported_device.py index 306355e..82c760e 100755 --- a/meshtastic/supported_device.py +++ b/meshtastic/supported_device.py @@ -66,6 +66,9 @@ heltec_v2_0 = SupportedDevice(name="Heltec", version="2.0", for_firmware="heltec heltec_v2_1 = SupportedDevice(name="Heltec", version="2.1", for_firmware="heltec-v2.1", baseport_on_linux="ttyUSB", baseport_on_mac="cu.usbserial-", usb_vendor_id_in_hex="10c4", usb_product_id_in_hex="ea60") +rak11200 = SupportedDevice(name="RAK 11200", version="", for_firmware="rak11200", + baseport_on_linux="ttyUSB", baseport_on_mac="cu.usbserial-", + usb_vendor_id_in_hex="1a86", usb_product_id_in_hex="7523") meshtastic_diy_v1 = SupportedDevice(name="Meshtastic DIY", version="1", for_firmware="meshtastic-diy-v1", baseport_on_linux="ttyUSB", baseport_on_mac="cu.usbserial-", usb_vendor_id_in_hex="10c4", usb_product_id_in_hex="ea60") @@ -86,7 +89,8 @@ rak4631_19003 = SupportedDevice(name="RAK 4631 19003", version="", for_firmware= supported_devices = [tbeam_v0_7, tbeam_v1_1, tbeam_M8N, tbeam_M8N_SX1262, tlora_v1_1, tlora_v1_3, tlora_v2_0, tlora_v2_1, tlora_v2_1_1_6, heltec_v1, heltec_v2_0, heltec_v2_1, - meshtastic_diy_v1, techo_1, rak4631_5005, rak4631_19003] + meshtastic_diy_v1, techo_1, rak4631_5005, rak4631_19003, + rak11200] def get_unique_vendor_ids():