LoRa module with hardware serial

Arduino, Seeeduino Serials and mutants. Share your problems and experence on arduino compatible board such as seeeduino/stalker, etc.

Moderators: lily.li, violet, salmanfarisvp

Post Reply
User avatar
webmaster2
Pre-kindergarten
Pre-kindergarten
Posts: 18
Joined: Fri Mar 25, 2016 4:32 pm

LoRa module with hardware serial

Post by webmaster2 » Sat Jul 07, 2018 12:50 am

Hi folks, I would want to use a LoRa module with a board with multiple serial like Mega but the library published by seeed studio seem to be concepted to use with only software serial.
I tried also to use the RadioHead "cousin" library (actually the seeed studio library seem to be a fork of radiohead itself), but no luck the LoRa module won't respond to my board.
Any ideas on how to put work the LoRa module with an hardware serial?

hong.jiang
Staff
Staff
Posts: 200
Joined: Tue Apr 17, 2018 11:03 am

Re: LoRa module with hardware serial

Post by hong.jiang » Tue Jul 10, 2018 8:31 am

Hi, we quick checked the library, https://github.com/Seeed-Studio/Grove_L ... 915MHz_RF/, if we have to use the hardware serial, we have to change the RHUartDriver.cpp and RH_RF95.cpp as well. We will try to verify the result later on. thanks.

Seeed techsupport team
Bill

ftp.192.168
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Sat May 18, 2019 11:54 pm

Re: LoRa module with hardware serial

Post by ftp.192.168 » Sun May 19, 2019 12:17 am

I am doing a project with a lora module and an arduino mega2560 which has more than one hardware serial. After going through the tutorial, I started to figure out a way to use one of the hardware serials on mega2560 instead of these software serials with my lora module. However, I found no way to do so as the official API currently does not support Hardware serial. Then I tried to modify some parts of the original official library, which did make possible to use hardware serials at the end. But the result came out with 2 separate libraries ---the original one to use software serial and the modified one to use hardware serial, which is not favorable for my project involving uses of both a mega2560 using hardware serial and a Uno using software serial. It's very inconvenient for me to frequently switch between two libraries while writing programs for two different boards. I am now requesting an official update to the existing API that adds the functionality to do the initialization with either a Hardware Serial or a Software Serial. I think this can help a lot of your customers who are doing project with lora modules. I have already added some minor modifications to the API : https://github.com/Windows10010/Grove_L ... _915MHz_RF (The one that can only initialize with a Hardware Serial)

Best Regards,
happy doing your lovely projects!
Billy Liang

bill.yu
Elementary-5
Elementary-5
Posts: 597
Joined: Mon Apr 02, 2018 11:05 am

Re: LoRa module with hardware serial

Post by bill.yu » Mon May 20, 2019 10:47 am

Hi Billy

I talked to software team, they will modify the library this week and keep you posted. thanks.

User avatar
webmaster2
Pre-kindergarten
Pre-kindergarten
Posts: 18
Joined: Fri Mar 25, 2016 4:32 pm

Re: LoRa module with hardware serial

Post by webmaster2 » Tue May 21, 2019 3:03 pm

I hope the modification in the LoRa library matches also with my problem with the Lotus Cortex-Mo+ and <RHutil/atomic.h>.

baozhu.zuo
Pre-kindergarten
Pre-kindergarten
Posts: 6
Joined: Fri May 04, 2018 8:59 am

Re: LoRa module with hardware serial

Post by baozhu.zuo » Tue May 21, 2019 4:33 pm

Hi Guys, Grove_LoRa_433MHz_and_915MHz_RF updated,
https://github.com/Seeed-Studio/Grove_L ... F/tree/dev
The dev branch already supports both HardwareSerial and SoftwareSerial, I also added support for the Cortex-M0+ platform, Welcome testing and feedback to us.

baozhu.zuo
Pre-kindergarten
Pre-kindergarten
Posts: 6
Joined: Fri May 04, 2018 8:59 am

Re: LoRa module with hardware serial

Post by baozhu.zuo » Tue May 21, 2019 4:45 pm


User avatar
webmaster2
Pre-kindergarten
Pre-kindergarten
Posts: 18
Joined: Fri Mar 25, 2016 4:32 pm

Re: LoRa module with hardware serial

Post by webmaster2 » Wed May 22, 2019 2:42 pm

Great job! thanks you!
it works! :mrgreen:

Post Reply