Eu tenho um EspressoBin (computador de placa única baseado no Marvell Armada, como um Raspberry Pi) conectado ao meu Mac através de um cabo USB. O EspressoBin tem um chip adaptador USB FTDI para (UART) construído em.
Estou tentando usar um aplicativo de comunicação chamado "picocom" no meu Mac para conectar ao console serial em meu EspressoBin, mas não consigo descobrir qual arquivo de dispositivo ( /dev/xxx
) no macOS corresponde ao FTDI Chip serial USB.
Outras informações:
$ uname -a
Darwin MAC-MBP-197.lan 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
Por meio da linha de comando, posso encontrar o nome do fornecedor e o ID do fornecedor e do produto:
$ system_profiler $ system_profiler SPUSBDataType USB-Serial Controller D: Product ID: 0x2303 / 0x2303(16) = 8963(10) Vendor ID: 0x067b (Prolific Technology, Inc.) / 0x067b(16) – 1659(10) Version: 4.00 Speed: Up to 12 Mb/sec Manufacturer: Prolific Technology Inc. Location ID: 0x14100000 / 19 / 0x14100000(16) = 3365928969(10) Current Available (mA): 500 Current Required (mA): 100 Extra Operating Current (mA): 0
ou
link
$ ioreg -p IOUSB -l -w 0 > testUSB.txt [...] | "IOClassNameOverride" = "IOUSBDevice" | } | +-o USB-Serial Controller D@14100000 { "sessionID" = 133574464882554 "iManufacturer" = 1 "bNumConfigurations" = 1 "idProduct" = 8963 / 0x2303(16) = 8963(10) "bcdDevice" = 1024 "Bus Power Available" = 250 "USB Address" = 15 "bMaxPacketSize0" = 64 "iProduct" = 2 "iSerialNumber" = 0 "bDeviceClass" = 0 "Built-In" = No "locationID" = 336592896 / 0x14100000(16) = 3365928969(10) "bDeviceSubClass" = 0 "bcdUSB" = 272 "USB Product Name" = "USB-Serial Controller D" "PortNum" = 1 "non-removable" = "no" "IOCFPlugInTypes" = {"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle"} "bDeviceProtocol" = 0 "IOUserClientClass" = "IOUSBDeviceUserClientV2" "IOPowerManagement" = {"DevicePowerState"=0,"CurrentPowerState"=3,"CapabilityFlags"=65536,"MaxPowerState"=4,"DriverPowerState"=3} "kUSBCurrentConfiguration" = 1 "Device Speed" = 1 "USB Vendor Name" = "Prolific Technology Inc. " "idVendor" = 1659 / 0x067b(16) – 1659(10) "IOGeneralInterest" = "IOCommand is not serializable" "IOClassNameOverride" = "IOUSBDevice" }
Mas infelizmente não encontro a chave de resposta descrita no artigo: link
$ cat /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle/Contents/Info.plist $ cat /System/Library/Extensions/IOUSBFamily.kext/Contents/Info.plist 5 BuildMachineOSBuild 7 CFBundleDevelopmentRegion 9 CFBundleExecutable 11 CFBundleGetInfoString 13 CFBundleIdentifier 15 CFBundleInfoDictionaryVersion 17 CFBundleName 19 CFBundlePackageType 21 CFBundleShortVersionString 23 CFBundleSignature 25 CFBundleSupportedPlatforms 29 CFBundleVersion 31 DTCompiler 33 DTPlatformBuild 35 DTPlatformVersion 37 DTSDKBuild 39 DTSDKName 41 DTXcode 43 DTXcodeBuild 45 IOKitPersonalities 47 AppleUSBLegacyRoot 49 CFBundleIdentifier 51 IOClass 53 IOProbeScore 55 IOProviderClass 59 OSBundleCompatibleVersion 61 OSBundleLibraries 63 com.apple.iokit.IOPCIFamily 65 com.apple.iokit.IOUSBHostFamily 67 com.apple.kpi.bsd 69 com.apple.kpi.iokit 71 com.apple.kpi.libkern 73 com.apple.kpi.mach 75 com.apple.kpi.unsupported 78 OSBundleRequired 80 OSBundleRequiredPromotion
Guias de instalação do FTDI: link
Drivers de FTDI: link