-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q:How to modify arduino's serial driver? #6
Comments
I don't modify Rx buffer size ,also can perform http request. But the recevied data is wrong.
and received data is
|
wow.. seems you're quite close to the success. problem may located at the request you've sent is not so correct. would you like to try set Connection:close? if keep-alive, I think it may need more http headers to judge if a request/response is finished. |
Oh sorry, I tried in http://httptool.duapp.com/ , keep-alive can also get a correct response. Then that's not the problem. Now need a way to debug the content that sent by rm04. Reading source codes...... |
Hi waythe, Here are my modifications for HardwareSerial Lib (for my mega2560): Only the size of Serial1 & Serial2 RX buffers is changed. If your sketch consumes RX data quickly (like WiFiWebClient sample), it would work fine |
Hi commissar, Did you use this patch? |
Thanks so much, I'll check it :). and what's the difference of the 2 UART? I asked the seller of my RM04, 2014-02-14 10:40 GMT+08:00 chunlinhan [email protected]:
|
Hi waythe, for scanwidi demo, it might be due to Serial RX buffer size. second UART makes you have ability to connect to the other host at the same time if you already use UART1 to connect to one host. It depends on your application. If your application just need to connect to one host My application needs to connect to 2 different hosts at the same time, so I need the second UART. |
hi,chunlinhan, Thanks for your reply. Although there is a problem, but the work in progress, sincerely thanks for your help. |
Hi @chunlinhan , I tried the HardwareSerial and it works! thanks so much! |
Hi waythe, Please change the following definition in utility/wl_definitions.h : |
Hi I have similar problem although mine only shows 5 ssids and I have my max set to 20? |
Thanks so much, I'll try so. 2014-03-05 12:34 GMT+08:00 chunlinhan [email protected]:
|
I have just started using this device on a UNO and when I try to use the library I get these errors: utility\at_drv.cpp:2207: error: 'Serial1' was not declared in this scope Forgive me if this error has been discussed before. Would appreciate any help given. |
Hi chasm907, Please check this: #3 |
Hi chunlinhan,
Thanks so much for the wifi lib, and I'm now tring to use it in my RM04.
I saw the most important tip: "MUST modify Arduino's serial driver to increase Rx buffer size or add hardware flow control support."
Sorry that I'm a newbie, could you please give some more introduction about how to modify the buffer size? and if not modified, can some simple program run? for example, send a get request to some http address.
BTW, I found a wifi module which may save time for connecting hardwares: http://item.taobao.com/item.htm?id=18633529918
http://item.taobao.com/item.htm?id=25481148978
Hope it helps to some guys.
The text was updated successfully, but these errors were encountered: