-
Notifications
You must be signed in to change notification settings - Fork 217
Forced to sleep mode after a while? #41
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
Comments
Have you tried to remove all the |
If i am reading the nano 33 ble board layout correctly, the 3.3v trace is "created" from the mpm3610 ic. The output pins from mpm3610 ic are generating the N$16 trace which is by default connected to 3.3v pin. But as i said at the beginning my configuration is "cutted 3.3V jumper". Therefore, i can say that the 3.3v pin is not actually 3.3v but unregulated battery voltage. Please correct me if i am reading in a wrong way the board layout. Both nina module and lsm9ds1 sensor can be powered up to 3.6v regarding their datasheets. So, i am powering the board with max 4.2 down to 3.2. Powering the board with 3.2v the device is quite unstable but i can not say the same for 4.2v. |
Yes, i just try without any Serial method. Still the same error: Error 22 (0x16): GATT CONN TERMINATE LOCAL HOST -----------------UPDATED-------------
The strange thing is that the device advertise its self again (code line 2), which means that Enabling
which is missing when the connection goes down from range issues or central device crash or forced shut down. |
@alexisicte ok, so do you think this is a duplicate of issue #33 now? |
Hi, |
@pnndra , @sandeepmistry Many thanks for your input and advices. |
Hello,
Configuration: Arduino ble 33 nano, cutted 3.3V jumper in order to supply with 3.3v direct to 3.3pin, soldered vusb jumper in order to have serial debug and re-flushing.
Here is my sketch:
In short the sketch creates services and characteristics and advertises it self. When a central is connected, i write some values on the characteristics. I am using nrf connect android app to debug the procedure.
Everything running smoothly expects when waiting for a central for "too long". I cannot specify "too long" time period yet, but i can say that is about 20-30 minutes.
When this time period exceeds, while my device still adverises and seeking for a connection, despite the fact that the device is discoverable and connectable, the central device cannot read its services. More specifically, it seems that the connection is made (i am assuming that because the application let me to disconnect from the device ) and tries to read the advertised services without a success. After a few seconds the connection is lost.
Bellow are the logs from the application. The error is "Error 22 (0x16): GATT CONN TERMINATE LOCAL HOST"

I am assuming that this is not a bug from the application because the same thing happens with other apps too. I believe that the device is going to sleep mode by default (i have to prove that by measuring the current). Despite that, the "library" should interact with radio signal and quit from sleep mode, if this is the case.
Does anyone experienced something similar?
Is it true that the device is forced to sleep mode? and if yes why central's cannot read its services?
P.S. I know that i have to power with 3.3v to 3.3v pin, but i am connecting 3.3v pin direct to lipo battery (4.2-3.2 V). I dont have a clue that this is the problem.
---------------UPDATE--------------
When the device is attached to usb the above problem never occurs.
The text was updated successfully, but these errors were encountered: