From cd0bdbbd9c1229f1bb05b75b5d2bbbe74e8e6b81 Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Wed, 27 Apr 2022 11:29:05 -0700 Subject: [PATCH] add nano_g1 --- info/mac/nano_g1.txt | 30 +++++++++++ info/ubuntu/nano_g1.txt | 91 ++++++++++++++++++++++++++++++++++ info/windows/nano_g1.txt | 39 +++++++++++++++ meshtastic/supported_device.py | 5 +- 4 files changed, 164 insertions(+), 1 deletion(-) create mode 100644 info/mac/nano_g1.txt create mode 100644 info/ubuntu/nano_g1.txt create mode 100644 info/windows/nano_g1.txt diff --git a/info/mac/nano_g1.txt b/info/mac/nano_g1.txt new file mode 100644 index 0000000..74b5e00 --- /dev/null +++ b/info/mac/nano_g1.txt @@ -0,0 +1,30 @@ +meshtastic detected port: /dev/cu.wchusbserial53820208781 + +ioreg -p IOUSB + +shows this: + +| +-o USB Single Serial@14300000 + + + + +system_profiler SPUSBDataType > /tmp/a + with device plugged in + +system_profiler SPUSBDataType > /tmp/b + with device not plugged in + +diff /tmp/a /tmp/b + +< USB Single Serial: +< +< Product ID: 0x55d4 +< Vendor ID: 0x1a86 +< Version: 4.43 +< Serial Number: 5382020878 +< Speed: Up to 12 Mb/s +< Location ID: 0x14300000 / 63 +< Current Available (mA): 500 +< Current Required (mA): 134 +< Extra Operating Current (mA): 0 diff --git a/info/ubuntu/nano_g1.txt b/info/ubuntu/nano_g1.txt new file mode 100644 index 0000000..a3f8d78 --- /dev/null +++ b/info/ubuntu/nano_g1.txt @@ -0,0 +1,91 @@ +lsusb -d 1a86: -v + +Bus 001 Device 013: ID 1a86:55d4 QinHeng Electronics +Couldn't open device, some information will be missing +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 1.10 + bDeviceClass 2 Communications + bDeviceSubClass 0 + bDeviceProtocol 0 + bMaxPacketSize0 8 + idVendor 0x1a86 QinHeng Electronics + idProduct 0x55d4 + bcdDevice 4.43 + iManufacturer 0 + iProduct 2 + iSerial 3 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 0x0043 + bNumInterfaces 2 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0xa0 + (Bus Powered) + Remote Wakeup + MaxPower 134mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 1 + bInterfaceClass 2 Communications + bInterfaceSubClass 2 Abstract (modem) + bInterfaceProtocol 1 AT-commands (v.25ter) + iInterface 0 + CDC Header: + bcdCDC 1.10 + CDC Call Management: + bmCapabilities 0x00 + bDataInterface 1 + CDC ACM: + bmCapabilities 0x02 + line coding and serial state + CDC Union: + bMasterInterface 0 + bSlaveInterface 1 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x83 EP 3 IN + bmAttributes 3 + Transfer Type Interrupt + Synch Type None + Usage Type Data + wMaxPacketSize 0x0010 1x 16 bytes + bInterval 1 + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 1 + bAlternateSetting 0 + bNumEndpoints 2 + bInterfaceClass 10 CDC Data + bInterfaceSubClass 0 + bInterfaceProtocol 0 + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x02 EP 2 OUT + bmAttributes 2 + Transfer Type Bulk + Synch Type None + Usage Type Data + wMaxPacketSize 0x0020 1x 32 bytes + bInterval 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x82 EP 2 IN + bmAttributes 2 + Transfer Type Bulk + Synch Type None + Usage Type Data + wMaxPacketSize 0x0040 1x 64 bytes + bInterval 0 diff --git a/info/windows/nano_g1.txt b/info/windows/nano_g1.txt new file mode 100644 index 0000000..e072c68 --- /dev/null +++ b/info/windows/nano_g1.txt @@ -0,0 +1,39 @@ +Get-PnpDevice -PresentOnly | Format-List >a +Get-PnpDevice -PresentOnly | Format-List >b +Compare-Object (get-content a) (Get-Content b) + +InputObject SideIndicator +----------- ------------- +Caption : USB-Enhanced-SERIAL CH9102 (COM9) => +Description : USB-Enhanced-SERIAL CH9102 => +Name : USB-Enhanced-SERIAL CH9102 (COM9) => +DeviceID : USB\VID_1A86&PID_55D4\5382020745 => +PNPDeviceID : USB\VID_1A86&PID_55D4\5382020745 => +ClassGuid : {4d36e978-e325-11ce-bfc1-08002be10318} => +CompatibleID : {USB\Class_02&SubClass_02&Prot_01, USB\Class_02&SubClass_02, USB\Class_02} => +HardwareID : {USB\VID_1A86&PID_55D4&REV_0443, USB\VID_1A86&PID_55D4} => +Manufacturer : wch.cn => +PNPClass : Ports => +Service : CH343SER_A64 => +Class : Ports => +FriendlyName : USB-Enhanced-SERIAL CH9102 (COM9) => +InstanceId : USB\VID_1A86&PID_55D4\5382020745 => +InstallDate : => +Status : OK => +Availability : => +ConfigManagerErrorCode : CM_PROB_NONE => +ConfigManagerUserConfig : False => +CreationClassName : Win32_PnPEntity => +ErrorCleared : => +ErrorDescription : => +LastErrorCode : => +PowerManagementCapabilities : => +PowerManagementSupported : => +StatusInfo : => +SystemCreationClassName : Win32_ComputerSystem => +SystemName : DESKTOP-FRFQN8H => +Present : True => +PSComputerName : => +Problem : CM_PROB_NONE => +ProblemDescription : => + => diff --git a/meshtastic/supported_device.py b/meshtastic/supported_device.py index 6ff46e5..7ddb547 100755 --- a/meshtastic/supported_device.py +++ b/meshtastic/supported_device.py @@ -82,9 +82,12 @@ rak4631_19003 = SupportedDevice(name="RAK 4631 19003", version="", for_firmware= device_class="nrf52", baseport_on_linux="ttyACM", baseport_on_mac="cu.usbmodem", usb_vendor_id_in_hex="239a", usb_product_id_in_hex="8029") +nano_g1 = SupportedDevice(name="Nano G1", version="", for_firmware="nano-g1", + baseport_on_linux="ttyACM", baseport_on_mac="cu.usbmodem", + usb_vendor_id_in_hex="1a86", usb_product_id_in_hex="55d4") supported_devices = [tbeam_v0_7, tbeam_v1_1, tbeam_M8N, tbeam_M8N_SX1262, tlora_v1, tlora_v1_3, tlora_v2, tlora_v2_1_1_6, heltec_v1, heltec_v2_0, heltec_v2_1, meshtastic_diy_v1, techo_1, rak4631_5005, rak4631_5005_epaper, rak4631_19003, - rak11200] + rak11200, nano_g1]