User Tools

Site Tools


doc:crazyflie:crtp:mem

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
doc:crazyflie:crtp:mem [2015-09-17 12:01]
arnaud [Logical flow]
doc:crazyflie:crtp:mem [2019-09-05 15:12]
kimberly
Line 1: Line 1:
 +<WRAP center round important 60%>
 +This page is deprecated and is moved to the main Bitcraze website. Please go to:
 +
 + [[
 +https://www.bitcraze.io/docs/crazyflie-firmware/master/ctrp_mem/
 +]]
 +
 +</WRAP>
 +
 +
 +
 ====== Memory access ====== ====== Memory access ======
 Memory access is not used for the [[projects:crazyflie:index|Crazyflie Nano Quadcopter]], it's currently only implemented in the Crazyflie 2.0. Using the memory access gives the possibility to: Memory access is not used for the [[projects:crazyflie:index|Crazyflie Nano Quadcopter]], it's currently only implemented in the Crazyflie 2.0. Using the memory access gives the possibility to:
Line 13: Line 24:
 Getting information and reading/writing the memories is optional for the clients, but the -Crazyflie Python Client- always downloads information about the memories on connect. Getting information and reading/writing the memories is optional for the clients, but the -Crazyflie Python Client- always downloads information about the memories on connect.
  
-<code>+<ditaa>
     /------------------------\      /-------------------\     /----------------\   No    /------\     /------------------------\      /-------------------\     /----------------\   No    /------\
 --> | Get number of memories |----->| Fetch memory info |---->| More memories? |-------->| Done | --> | Get number of memories |----->| Fetch memory info |---->| More memories? |-------->| Done |
Line 21: Line 32:
                                               \------------------------/                                               \------------------------/
                                                           Yes                                                           Yes
-</code>+</ditaa>
 ====== Communication protocol ====== ====== Communication protocol ======
 The memory port uses 3 different channels: The memory port uses 3 different channels:
Line 83: Line 94:
 Example of requesting the information for a 1-wire memory with MEM_ID=1, MEM_SIZE=112bytes, MEM_ADDR=0x1234567890ABCDEF Example of requesting the information for a 1-wire memory with MEM_ID=1, MEM_SIZE=112bytes, MEM_ADDR=0x1234567890ABCDEF
 <code> <code>
-Host-to-Crazyflie: <port/chan> 0x02 0x01 0x01+Host-to-Crazyflie: <port/chan> 0x02 0x01
 Crazyflie-to-Host: <port/chan> 0x02 0x01 0x01 0x70 0x00 0x00 0x00 0xEF 0xCD 0xAB 0x90 0x78 0x56 0x34 0x12 Crazyflie-to-Host: <port/chan> 0x02 0x01 0x01 0x70 0x00 0x00 0x00 0xEF 0xCD 0xAB 0x90 0x78 0x56 0x34 0x12
 </code> </code>
doc/crazyflie/crtp/mem.txt · Last modified: 2020-05-12 14:22 by kimberly