Sending data bigger than 8kB with MWIFI Router Example

orlov127
Posts: 4
Joined: Mon Sep 09, 2019 3:10 pm

Sending data bigger than 8kB with MWIFI Router Example

Postby orlov127 » Wed Oct 09, 2019 7:02 pm

I've been playing around with the router example in MWIFI for quite some time and I want to transmit photos through the mesh. The only issue is that this specific example is limited to 8kB.

Are there any suggested methods for splitting the data up to be transmitted? I know packet fragmentation is included, but I may have to split the data further if I have a file that is 1MB.

ESP_Bond
Posts: 51
Joined: Mon Apr 15, 2019 1:37 pm

Re: Sending data bigger than 8kB with MWIFI Router Example

Postby ESP_Bond » Thu Oct 10, 2019 12:28 pm

ESP-MESH does not support data stream transmission. When the data packet exceeds 8k, fragment transmission is required. Our OTA data packet is also more than 1MB, and the method of fragment transmission is also adopted.

orlov127
Posts: 4
Joined: Mon Sep 09, 2019 3:10 pm

Re: Sending data bigger than 8kB with MWIFI Router Example

Postby orlov127 » Mon Oct 14, 2019 4:46 pm

Ok, I see in the mwifi.c file that it mentions fragmentation and uses mwifi_subcontract_write function. I am trying to transmit an encoded photo.

In the router_example.c, you are using mwifi_write(). I have data that exceeds 8kB and I get the error "E (12109) [mwifi, 692]: <MDF_ERR_INVALID_ARG> !(size > 0 && size < 8096)" when I try to use mwifi_write(); Is there another function I should use?

i_juri
Posts: 1
Joined: Tue May 12, 2020 3:08 am

Re: Sending data bigger than 8kB with MWIFI Router Example

Postby i_juri » Tue May 12, 2020 3:30 am

Hello, have you solved the problem of mwifi transmitting data larger than 8KB

Who is online

Users browsing this forum: No registered users and 18 guests