ESP8266 Developer Zone The Official ESP8266 Forum 2014-11-19T04:28:11+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=16 2014-11-19T04:28:11+08:00 2014-11-19T04:28:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=16&p=179#p179 <![CDATA[Re: ESP8266EX:Fix A Potential Error For Uart RX]]>
costaud wrote:
Does it work properly?

It works very nice! Thank you again.

Statistics: Posted by dexterash — Wed Nov 19, 2014 4:28 am


]]>
2014-11-19T02:46:56+08:00 2014-11-19T02:46:56+08:00 https://bbs.espressif.com:443/viewtopic.php?t=16&p=178#p178 <![CDATA[Re: ESP8266EX:Fix A Potential Error For Uart RX]]>
dexterash wrote:
costaud wrote:try this to set baudrate to 115200 bps.

Code:

#include "driver/uart_register.h"
void user_init(void)
{
   uart_div_modify(0, UART_CLK_FREQ / 115200);
   //clear rx and tx fifo,not ready
   SET_PERI_REG_MASK(UART_CONF0(0), UART_RXFIFO_RST | UART_TXFIFO_RST);
   CLEAR_PERI_REG_MASK(UART_CONF0(0), UART_RXFIFO_RST | UART_TXFIFO_RST);
        os_printf("set baudrate to 115200\n\r");
        os_printf("SDK version:%d.%d.%d\n", SDK_VERSION_MAJOR, SDK_VERSION_MINOR, SDK_VERSION_REVISION);


Thank you! It worked like a charm. I think the code can be reused for anyone trying to change the UART speed.

Don't forget to include the uart_register.h file.

Does it work properly?
If not ,you can try this one .
viewtopic.php?f=7&t=25&p=70#p70

Statistics: Posted by costaud — Wed Nov 19, 2014 2:46 am


]]>
2014-11-17T21:46:32+08:00 2014-11-17T21:46:32+08:00 https://bbs.espressif.com:443/viewtopic.php?t=16&p=169#p169 <![CDATA[Re: ESP8266EX:Fix A Potential Error For Uart RX]]>
costaud wrote:
try this to set baudrate to 115200 bps.

Code:

#include "driver/uart_register.h"
void user_init(void)
{
   uart_div_modify(0, UART_CLK_FREQ / 115200);
   //clear rx and tx fifo,not ready
   SET_PERI_REG_MASK(UART_CONF0(0), UART_RXFIFO_RST | UART_TXFIFO_RST);
   CLEAR_PERI_REG_MASK(UART_CONF0(0), UART_RXFIFO_RST | UART_TXFIFO_RST);
        os_printf("set baudrate to 115200\n\r");
        os_printf("SDK version:%d.%d.%d\n", SDK_VERSION_MAJOR, SDK_VERSION_MINOR, SDK_VERSION_REVISION);


Thank you! It worked like a charm. I think the code can be reused for anyone trying to change the UART speed.

Don't forget to include the uart_register.h file.

Statistics: Posted by dexterash — Mon Nov 17, 2014 9:46 pm


]]>
2014-11-17T12:52:22+08:00 2014-11-17T12:52:22+08:00 https://bbs.espressif.com:443/viewtopic.php?t=16&p=165#p165 <![CDATA[Re: ESP8266EX:Fix A Potential Error For Uart RX]]>
tinhead wrote:
tinhead wrote:
vowstar wrote:If use this patch, the sniffer interface (promiscuous mode) will have bug :| .


what a bug? what exactly is not working ?


ahh i see, already here is a problem with the sniffer example:

wifi_set_promiscuous_rx_cb(wifi_promiscuous_rx);

there is no callback data what so ever (i've changed the wifi_promiscuous_rx to show me the callback buffer, but there is nothing when linked with new libs). I did some debug work (replaced objects until callback was broken), the problem seems to be somewhere in one of these sources "esf_buf.c, pm.c, pp.c, wdev.c", so it s indeed related to the topic.


Yes, it not working.

Statistics: Posted by vowstar — Mon Nov 17, 2014 12:52 pm


]]>
2014-11-17T01:35:20+08:00 2014-11-17T01:35:20+08:00 https://bbs.espressif.com:443/viewtopic.php?t=16&p=164#p164 <![CDATA[Re: ESP8266EX:Fix A Potential Error For Uart RX]]>
tinhead wrote:
vowstar wrote:If use this patch, the sniffer interface (promiscuous mode) will have bug :| .


what a bug? what exactly is not working ?


ahh i see, already here is a problem with the sniffer example:

wifi_set_promiscuous_rx_cb(wifi_promiscuous_rx);

there is no callback data what so ever (i've changed the wifi_promiscuous_rx to show me the callback buffer, but there is nothing when linked with new libs). I did some debug work (replaced objects until callback was broken), the problem seems to be somewhere in one of these sources "esf_buf.c, pm.c, pp.c, wdev.c", so it s indeed related to the topic.

Statistics: Posted by tinhead — Mon Nov 17, 2014 1:35 am


]]>
2014-11-16T23:38:22+08:00 2014-11-16T23:38:22+08:00 https://bbs.espressif.com:443/viewtopic.php?t=16&p=163#p163 <![CDATA[Re: ESP8266EX:Fix A Potential Error For Uart RX]]>
dexterash wrote:
True, I'm not sure that RasPI supports 74880.

Could you, please, pinpoint the exact file to modify? We had a hard time finding it in the case of the IoT example.

Thank you!


try this to set baudrate to 115200 bps.

Code:

#include "driver/uart_register.h"
void user_init(void)
{

   uart_div_modify(0, UART_CLK_FREQ / 115200);
   //clear rx and tx fifo,not ready
   SET_PERI_REG_MASK(UART_CONF0(0), UART_RXFIFO_RST | UART_TXFIFO_RST);
   CLEAR_PERI_REG_MASK(UART_CONF0(0), UART_RXFIFO_RST | UART_TXFIFO_RST);

   os_printf("set baudrate to 115200\n\r");
       os_printf("SDK version:%d.%d.%d\n", SDK_VERSION_MAJOR, SDK_VERSION_MINOR, SDK_VERSION_REVISION);



#if ESP_PLATFORM
    user_esp_platform_init();
#endif

    user_devicefind_init();
#ifdef SERVER_SSL_ENABLE
    user_webserver_init(SERVER_SSL_PORT);
#else
    user_webserver_init(SERVER_PORT);
#endif
}


download setting,(choose dout if you use a dual flash instead of a quad one) :
dl_path.jpg



set uart speed to 115200
the print log is like below

Code:

rl岒nn瀕nn溾?bp寧lrlrlp騨??lbn鈢?巔?b岒nnl`nr帓抧忪抈p騨?r寽溾?bn鈢靗帋b岒nnn鈢ll帋b岒nnl`nr帓抧b?lr拻nb?l
set baudrate to 115200
SDK version:0.9.2
mode : sta(18:fe:34:97:f5:e8) + softAP(1a:fe:34:97:f5:e8)
add if0
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100

Statistics: Posted by costaud — Sun Nov 16, 2014 11:38 pm


]]>
2014-11-16T21:19:31+08:00 2014-11-16T21:19:31+08:00 https://bbs.espressif.com:443/viewtopic.php?t=16&p=162#p162 <![CDATA[Re: ESP8266EX:Fix A Potential Error For Uart RX]]>
vowstar wrote:
If use this patch, the sniffer interface (promiscuous mode) will have bug :| .


what a bug? what exactly is not working ?

Statistics: Posted by tinhead — Sun Nov 16, 2014 9:19 pm


]]>
2014-11-16T20:45:48+08:00 2014-11-16T20:45:48+08:00 https://bbs.espressif.com:443/viewtopic.php?t=16&p=161#p161 <![CDATA[Re: ESP8266EX:Fix A Potential Error For Uart RX]]> .

Statistics: Posted by vowstar — Sun Nov 16, 2014 8:45 pm


]]>
2014-11-15T02:52:22+08:00 2014-11-15T02:52:22+08:00 https://bbs.espressif.com:443/viewtopic.php?t=16&p=156#p156 <![CDATA[Re: ESP8266EX:Fix A Potential Error For Uart RX]]> As a product designer, although I find all the work here fascinating and beyond my capabilities as such, I really just want to use a stable, low cost unit like the esp device.
I don't really want to get involved in developing software for a device where there are so many more capable guys already doing it.
For me, and maybe others who are of a similar status, what would be ideal is the availability of straight forward single binaries that can be flashed into the unit.
(o.k. if necessary then several memory locations) For instance, the case of the uart patch.
I have applications for this device, I just want to keep life 'simple', as there other areas of my work that require devotion and attention.

I have found that up at 921K, things seem to be far more solid?

many regards

Dave Roffey

Statistics: Posted by Roffey — Sat Nov 15, 2014 2:52 am


]]>
2014-11-14T02:15:44+08:00 2014-11-14T02:15:44+08:00 https://bbs.espressif.com:443/viewtopic.php?t=16&p=150#p150 <![CDATA[Re: ESP8266EX:Fix A Potential Error For Uart RX]]>
Could you, please, pinpoint the exact file to modify? We had a hard time finding it in the case of the IoT example.

Thank you!

Statistics: Posted by dexterash — Fri Nov 14, 2014 2:15 am


]]>
2014-11-14T02:10:50+08:00 2014-11-14T02:10:50+08:00 https://bbs.espressif.com:443/viewtopic.php?t=16&p=149#p149 <![CDATA[Re: ESP8266EX:Fix A Potential Error For Uart RX]]>
dexterash wrote:
Hello

We're using 0.9.2 SDK. We're having no problems in running the AT demo, but any IoT demo prints "garbage". The module is an ESP01, connected to a RaspberryPI that's setup to monitor/send at 74880bps.
Any ideas?

Thank you!

does the Raspberry really support 74880bps?Try to set the speed to 115200bps in the SDK and run.

Statistics: Posted by costaud — Fri Nov 14, 2014 2:10 am


]]>
2014-11-11T06:26:26+08:00 2014-11-11T06:26:26+08:00 https://bbs.espressif.com:443/viewtopic.php?t=16&p=127#p127 <![CDATA[Re: ESP8266EX:Fix A Potential Error For Uart RX]]>
We're using 0.9.2 SDK. We're having no problems in running the AT demo, but any IoT demo prints "garbage". The module is an ESP01, connected to a RaspberryPI that's setup to monitor/send at 74880bps.
Any ideas?

Thank you!
esp_uart_output.png

Statistics: Posted by dexterash — Tue Nov 11, 2014 6:26 am


]]>
2014-10-31T11:25:42+08:00 2014-10-31T11:25:42+08:00 https://bbs.espressif.com:443/viewtopic.php?t=16&p=32#p32 <![CDATA[ESP8266EX:Fix A Potential Error For Uart RX]]>
fix the bug that sniffer example does not function

==============================================

Hello Everyone,
The previously released SDK for ESP8266EX inadvertently introduced a bug that may cause a little packet loss when transferring packet by Uart RX.
So for now,I will release the patch for this bug.Please download the patch from the attachment,and refer to the following steps:
Following Commands:
1.REPLACE LIBPHY.A IN SDK/LIB
2.ADD LIBPP.A TO SDK/LIB
3.MODIFY SDK/APP/MAKEFILE
4.ADD "-lpp \" AS BELOW
-lgcc
-lhal
-lpp
-lphy
-lnet80211
-llwip
-lwpa
-lmain
-lssc
-lssl

We sincerely apologize for the inconveniences caused. Please contact us, if you need more information.
FRM_ERR_PATCH.rar

Statistics: Posted by Espressif_Kelly — Fri Oct 31, 2014 11:25 am


]]>