Low Rate WIFI Protocol LR

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Low Rate WIFI Protocol LR

Postby rudi ;-) » Wed Jan 18, 2017 8:08 pm

Code: Select all

..
 uint32_t low_rate_enable:1;           /**< bit: 0 flag to identify if low rate is enabled or not */
 ..
 
 #define WIFI_PROTOCOL_11B         1
#define WIFI_PROTOCOL_11G         2
#define WIFI_PROTOCOL_11N         4
#define WIFI_PROTOCOL_LR           8
hi guys,
get we low rate for long range ?

some results from 1/4 Mbps testings?

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Low Rate WIFI Protocol LR

Postby rudi ;-) » Thu Jan 19, 2017 9:39 am

hi

.. this Wifi Protocol LR was just mentioned here?

best wishes
rudi ;-)
Attachments
low_py.png
low_py.png (38.28 KiB) Viewed 18192 times
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: Low Rate WIFI Protocol LR

Postby ESP_igrr » Thu Jan 19, 2017 11:57 am

@Rudi: my long range test didn't go well because of a mechanical problem on the test vehicle (motor support plate fell apart). Will try again when I figure out how to 3d print a new one...

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Low Rate WIFI Protocol LR

Postby rudi ;-) » Thu Jan 19, 2017 5:21 pm

ESP_igrr wrote:@Rudi: my long range test didn't go well because of a mechanical problem on the test vehicle (motor support plate fell apart). Will try again when I figure out how to 3d print a new one...
@ivan txs, - (would help you on 3d print, but have not started this theme - but next time i do this too )
best wishes
rudi ;-)

btw: txs for fixing some issues on git
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

peter_
Posts: 13
Joined: Tue Jan 31, 2017 9:57 am

Re: Low Rate WIFI Protocol LR

Postby peter_ » Fri Feb 17, 2017 8:52 pm

Hello,
are there any news about this topic? This mode sounds very interesting for me because I don't need a really high datarate but a high range.
Is it compatible with normal routers? (I don't think so.)
Regards
Peter

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Low Rate WIFI Protocol LR

Postby rudi ;-) » Tue Mar 21, 2017 6:50 pm

ESP_igrr wrote:@Rudi: my long range test didn't go well because of a mechanical problem on the test vehicle (motor support plate fell apart). Will try again when I figure out how to 3d print a new one...
nice 3D Work
https://twitter.com/i_grr/status/822698239946354691

any news from this Low Rate?

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Hans Dorn
Posts: 62
Joined: Tue Feb 21, 2017 2:21 am

Re: Low Rate WIFI Protocol LR

Postby Hans Dorn » Tue Mar 21, 2017 8:34 pm

rudi ;-) wrote:
ESP_igrr wrote:@Rudi: my long range test didn't go well because of a mechanical problem on the test vehicle (motor support plate fell apart). Will try again when I figure out how to 3d print a new one...
@ivan txs, - (would help you on 3d print, but have not started this theme - but next time i do this too )
best wishes
rudi ;-)

btw: txs for fixing some issues on git
Your car broke down while checking the range?
Sounds good enough to me :P


Cheers


P.S J/K

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Low Rate WIFI Protocol LR

Postby rudi ;-) » Wed Mar 29, 2017 9:54 am

we know,
Low Range is here in the master since JAN

and to set things are here:

Code: Select all


**
  * @brief     Set protocol type of specified interface
  *            The default protocol is (WIFI_PROTOCOL_11B|WIFI_PROTOCOL_11G|WIFI_PROTOCOL_11N)
  *
  * @attention Currently we only support 802.11b or 802.11bg or 802.11bgn mode
  *
  * @param     ifx  interfaces
  * @param     protocol_bitmap  WiFi protocol bitmap
  *
  * @return
  *    - ESP_OK: succeed
  *    - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by eps_wifi_init
  *    - ESP_ERR_WIFI_IF: invalid interface
  *    - others: refer to error codes in esp_err.h
  */
esp_err_t esp_wifi_set_protocol(wifi_interface_t ifx, uint8_t protocol_bitmap);

and we must simple set to WIFI_PROTOCOL_LR ?

is it now supported in the actually ESP-IDF ?
i am little confuse now :mrgreen:

code snippet for setup to set LR available?


best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: Low Rate WIFI Protocol LR

Postby ESP_igrr » Wed Mar 29, 2017 10:27 am

Well this is basically one function call... so not sure what kind of snippet you need, but here's a piece of one of my applications:

Code: Select all

void init_wifi(wifi_mode_t mode)
{
    const uint8_t protocol = WIFI_PROTOCOL_LR;
    tcpip_adapter_init();
    ESP_ERROR_CHECK( esp_event_loop_init(event_handler, NULL) );
    wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
    ESP_ERROR_CHECK( esp_wifi_init(&cfg) );
    ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM) );
    ESP_ERROR_CHECK( esp_wifi_set_mode(mode) );
    wifi_event_group = xEventGroupCreate();

    if (mode == WIFI_MODE_STA) {
        ESP_ERROR_CHECK( esp_wifi_set_protocol(WIFI_IF_STA, protocol) );
        wifi_config_t config = {
            .sta = {
                .ssid = ap_name,
                .password = pass,
                .bssid_set = false
            }
        };
        ESP_ERROR_CHECK( esp_wifi_set_config(WIFI_IF_STA, &config) );
        ESP_ERROR_CHECK( esp_wifi_start() );
        ESP_ERROR_CHECK( esp_wifi_connect() );

        xEventGroupWaitBits(wifi_event_group, CONNECTED_BIT,
                            false, true, portMAX_DELAY);
        ESP_LOGI(TAG, "Connected to AP");
    } else {
        ESP_ERROR_CHECK( esp_wifi_set_protocol(WIFI_IF_AP, protocol) );
        wifi_config_t config = {
            .ap = {
                .ssid = ap_name,
                .password = pass,
                .ssid_len = 0,
                .authmode = WIFI_AUTH_WPA_WPA2_PSK,
                .ssid_hidden = false,
                .max_connection = 3,
                .beacon_interval = 100,
            }
        };
        ESP_ERROR_CHECK( esp_wifi_set_config(WIFI_IF_AP, &config) );
        ESP_ERROR_CHECK( esp_wifi_start() );
    }
}
Some variables are defined outside of the snippet, but hopefully you can figure it out.

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Low Rate WIFI Protocol LR

Postby rudi ;-) » Wed Mar 29, 2017 10:45 am

ESP_igrr wrote:Well this is basically one function call... so not sure what kind of snippet you need, but here's a piece of one of my applications:

Code: Select all

void init_wifi(wifi_mode_t mode)
{
    const uint8_t protocol = WIFI_PROTOCOL_LR;
    tcpip_adapter_init();
    ESP_ERROR_CHECK( esp_event_loop_init(event_handler, NULL) );
    wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
    ESP_ERROR_CHECK( esp_wifi_init(&cfg) );
    ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM) );
    ESP_ERROR_CHECK( esp_wifi_set_mode(mode) );
    wifi_event_group = xEventGroupCreate();

    if (mode == WIFI_MODE_STA) {
        ESP_ERROR_CHECK( esp_wifi_set_protocol(WIFI_IF_STA, protocol) );
        wifi_config_t config = {
            .sta = {
                .ssid = ap_name,
                .password = pass,
                .bssid_set = false
            }
        };
        ESP_ERROR_CHECK( esp_wifi_set_config(WIFI_IF_STA, &config) );
        ESP_ERROR_CHECK( esp_wifi_start() );
        ESP_ERROR_CHECK( esp_wifi_connect() );

        xEventGroupWaitBits(wifi_event_group, CONNECTED_BIT,
                            false, true, portMAX_DELAY);
        ESP_LOGI(TAG, "Connected to AP");
    } else {
        ESP_ERROR_CHECK( esp_wifi_set_protocol(WIFI_IF_AP, protocol) );
        wifi_config_t config = {
            .ap = {
                .ssid = ap_name,
                .password = pass,
                .ssid_len = 0,
                .authmode = WIFI_AUTH_WPA_WPA2_PSK,
                .ssid_hidden = false,
                .max_connection = 3,
                .beacon_interval = 100,
            }
        };
        ESP_ERROR_CHECK( esp_wifi_set_config(WIFI_IF_AP, &config) );
        ESP_ERROR_CHECK( esp_wifi_start() );
    }
}
Some variables are defined outside of the snippet, but hopefully you can figure it out.
sometime things so hard -
sometime things so easy


this snippet line declare all and do the job

Code: Select all

const uint8_t protocol = WIFI_PROTOCOL_LR;
thank you ivan! my tomatoes are away ;-)

will try ( weekend outside ) .. and let you know

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Who is online

Users browsing this forum: No registered users and 142 guests