Modifications

Sauter à la navigation Sauter à la recherche
Ligne 25 : Ligne 25 :  
|-
 
|-
 
| MOSI
 
| MOSI
| GP7 (Miso)
+
| GP7 (Mosi)
 
|-
 
|-
 
| MISO
 
| MISO
| GP4 (Mosi)
+
| GP4 (Miso)
 
|-
 
|-
 
| SCK
 
| SCK
Ligne 87 : Ligne 87 :     
== Extra ==
 
== Extra ==
=== View received data ===
+
=== Use 'cat' utility ===
 
If by any changes you do have a '''Linux''' computer, a '''Raspberry-Pi''' or an '''Apple''' computer then you can easily capture the serial data with the {{fname|cat}} command line utility.
 
If by any changes you do have a '''Linux''' computer, a '''Raspberry-Pi''' or an '''Apple''' computer then you can easily capture the serial data with the {{fname|cat}} command line utility.
   Ligne 98 : Ligne 98 :  
[[Fichier:ENG-CANSAT-PICO-MISSION1-RECEIVE-20.png]]
 
[[Fichier:ENG-CANSAT-PICO-MISSION1-RECEIVE-20.png]]
   −
=== Catching the data ===
+
Now, we can use the following command line to capture the message on de device.
 +
 
 +
<nowiki>cat /dev/ttyACM1</nowiki>
 +
 
 +
and viewing the Base Station messages appearing on the screen.
 +
 
 +
[[Fichier:ENG-CANSAT-PICO-MISSION1-RECEIVE-21.png]]
 +
 
 +
=== Logging data to file ===
 +
Linux operating system (and alike) allows the user to easily and quickly redirect output (like output of {{fname|cat /dev/ttyACM1}}) to a file.
 +
 
 +
Key-in the following command:
 +
 
 +
<nowiki>cat /dev/ttyACM1 > log.txt</nowiki>
 +
 
 +
will instantly redirect everything coming from {{fname|/dev/ttyACM1}} to the file {{fname|log.txt}} .
 +
 
 +
Press CTRL+C to stop 'cat' and the redirection. The file 'log.txt' is now fully available for data treatment.
 +
 
 +
A [https://github.com/mchobby/cansat-belgium-micropython/blob/main/mission1/cansat2.py log.txt sample] is available from the GitHub repository.
    
{{ENG-CANSAT-PICO-TRAILER}}
 
{{ENG-CANSAT-PICO-TRAILER}}
29 917

modifications

Menu de navigation