Skip to content
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

configuration #8

Open
levichong opened this issue Feb 19, 2014 · 7 comments
Open

configuration #8

levichong opened this issue Feb 19, 2014 · 7 comments

Comments

@levichong
Copy link

Hi,

You are so amazing!

I have just bought a HLK-RM04.. now I am trying to work on my project with an Arduino Mega 2560. I have a few of doubts, hopefully you may assists me on this.

My testboard is something like this..is your library support this testboard and Arduino Mega 2560.or do I have to reconfigure it?

http://item.taobao.com/item.htm?spm=a230r.1.14.229.FWZEEF&id=36775715936

I have downloaded your library and try on my MEGA with the setup as below:

1656153_10203171335874759_2113967739_n

I try to run the ScanNetworks example but this is what I got from the serial monitor. Any Idea what is the issue?

capture

and regarding to your note "First and most important, MUST modify Arduino's serial driver to increase Rx buffer size or add hardware flow control support, because HLK-RM04 will try to output all data at once. If Rx buffer of your serial port is too small(or no hardware flow control support), you will lose those data."...Can you please guide me how to modify the arduino's serial driver?

Thanks.

Regards,
levichong

@ghost
Copy link

ghost commented Feb 20, 2014

Hi,levichong_,_I had the same problem before. Has nothing with Rx buffer
size to Can't switch into AT mode .

The following is my solution.
#4
Hope useful to you.

2014-02-20 1:47 GMT+08:00 levichong [email protected]:

Hi,

You are so amazing!

I have just bought a HLK-RM04.. now I am trying to work on my project with
an Arduino Mega 2560. I have a few of doubts, hopefully you may assists me
on this.

My testboard is something like this..is your library support this
testboard and Arduino Mega 2560.or do I have to reconfigure it?

http://item.taobao.com/item.htm?spm=a230r.1.14.229.FWZEEF&id=36775715936

I have downloaded your library and try on my MEGA with the setup as below:

[image: 1656153_10203171335874759_2113967739_n]https://f.cloud.github.com/assets/6507318/2209563/c8043894-998d-11e3-812c-589a8912e6e3.jpg

I try to run the ScanNetworks example but this is what I got from the
serial monitor. Any Idea what is the issue?

[image: capture]https://f.cloud.github.com/assets/6507318/2209458/556d6fea-998c-11e3-83d2-a2fd0c1249bf.JPG

and regarding to your note "First and most important, MUST modify
Arduino's serial driver to increase Rx buffer size or add hardware flow
control support, because HLK-RM04 will try to output all data at once. If
Rx buffer of your serial port is too small(or no hardware flow control
support), you will lose those data."...Can you please guide me how to
modify the arduino's serial driver?

Thanks.

Regards,
levichong

Reply to this email directly or view it on GitHubhttps://github.com//issues/8
.

@waythe
Copy link

waythe commented Feb 20, 2014

yes, same problem, same solution.

2014-02-20 10:35 GMT+08:00 commissar [email protected]:

Hi,levichong_,_I had the same problem before. Has nothing with Rx buffer
size to Can't switch into AT mode .

The following is my solution.
#4
Hope useful to you.

2014-02-20 1:47 GMT+08:00 levichong [email protected]:

Hi,

You are so amazing!

I have just bought a HLK-RM04.. now I am trying to work on my project
with
an Arduino Mega 2560. I have a few of doubts, hopefully you may assists
me
on this.

My testboard is something like this..is your library support this
testboard and Arduino Mega 2560.or do I have to reconfigure it?

http://item.taobao.com/item.htm?spm=a230r.1.14.229.FWZEEF&id=36775715936

I have downloaded your library and try on my MEGA with the setup as
below:

[image: 1656153_10203171335874759_2113967739_n]<
https://f.cloud.github.com/assets/6507318/2209563/c8043894-998d-11e3-812c-589a8912e6e3.jpg

I try to run the ScanNetworks example but this is what I got from the
serial monitor. Any Idea what is the issue?

[image: capture]<
https://f.cloud.github.com/assets/6507318/2209458/556d6fea-998c-11e3-83d2-a2fd0c1249bf.JPG

and regarding to your note "First and most important, MUST modify
Arduino's serial driver to increase Rx buffer size or add hardware flow
control support, because HLK-RM04 will try to output all data at once. If
Rx buffer of your serial port is too small(or no hardware flow control
support), you will lose those data."...Can you please guide me how to
modify the arduino's serial driver?

Thanks.

Regards,
levichong

Reply to this email directly or view it on GitHub<
https://github.com/chunlinhan/WiFiRM04/issues/8>

.

Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-35580812
.

@levichong
Copy link
Author

Hi commissar & waythe,

Thank for your reply. I have check the utilit/at_drv.cpp,modify the DEFAULT_BAUD1 and DEFAULT_BAUD2 values which is 38400. So I modify the baud rate of ScanNetworks example to be Serial.begin(38400); . But I'm still getting the same result. Is that anything else I need to modify?

sorry, im new to arduino.. Please correct me if I'm wrong.

I'm wondering if my testboard is compatible with this library since my board looks like this

capture

and I saw there is different kind of board which looks like this
capture

@waythe
Copy link

waythe commented Feb 24, 2014

I think both boards should be compatible with arduino because they are
designed for it. Suggest to check if the Serial pins of RM04 modules
(please refer to RM04 datasheet) are connected correctly to your arduino
board(at_drv.cpp has serial settings). and another attempting, this RM04
has 2 way to enter AT mode, if you failed to enter by Serial commands, why
not try use RST? connect RST pin of RM04(Pin10 in my memory), and connect
to an empty pin of your arduino, then set this to at_drv.cpp.
(USE_ESCAPE_PIN ESCAPE_PIN) and try again. wish you good luck.

And by the way, did you find any RM04 library that supports UDP?

2014-02-24 22:29 GMT+08:00 levichong [email protected]:

Hi commissar & waythe,

Thank for your reply. I have check the utilit/at_drv.cpp,modify the
DEFAULT_BAUD1 and DEFAULT_BAUD2 values which is 38400. So I modify the baud
rate of ScanNetworks example to be Serial.begin(38400); . But I'm still
getting the same result. Is that anything else I need to modify?

sorry, im new to arduino.. Please correct me if I'm wrong.

I'm wondering if my testboard is compatible with this library since my
board looks like this

[image: capture]https://f.cloud.github.com/assets/6507318/2246185/9dcb41a0-9d5f-11e3-9d62-3d1a25fa01ef.JPG

and I saw there is different kind of board which looks like this
[image: capture]https://f.cloud.github.com/assets/6507318/2246202/da3fc5ca-9d5f-11e3-8969-5a110d90f21e.JPG

Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-35890848
.

@ghost
Copy link

ghost commented Feb 25, 2014

Hi, levichong.
There is another place.You use a computer connected to the RM04
configuration page,note that the value of the "Serial Configure" in
configuration page£¬this is not in code.
Hope useful to you.

.

2014-02-24 22:29 GMT+08:00 levichong [email protected]:

Hi commissar & waythe,

Thank for your reply. I have check the utilit/at_drv.cpp,modify the
DEFAULT_BAUD1 and DEFAULT_BAUD2 values which is 38400. So I modify the baud
rate of ScanNetworks example to be Serial.begin(38400); . But I'm still
getting the same result. Is that anything else I need to modify?

sorry, im new to arduino.. Please correct me if I'm wrong.

I'm wondering if my testboard is compatible with this library since my
board looks like this

[image: capture]https://f.cloud.github.com/assets/6507318/2246185/9dcb41a0-9d5f-11e3-9d62-3d1a25fa01ef.JPG

and I saw there is different kind of board which looks like this
[image: capture]https://f.cloud.github.com/assets/6507318/2246202/da3fc5ca-9d5f-11e3-8969-5a110d90f21e.JPG

¡ª
Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-35890848
.

@chunlinhan
Copy link
Owner

Hi levichong,

Both commissar and waythe gave the best suggestions that could provide, hope your
RM04 could work fine with your Arduino now.

@naidykeen
Copy link

Hi , commissar
I have the same problem as you had in this #4 ,
and I really want to use this code to enter the wifi-client mode.
But I don't know what you mean " "Serial Configure" in configuration page".
Does it mention for datasheet of RM04 or something else?
Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants