UBLOX LARA support #7
Comments
Hi @ninora Thanks for your interest and tests on the library. As I currently don't have I suggest you try with the original MKRGSM Library to be sure everything is OK with the hardware / firmware first. This library, which targets the different boards from It's also beneficial if you can post the hardware design, or if confidential, at least the connection between Hi @tcpipchip, could you please help here by testing |
Hi @ninora I only have here the LISA U200 and SARA G350, but looks that are compatible. When you said "when replacing the SARA", means removing completely and the replacing by the LARA ? Can you put a SNIFFER (a UART-USB) in parallel, to see if the AT commands reaching/backing to/from your LARA ? |
Another note is that you have to uncomment the following line to use
also check your hardware then add to
|
Thanks for the tips, activating the reset pin did the trick and both modules started responding to AT commands. MKR GSM 1400 LARA on MKR GSM 1400 lookalike custom board When tested with either MKRGSM or GSM_Generic with GSMWebClient.ino, it connects to GSM but obviously GPRS fails as I assume it suppose to connect to LTE:
I am not sure how to take it from here, I did find several chapters discussing LTE with examples but have no experience in making it work as part of this library. |
Glad it's basically working for you now.
I'd appreciate your contribution and will contact you via PM. As you know, there are too many different boards / modules on the market, I already bought lots of them to test and provide library's support, but won't never have enough. I believe GPRS were tested and working for this library by co-author Miguel ( @tcpipchip ), who is a U. professor and an expert in hardware / Ublox. Check
I think Miguel can guide you with GPRS / LTE. Be patient. Cheers, |
@tcpipchip Hi Miguel, I wonder if you can help getting the LARA to use the library and have LTE connectivity with the GSMClient constructor. Thanks! |
It's very helpful if you can use SerialGSMPassthrough example and issue AT commands, according to the Ublox' AT Commands Examples, to know which sets of commands is working OK. Then it's much easier for us to add the LARA Modem's support. As you know, without the real LARA, everything we think is just assumption / hypothesis. We'll work together by updating the code, then you'll make the real test. I'm going to invite you to my Private Discussion repo, and will proceed from there, as the lengthy / private discussion is not appropriate here. |
Can you very if that AT COMMANDS works on LARA ? https://www.twilio.com/docs/iot/supersim/cellular-modem-knowledge-base/ublox-supersim |
Thanks @tcpipchip Have a look especially at LARA-R203 / LARA-R211 Cat-1/2G/3G
|
Thanks guys, this worked as expected. InitializationConfigure APN Check the GPRS attachment status Save config Activate GPRS Ensure the GPRS connection is up Request IP address PingAT+UPING="8.8.8.8" HTTP GETReset profile Server name Port TLS encryption Perform GET, store respons Read file containing respons 2.53.14.197" |
that´s good! |
Hi @ninora I suggest you test all the features similar to those of SaraR4, using AT commands, to see if LaraR2 behaves as expected. Then let us know if everything is OK, we can write the new Modem files for
specifically for this LARA R2 modem for you to test. Will start this within this week. |
Hi @ninora The new release GSM_Generic v1.6.0 has just been published. Your contribution, by requesting enhancement to support Please have more thorough tests and report any issue here. Best Regards, Release v1.6.0
|
Thanks for the credit! I wasn't able to connect using v1.6.0, below please find a shortened version of the output (same results with SECRET_GPRS_APN="ltedata.apn" and SECRET_GPRS_APN = "", normally I don't need to send a value): GPRSPing.ino output:Starting GPRSPing on SAMD MKRGSM1400 OK OK +UMWI: 0,1 +UMWI: 0,2 +UMWI: 0,3 +UMWI: 0,4 AT+CREG? AT+UCALLSTAT=1 [GSM] GSM::begin: _gsmData._state = GSM_IDLE AT+UPSD=0,1,"" AT+UPSD=0,2,"" Not connected |
Try to disable assyncronous message of modem, it´s a AT command, i dont remember which at moment! +UMWI: 0,2 +UMWI: 0,3 +UMWI: 0,4 |
Looking into disabling asynchronous messages, I will report later, in the meanwhile, it looks as if the module get connected to LTE from reboot using the set of commands below and from there ping works as expected, so perhaps we don't need gsmAccess.begin? Makes sense? Configure APN Check the GPRS attachment status Save config Activate GPRS Ensure the GPRS connection is up |
Checkout my email regarding remote access to LARA's board. |
Makes sense. Will have a look, try that and update code for you to test. It'll be messy for a while, so I'll upload the tempo code later on private repo until all tests are OK. |
New private version seem to work fine!I will post the ping sketch output below and tomorrow will do more tests. GPRSPing.ino output
|
Modem_LaraR2_Extra_Generic.h fixed in v1.6.1-r2 |
Hi @ninora , @tcpipchip The new release GSM_Generic v1.6.1 has just been published. Best Regards, Release v1.6.1
|
Hi @ninora Glad everything is OK for you now. We've enjoyed working with you to solve the problem so far. I'm closing this issue and please open new one if you get bugs / new requests. Best Regards, BTW, Many thanks for your MKR GSM1400 you contributed. It'll certainly be helpful in next issue / project. |
nice!!!! |
I am not sure if this is a bug or not supported case, here are the details.
I am using a custom board designed with MKR GSM 1400 in mind so for any purpose it is acting as the original MKR. The board works well with MKRGSM library and the original SARA-U201 module. however, when replacing the SARA with a UBLOX pin compatible LARA-R281 02B-00 module, I can't make it to work with GSM_Generic.
My end goal is to operate the LARA in LTE mode.
I have tested the hardware and it works fine, AT commands can be sent and even GSM Begin works using the original library so I believe the hardware is not the issue.
After trying several GSM_Generic examples I can only get to the point where the Serial says
[GSM] begin: UART baud = 115200
and there it stops.So I tested GSM_Generic on an original Arduino MKR GSM 1400 and got the following repeated output:
I should add that the lib didn't work also on my custom board with SARA
Anyways thanks for the library and of course any hint is mostly appreciated.
The text was updated successfully, but these errors were encountered: