I am using a Raspberry Pi 3B and a FONA 3G (Ting sim card). I am able to send a text from the FONA 3G to my smart phone and I can ping Adafruit.com with the GPRS. I have searched with no luck to find the proper method of exiting the AT mode to get back to the Raspberry command prompt. I will be using this setup to send me a text message at 8PM each day and then update my website SQL dB with the hourly data from that day at 12:01AM.
The only way that I have found to exit the 3G AT mode is to pull the USB plug from the Pi. There has to be an AT command to accomplish this. I then get [screen is terminating], just need to get the screen command to accomplish this.
Thanks
How to exit AT mode on the FONA 3G>>Pi CLI
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: How to exit AT mode on the FONA 3G>>Pi CLI
If you mean you want to end the `screen` session that talks to the FONA, hit control-A then 'k', then 'y'.
`screen` has to use what's called an 'out of band' control interface because it needs to be able to send most keyboard input to the process `screen` is talking to. Control-A is the "I want to talk to `screen` itself" signal, and the 'k' (case shouldn't matter) is the 'kill' command. You'll get a prompt asking if you really want to terminate the session, and hitting 'y' confirms that you do want to quit.
`screen` has to use what's called an 'out of band' control interface because it needs to be able to send most keyboard input to the process `screen` is talking to. Control-A is the "I want to talk to `screen` itself" signal, and the 'k' (case shouldn't matter) is the 'kill' command. You'll get a prompt asking if you really want to terminate the session, and hitting 'y' confirms that you do want to quit.
- mustang65
- Posts: 54
- Joined: Sat Jan 26, 2013 9:29 pm
Re: How to exit AT mode on the FONA 3G>>Pi CLI
Outstanding, worked perfectly... not sure where I got ctl+q
Thank you very much
Don
Thank you very much
Don
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: How to exit AT mode on the FONA 3G>>Pi CLI
Glad to hear that did the trick.
Control-Q would probably be from the `nano` screen editor, but 'nix programs have a wild range of out-of-band control options:
https://www.xkcd.com/378/
Control-Q would probably be from the `nano` screen editor, but 'nix programs have a wild range of out-of-band control options:
https://www.xkcd.com/378/
Please be positive and constructive with your questions and comments.