Ligne 242 : |
Ligne 242 : |
| | | |
| == Capturing data to file == | | == Capturing data to file == |
− | Having data available in the Arduino Serial Monitor is great... but capturing the content to a file is even better. | + | Having data available in the Arduino Serial Monitor is great... but capturing it without Arduino would be even better. |
| | | |
− | === On Linux system === | + | === Putty === |
| + | The putty software (available on Windows, Mac, Linux) can be also be used to connect to the Arduino Serial Port interface |
| + | |
| + | Here how it should be configured to capture the data. |
| + | |
| + | [[Fichier:ENG-CANSAT-MISSION1-RECEIVE-30.png|360px]] |
| + | |
| + | Putty also offers some logging capability that may be useful. |
| + | |
| + | === Linux command === |
| If you are addict to Linux or Raspberry-Pi board then you can easily view and capture the data with the following commnands. | | If you are addict to Linux or Raspberry-Pi board then you can easily view and capture the data with the following commnands. |
| | | |
− | cat /dev/ttyUSB0 | + | cat /dev/ttyACM0 > output.dat |
| + | |
| + | This command will redirect the content of the USB port to a file named {{fname|output.dat}} . |
| | | |
| === With Python === | | === With Python === |
Ligne 254 : |
Ligne 265 : |
| The content of the file is reset when the script is started. | | The content of the file is reset when the script is started. |
| | | |
− | {{ambox-stop|text=Openning the Serial Port will issue the automatic Reset feature of the board.}} | + | {{ambox-stop|text=Openning the Serial Port will issue the automatic Reset feature of the Arduino board.}} |
| | | |
| <syntaxhighlight lang="python"> | | <syntaxhighlight lang="python"> |
Ligne 277 : |
Ligne 288 : |
| ser.close() | | ser.close() |
| </syntaxhighlight> | | </syntaxhighlight> |
| + | |
| + | === Other options === |
| + | You may find many other capture methods from Internet: |
| + | * Free Software available on Internet |
| + | * Source Code example for your favourite programming language. |
| | | |
| {{ENG-CANSAT-TRAILER}} | | {{ENG-CANSAT-TRAILER}} |