It’s the same circuit I used for the E32, I just replaced the modem.
I tried putting the voltmeter tips on M0 to test MODE_3_SLEEP but I noticed it never goes to zero.
In addition, I noticed that the RX and TX pins are considered -1 !!
I’ve done other tests.
I have added two lines in your function in the library:
���Avvio ModemTX
TX pin from call: -1
RX MIC ---> -1
TX MIC ---> -1
AUX ---> 5
M0 ---> 16
M1 ---> 15
Init AUX pin!
Init M0 pin!
Init M1 pin!
Begin ex
Begin Software Serial
Begin
MODE NORMAL!
AUX HIGH!
Complete!
Init TX OK
Setto in SLEEP il modem:
MODE SLEEP CONFIG!
AUX HIGH!
Complete!
Hi Fabio,
you must try to do a simple circuit on a breadboard and check your devices.
But If I remember you were forced to make a particular circuit due to resistance problems on your devices.
At the end on the gateway (two modems one for TX and one for RX) I use SoftwareSerial for Transmitter modem and HardwareSerial on Receiver so I can use the Buffer.
But I have a strange problem, sometimes it happens that I no longer receive messages.
I have to put the E220 modem on a TTL / USB converter and with the eByte program do a “Reset” by clicking on the “Param Reset” button then put it back on the PCB and it works ….
Do you know why? Is there some sort of reset in your library? Because when it happens it’s boring, I have to unsolder the modem, reset it and then resolder it.
But if this happens in production, I would have to go to the field and it’s really hard to do the work on site.
Maybe I found: I have atmega2560 normally in sleep and when I receive a message the modem wakes me up the MCU.
I raise the message and go back to sleep for 10 seconds, then wake up and transmit.
During the 10 second sleep I do not send the modem to sleep and perhaps this is the problem, because during these 10 seconds there are other communications in the air and I see that the aux pin goes low so it receives them.
If, on the other hand, I put the modem to sleep then it no longer blocks.
I believe that if the modem sends a message to the MCU but the MCU is not responding the modem could hang.
Now I have done some short tests, I will do longer and more thorough tests.
In your opinion, can this really be?
P.S.: I use SoftwareSerial not HardwareSerial
Hi Fabio,
but if you send a WOR message with a different address the device doesn’t wake.
If you want, call me, and we try to better understand.
Bye Renzo
OK it’s good.
Before I call you I do some more tests so I have more documentation.
One question though: why is the resetModule () function half commented in the library?
Hi Fabiooo,
I recheck the documentation, no existing reset process, so I think you can try to set all parameters with configuration, but I think It isn’t the same solution.
Bye Renzo
I have wrote you on TG, please check.
Now we have see that the M0 and M1 pin was not declared… We have to do it?
Furthermore we have put in platformio.ini:
If you don’t declare in the constructor M0 and M1 the library can’t switch in the various modes.
So you can stay only in a single mode with GND or 3.3v on the LoRa M0 M1 pins.
Bye Renzo
Autore
Post
Visualizzazione 13 filoni di risposte
Devi essere connesso per rispondere a questo topic.
Mantenere un repository, un sito o un forum è come prendersi cura di un giardino - richiede costante attenzione e cura per farlo prosperare. Se sei un abile giardiniere (o programmatore!) e vuoi aiutarci a far fiorire il nostro sito, saremmo felici di averti nel nostro team! Cerchiamo anche scrittori talentuosi e moderatori per il nostro forum per aiutarci a far crescere la nostra comunità. Se sei interessato a unirti a noi, non esitare a contattarci per farci sapere in che modo puoi contribuire!
Sei un appassionato di elettronica o programmazione? Condividi la tua conoscenza con gli altri, scrivi un semplice tutorial o come fare un grande progetto Contattami. share_your_ideas@mischianti.org
The content displayed on this website is protected under a CC BY-NC-ND license. Visitors are prohibited from using, redistributing, or altering any content from this website for commercial purposes, including generating revenue through advertising. Any unauthorized use is a violation of the license terms and legal action may be taken against individuals or entities found to be in violation.
You must also provide the link to the source.
Per offrire le migliori esperienze, utilizziamo tecnologie come i cookie per memorizzare e/o accedere alle informazioni del dispositivo. Acconsentire a queste tecnologie ci permetterà di elaborare dati come il comportamento di navigazione o gli ID unici su questo sito. Non acconsentire o ritirare il consenso può influire negativamente su determinate funzionalità e funzioni.
Functional
Sempre attivo
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Per offrire le migliori esperienze, utilizziamo tecnologie come i cookie per memorizzare e/o accedere alle informazioni del dispositivo. Acconsentire a queste tecnologie ci permetterà di elaborare dati come il comportamento di navigazione o gli ID unici su questo sito. Non acconsentire o ritirare il consenso può influire negativamente su determinate funzionalità e funzioni.
Functional
Sempre attivo
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.