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

wifirm04 with arduino UNO #10

Open
skorphil opened this issue Feb 23, 2014 · 21 comments
Open

wifirm04 with arduino UNO #10

skorphil opened this issue Feb 23, 2014 · 21 comments

Comments

@skorphil
Copy link

Hi, Thanks for this library!
Is it a way to connect HLK-RM04 to arduino UNO? It seems like it doesn't work on serial port. Can I use softwareserial somehow?

@skorphil
Copy link
Author

I Just looked at your comments.
But I still have a question - how to make it work with alsoftserial??

@skorphil
Copy link
Author

I tried to use softwareserial and modified RM04 library as here:
https://drive.google.com/folderview?id=0BwHknyUrLaIUSG84eENEeHpMdk0&usp=sharing
And got the message in serial debug
121Echo No resp
121Echo No resp
121Echo No resp
121Echo No resp
121Echo No resp
121Echo No resp
484Can't switch to at mode
121Echo No resp
121Echo No resp
121Echo No resp
121Echo No resp
121Echo No resp
121Echo No resp
968Can't switch to at mode
000000

Then i Tried to change word softwareserial to altsoftserial and i still recieve
121Echo No resp
121Echo No resp
121Echo No resp
121Echo No resp
121Echo No resp
121Echo No resp
484Can't switch to at mode

Please! How do I need to modify Library to use it with altsoftserial and how i can change the baud of altsoftserial(maybe the problem is in baudrate)?

@skorphil
Copy link
Author

I Changed
#define DEFAULT_BAUD1 19200
#define DEFAULT_BAUD2 19200

And I changet settings in board web interface - Serial configure = 19200,8,n,1
And still no resp.
I connected uart TX(21) to pin9 on arduino
UartRX(20) to pin8 on arduino.

I didn't change alsoftlibrary(i look in config folder and known cards, so find 8,9 pins there as default pins for altsoftserial)

@ghost
Copy link

ghost commented Feb 25, 2014

hi skorphil .
Have you been run successfully the example of alsoftlibrary on arduino UNo without RM04 ?In fact, I met the same problem with you. I use SoftSerial also without success.

@skorphil
Copy link
Author

hi, commissar.
Well, i'm not really sure. Because i can't check the outputs of altsoftwareserial pins. serial writes "AltSoftSerial Test Begin' but it doesn't mean anything...

@skorphil
Copy link
Author

skorphil commented Mar 1, 2014

Comissar, if you'll find the solution please let me know.

@ghost
Copy link

ghost commented Mar 3, 2014

hi, skorphil.
Recent days, I also are trying .If you have a result, I will post here.

@skorphil
Copy link
Author

I tried this with arduino Leonardo and leonardo broked after uploading the test sketch "scan for wifi" Ahaha! Hope rewriting bootloader will help. Also I tried it with Arduino Mega without success... no resp or simillar errors. It seems like it's time to buy yun and dont waste time with this stupid HLK-RM04. ))))

@ghost
Copy link

ghost commented Mar 20, 2014

hi, skorphil.
I try to use HLK-rm04 with serial port and use SoftSerial output debugging information succeeded.
The library is a good library, I saw his code in detail.I didn't use the library,and write code by self

If not think in terms of cost, I will choose yun.

@sonicgadgets
Copy link

Sounds like you forgot the escape pin?

@obri
Copy link

obri commented Apr 8, 2014

Exactly... thank you for the library ana support
El 07/04/2014 20:15, "sonicgadgets" [email protected] escribió:

Sounds like you forgot the escape pin?

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

@skorphil
Copy link
Author

skorphil commented Apr 8, 2014

Yes, it seems like this! But, where is escape pin and how can I use it? Sorry, I didn't find related info in google. Escape pin on uno or onrm04?

@obri
Copy link

obri commented Apr 8, 2014

pin 10 in hlk-rm04 goes with pin 21 in arduino mega. I think you can change
the arduino pin in at_drv.cpp (it's a configuration file of the library, or
so...)
El 08/04/2014 01:44, "skorphil" [email protected] escribió:

Yes, it seems like this! But, where is escape pin and how can I use it?
Sorry, I didn't find related info in google. Escape pin on uno or onrm04?

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

@skorphil
Copy link
Author

skorphil commented Apr 8, 2014

Thank you very much! I'll try it. So, I need to connect escape pin(10) of rm04 to arduino digital port(which can be changed in library).

@SebastiaanTenHoorn
Copy link

Skorphil did you have any succes? Iam trying to get it up and running with my Arduino UNO but iam stuck at this moment.

@sonicgadgets
Copy link

Sebastian since your using uno and it only has 1 serial port make sure you change your serial in at-drv file. Modify both serial variables to point to serial and not serial 1 and 2

@SebastiaanTenHoorn
Copy link

Hi! Thanks for your reply so fast. The problem is that i do not quite know how i achieve this. The at-drv file is new to me.

Verstuurd vanaf mijn iPhone

Op 9 apr. 2014 om 15:35 heeft sonicgadgets [email protected] het volgende geschreven:

Sebastian since your using uno and it only has 1 serial port make sure you change your serial in at-drv file. Modify both serial variables to point to serial and not serial 1 and 2


Reply to this email directly or view it on GitHub.

@sonicgadgets
Copy link

It may be easier to buy an arduino mega 2560 since it has more than one port for serial. Also this library comes configured to use that board. It will compile effortlessly.

@SebastiaanTenHoorn
Copy link

Mmm it doesnt feel right to buy a whole new board haha! You cant walk me trough the proces by any chance?

@sonicgadgets
Copy link

Also keep in mind you won't be able to debug via hardware serial if you use uno. That's the main reason I would use mega 2560 $15 on eBay. You could slightly modify your code later so it will run on uno after you code it and debug it. Basically using mega 2560 only for debugging purposes. If you really wanted to use the UNOs chip.

@SebastiaanTenHoorn
Copy link

Alright you have me sold!

2014-04-09 23:39 GMT+02:00 sonicgadgets [email protected]:

Also keep in mind you won't be able to debug via hardware serial if you
use uno. That's the main reason I would use mega 2560 $15 on eBay. You
could slightly modify your code later so it will run on uno after you code
it and debug it. Basically using mega 2560 only for debugging purposes. If
you really wanted to use the UNOs chip.

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

Sebastiaan ten Hoorn
Student Communication and Multimedia Design

Studentnummer: 0855374
Klas: CMD3D
Telefoonnummer: +316 11327334

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