Modifications

Sauter à la navigation Sauter à la recherche
1 629 octets ajoutés ,  13 février 2017 à 21:55
Ligne 86 : Ligne 86 :     
=== Mac OSX ===
 
=== Mac OSX ===
 +
{{traduction}}
 +
 
On a Mac you can use a few included terminal commands to list serial ports and connect to a serial port to test the loopback connection.   
 
On a Mac you can use a few included terminal commands to list serial ports and connect to a serial port to test the loopback connection.   
   Ligne 91 : Ligne 93 :     
  <nowiki>ls /dev/tty.*</nowiki>
 
  <nowiki>ls /dev/tty.*</nowiki>
 +
 +
You should see a list of devices, such as:
 +
 +
<nowiki>/dev/tty.Bluetooth-Incoming-Port    /dev/tty.usbmodem20
 +
/dev/tty.Bluetooth-Modem            /dev/tty.usbmodem22
 +
/dev/tty.usbmodem1d111              /dev/tty.usbmodem24</nowiki>
 +
 +
Now connect the FT232H breakout to the computer, wait a moment, and run the same ls command again.  You should see a new device in the list, such as:
 +
 +
<nowiki>/dev/tty.Bluetooth-Incoming-Port    /dev/tty.usbmodem20
 +
/dev/tty.Bluetooth-Modem            /dev/tty.usbmodem22
 +
/dev/tty.usbmodem1d111              /dev/tty.usbmodem24
 +
/dev/tty.usbserial-0000111D</nowiki>
 +
 +
The new device, /dev/tty.usbserial-0000111D, is the FT232H serial UART.  You can use this device with a program like screen to open a serial connection.  Run the following command in the terminal to open the serial UART:
 +
 +
<nowiki>screen /dev/tty.usbserial-0000111D 9600</nowiki>
 +
 +
Replace the /dev/tty.usbserial name with the name of the device you found after running the ls commands above.  The 9600 after the name is the baud rate to open the screen connection.
 +
 +
Once screen opens the connection you should see a blank screen.  Try typing characters and you should see them echoed back in the terminal.  Congratulations, your serial loopback test is a success!
 +
 +
You can exit screen by pressing '''Ctrl-a'' and then '''Ctrl-\'''.
 +
 +
=== Linux ===
 +
On Linux distributions such as Ubuntu 12.04 or 14.04 you can run terminal commands that are very similar to those shown above for Mac OSX.  The only difference is that you should run the following ls command to list serial devices:
 +
 +
<nowiki>ls /dev/tty*</nowiki>
 +
 +
    
{{RASP-FT232H-TRAILER}}
 
{{RASP-FT232H-TRAILER}}
29 918

modifications

Menu de navigation