mwifi_write() -> CRC or checksum?

cgfoed
Posts: 10
Joined: Thu Jul 18, 2019 6:40 am

mwifi_write() -> CRC or checksum?

Postby cgfoed » Thu Sep 12, 2019 3:02 pm

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?

cgfoed
Posts: 10
Joined: Thu Jul 18, 2019 6:40 am

Re: mwifi_write() -> CRC or checksum?

Postby cgfoed » Mon Sep 16, 2019 6:17 am

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?

ESP_LBB
Posts: 108
Joined: Fri May 18, 2018 3:41 am

Re: mwifi_write() -> CRC or checksum?

Postby ESP_LBB » 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.

Who is online

Users browsing this forum: No registered users and 38 guests