Распиновка настраивается в прошивке. Вот тут:
Код: Выделить всё
uint8_t pinmap[6] = {2,4,7,8,12,13};
uint8_t dacpinmap[6] = {3,5,6,9,10,11};
И в скрипте тоже самое:
Код: Выделить всё
pinmap = [2,4,7,8,12,13]
dacpinmap = [3,5,6,9,10,11] Код: Выделить всё
uint8_t pinmap[6] = {2,4,7,8,12,13};
uint8_t dacpinmap[6] = {3,5,6,9,10,11};
Код: Выделить всё
pinmap = [2,4,7,8,12,13]
dacpinmap = [3,5,6,9,10,11] 

Тима, теперь ты покажи, что говорит "lsusb -v", можно только сначала до строчки "Bus 002 Device 001: ID 1d6b:0001 .....".Nick писал(а):В lsusb ардуина выглядит так:
тогда можно сразу lsusb -s2:1 -vТима, теперь ты покажи, что говорит "lsusb -v", можно только сначала до строчки "Bus 002 Device 001: ID 1d6b:0001 .....".
Да, точно, забыл про это. А лучше вот так:Nick писал(а):тогда можно сразу lsusb -s2:1 -v
Для AVR.#887 aftaev » Вчера, 22:30
Impartial писал(а):
HID класс удобен тем, что для него не надо писать никаких драйверов. Дескрипторы отчета и физический легко вытаскиваются на урoвень HAL EMC без всякой писанины на С или питоне.
примерчик бы

вот что выдает порт, к которому подключена ардуина:UAVpilot писал(а):А лучше вот так: sudo lsusb -s2:1 -v
Код: Выделить всё
Bus 002 Device 007: ID 2341:0010
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x2341
idProduct 0x0010
bcdDevice 0.01
iManufacturer 1 Arduino (www.arduino.cc)
iProduct 2 Arduino Mega 2560
iSerial 220 A413937353035140A150
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 62
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 100mA
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 10.01
CDC ACM:
bmCapabilities 0x06
sends break
line coding and serial state
CDC Union:
bMasterInterface 0
bSlaveInterface 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 255
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Device Status: 0x0000
(Bus Powered)






Откуда ж мы знаем? Надо Rx->Tx и Tx->RxТима писал(а):к переходнику я правильно подключился?
