2017-11-14 09:30 AM
Hello,
I am using the SPWF04 to provide Wifi acces to my system, interfacing by SPI. SPI works fine but I receive the following 'Console active' WIND message:
02 10 00 02 00 0d
syncKOE : WINDIndication Nb : WIND ID 0 -> 'console active'length : 0x0002payload : '<cr>'In UM2114 there is no payload for this WIND message, then my question is :
Why the payload lenght is 2 but the payload is only one Carriage Return char? Is it normal?
Thank you for your help
In attachement, the SPI dialog without MOSI to receive the WIND message
#console #spi #spwf04 #wind-messageSolved! Go to Solution.
2017-11-14 10:08 PM
Ciao Pascal,
<Cr> should not be part of SPI protocol. This bug has been fixed into FW1.1.0 (on st.com in a few days)
2017-11-14 10:08 PM
Ciao Pascal,
<Cr> should not be part of SPI protocol. This bug has been fixed into FW1.1.0 (on st.com in a few days)
2017-11-15 08:03 AM - edited 2023-11-20 09:36 AM
Hello,
Thank you for your reply. As I expected, a <LF> char was not read by my code because the nIRQ line was put high, now my code can read it. It explains why the length was 2. It looks like the nIRQ is put high before the <LF> was sent.
So, in the version FW1.1.0, the ''Console active'' message will be : 0x02 0x10 0x00 0x00 0x00 , right?
2017-11-15 11:05 AM
<Cr> and <Lf> are not needed over SPI, since the master knows how many bytes are going to be received (by length into the header packet).
New FW for SPWF04 will be released at the same time with new FW for XCube WiFi. So, protocol will be updated also on referenced SPI master.