Hi everybody,
we are working with the cc8520 together with TLV320AIC3204 and cc2591. We developed an evaluation board, where we can use the cc8520 in autonomous as well in host controlled mode. If both (we have two boards running) boards are in autonomous mode, everything works fine. But we have problems in host controlled mode...
First of all: Is it possible to combine a master in autonomous mode and a slave in host crontrolled mode (or reverse) or must all devices work in host crontrolled mode?
1. Problem: Status word
We often see EVT_SPI_ERROR-errors in the status words. For example when we send a DI_GET_DEVICE_INFO, we get the following status word (I've sent it twice to get the right one).
Confusing is, we get the right answer (DEVICE_ID etc.) by executing a READ command but the status word indicates a SPI error.
This happens with many other commands but it is not really repeatable, sometimes an error, sometimes none (we always reset the errors)?
I think we complied to all SPI restrictions, as you can see on the pictures.
2. Problem: NWM_DO_SCAN, NWM_DO_JOIN
!!Please remember, we are working with a Master in autonomous mode and a slave in host controlled mode.!!
When we try to do a NWM_DO_SCAN or NWM_DO_JOIN to check for available networks, the slave device does not find any, even if the master device is in pairing mode. We can see that the slave is scanning (higher current consumption for 500ms) but nothing is found. The status word indicates a EVT_NWK_CHG.
Thats our DO_JOIN command:
And thats the answer from a READBC for 28 Bytes:
It indicates that 0 networks were found and that we only get the status word.
In general:
Whats the proper way to establish a connection? We do the following:
1. Power-Up the device
2. Scan for or Join to a network
3. Check if we found anything
Is there any further step we missed. Could anyone tell me the general approach to manage a connection?
Regards,
Oliver