Closed LineF closed 7 years ago
A bit more information from cc1101 manual and cc1101.cpp: The MCSM1.TXOFF_MODE is by default 0b00 which means that after transmitting data the state machine will go to IDLE. I commented out the second if in the code above and replaced MARCSTATE_RX by MARCSTATE_IDLE. Additionally i should be running to max 2000 (in my example the 14 bytes were sent out in 6,4ms (i=640). Longer payloads therefore should be considered.
Now the code seems to work.
Martin
In CC1101 in function sndData this piece of code always finishes with i=0. A bit of debugging showed me that MARCSTATE returns 0x08 - the cc1101 is in the state of calibrating before sending out data.
Second, if I comment out the second if statement and wait 40ms (uint16_t i runs until 4000), the cc1101 never reaches RX_STATE.
`
` Martin