2
一樣,我能看到在終端串口:串行端口名稱不能在終端和喜好系統
ls /dev/tty.*
也OSX:優先系統 - >網絡。
但名稱不同,例如:/dev/tty.usbserial-26223B和四RS232-HS 24
我有64個端口,所以我不知道至極一個是好一個......
一樣,我能看到在終端串口:串行端口名稱不能在終端和喜好系統
ls /dev/tty.*
也OSX:優先系統 - >網絡。
但名稱不同,例如:/dev/tty.usbserial-26223B和四RS232-HS 24
我有64個端口,所以我不知道至極一個是好一個......
串口應該都有對應的/dev/cu.*
設備(Call-Up)。如果您正在尋找通過USB連接的特定設備,也許您最簡單的路線是檢查/dev
設備斷開連接,然後連接並再次檢查。
您還可以使用system_profiler
來查找有關使用/dev/tty.*
設備的信息,例如,運行system_profiler 2>&1 | tee system.profiler.log
和搜索/dev/tty
我看到:
| +-o IOSerialBSDClient <class IOSerialBSDClient, id 0x100000471, registered, matched, active, busy 0 (0 ms), retain 5>
| {
| "IOClass" = "IOSerialBSDClient"
| "CFBundleIdentifier" = "com.apple.iokit.IOSerialFamily"
| "IOProviderClass" = "IOSerialStreamSync"
| "IOTTYBaseName" = "Bluetooth-Modem"
| "IOSerialBSDClientType" = "IOModemSerialStream"
| "IOProbeScore" = 0x3e8
| "IOCalloutDevice" = "/dev/cu.Bluetooth-Modem"
| "IODialinDevice" = "/dev/tty.Bluetooth-Modem"
| "IOMatchCategory" = "IODefaultMatchCategory"
| "IOTTYDevice" = "Bluetooth-Modem"
| "IOResourceMatch" = "IOBSD"
| "IOGeneralInterest" = "IOCommand is not serializable"
| "IOTTYSuffix" = ""
| }
但是,網絡信息是分開的,這相當於你的喜好GUI看到:
Bluetooth PAN:
Type: Ethernet
Hardware: Ethernet
BSD Device Name: en3
IPv4:
Configuration Method: DHCP
IPv6:
Configuration Method: Automatic
Proxies:
Exceptions List: *.local, 169.254/16
FTP Passive Mode: Yes
Service Order: 3