Page 1 of 1

mwifi_write() -> CRC or checksum?

Posted: Thu Sep 12, 2019 3:02 pm
by cgfoed
Hello Folks,

I'm still getting familiar to the MDF and couldn't find an answer to my simple question on hand:

When I'm sending using

Code: Select all

ret = mwifi_write(NULL, &data_type, &data, MWIFI_DATA_IO_SIZE, true);
MDF_ERROR_CONTINUE(ret != MDF_OK, "mwifi_write, ret: %x", ret);
and my root receives with

Code: Select all

ret = mwifi_root_read(src_addr, &data_type, data, &size, portMAX_DELAY);
MDF_ERROR_CONTINUE(ret != MDF_OK, "<%s> mwifi_root_read", mdf_err_to_name(ret));

my question:
Is there a some kind of checksum matching or CRC baked into the mdf-process or should I implement my own?

Re: mwifi_write() -> CRC or checksum?

Posted: Mon Sep 16, 2019 6:17 am
by cgfoed
Well, I guess the answer is yes ... but can anybody tell me for sure ?
Even after some searching I wasn't able to dig deep enough into the code to finde sth like it.

Or is a safe transaction inside the MESH achieved by "simply" relying on the wifi stack, which does all the checking deep within?

Re: mwifi_write() -> CRC or checksum?

Posted: Mon Sep 16, 2019 2:07 pm
Hi cgfoed,

Sorry for the late reply as it was holiday from 13 to 15 in China.

The answer is yes, the CRC is already been implemented in IDF, which is the basic of MDF.