Making an example sketch

I want to make a text tool beginner accessable and give a usable example of AT command handler Out and In with Q&R text in the word list. Perhaps I2C would be easier, but as a non-blocking plug-in that's incentive to ditch delays.
One thing is that the null-terminated words list has to fit in EEPROM.
And that each word in the list requires 3 bytes in RAM.
Other than thaaaat....

If the list averages 7 text chars per word, on an Uno you'd get 128 words max, on a Mega, 512. I think that AT sequences are shorter on average.

Is that enough, 100+ print/recognize words reduced to list positions?
No one has to fill the list space, but is it enough?

It is enough to run simple scripts or user commands to interact with a sketch, the variables and functions. An AT handler should have a fu;;-service (every error handled) state machine.

If we get Serial Terminal, this can support auto-fill. We need cursor control same as LCD's!

"enough" is always relative

100 AT commands is easily reached

Command Description
AT Attention - Checks if the module is responsive.
AT+CPIN Enter PIN - Unlocks the SIM card with a PIN.
AT+CREG Network registration status - Checks network status.
AT+CSQ Signal quality - Retrieves the current signal strength.
AT+COPS Operator selection - Manually or automatically selects the network operator.
AT+CMGF SMS message format - Sets the SMS message format (text or PDU mode).
AT+CMGS Send SMS - Sends a text message.
AT+CMGL List SMS messages - Lists received SMS messages.
AT+HTTPINIT HTTP initialize - Initializes the HTTP service.
AT+HTTPPARA HTTP parameter - Sets parameters for HTTP operations.
AT+HTTPACTION HTTP action - Executes an HTTP action (GET, POST, etc.).
AT+HTTPTERM HTTP terminate - Terminates the HTTP service.
AT+CGATT GPRS attach or detach - Attaches or detaches from the GPRS network.
AT+CIPSHUT TCP/IP stack shutdown - Shuts down the TCP/IP stack.
AT+CIPSTATUS TCP/IP status - Checks the status of the TCP/IP stack.
AT+CIPSTART Start a TCP/UDP connection - Initiates a TCP or UDP connection.
AT+CIPSEND Send data in single or multiple frames - Sends data over an established connection.
AT+CIPCLOSE Close TCP/UDP connection - Closes an established TCP or UDP connection.
AT+CIFSR Get local IP address - Retrieves the local IP address.
AT+CLTS Get local timestamp - Retrieves the local timestamp.
AT+CCLK Set or query real-time clock - Sets or queries the real-time clock.
AT+CSMP Set text mode parameters - Sets parameters for sending text messages.
AT+CMEE Enable or disable extended error reporting - Controls error reporting format.
AT+CNMI New message indication - Sets indication of new received messages.
AT+CMGR Read SMS message - Reads a specific SMS message.
AT+CMGD Delete SMS message - Deletes a specific SMS message.
AT+CUSD Unstructured Supplementary Service Data - Sends or receives USSD messages.
AT+CLIP Caller ID presentation - Enables or disables caller ID presentation.
AT+COLP Connection-oriented line presentation - Enables or disables connection-oriented line presentation.
AT+CLIR Calling line identification restriction - Enables or disables calling line identification restriction.
AT+COLR Connection-oriented line restriction - Enables or disables connection-oriented line restriction.
AT+CLVL Speaker volume level - Sets the speaker volume level.
AT+CMIC Microphone gain - Sets the microphone gain.
AT+CRSL Ringer level - Sets the ringer level.
AT+CALA Alarm - Sets or queries alarms.
AT+CALR Set or query auto-answer - Sets or queries auto-answer settings.
AT+CAMM Enable or disable automatic answering mode - Enables or disables automatic answering mode.
AT+CAOC Advice of charge - Enables or disables advice of charge settings.
AT+CAON Automatic answer on - Enables automatic answer.
AT+CAOF Automatic answer off - Disables automatic answer.
AT+CRC Cellular result codes - Enables or disables cellular result codes.
AT+CRS Cellular result codes - Enables or disables cellular result codes.
AT+IPR Set or query UART baud rate - Sets or queries the UART baud rate.
AT+IFC Set or query hardware flow control - Sets or queries hardware flow control.
AT+ICF Set or query framing format - Sets or queries framing format.
AT+GMM Request manufacturer identification - Requests the manufacturer identification.
AT+GSN Request product serial number identification - Requests the product serial number.
AT+GMR Request firmware version identification - Requests the firmware version.
AT+CPBW Write phonebook entry - Writes an entry to the phonebook.
AT+CPBR Read phonebook entry - Reads an entry from the phonebook.
AT+CSCA Service Center Address - Sets or queries the Service Center Address for SMS.
AT+CSMP Set text mode parameters - Sets parameters for sending text messages.
AT+CSAS Save settings in profile - Saves current settings in a profile.
AT+CRES Restore settings from profile - Restores settings from a saved profile.
AT+CR Cellular result codes - Enables or disables cellular result codes.
AT+CRC Cellular result codes - Enables or disables cellular result codes.
AT+CRF Cellular result codes - Enables or disables cellular result codes.
AT+CRS Cellular result codes - Enables or disables cellular result codes.
AT+CDIP Caller ID presentation - Enables or disables caller ID presentation.
AT+CCFC Call Forwarding Control - Controls call forwarding.
AT+CSCA Service Center Address - Sets or queries the Service Center Address for SMS.
AT+CSCB Select Cell Broadcast Messages - Configures settings for cell broadcast messages.
AT+CSDH Select Display Parameters of Cell Broadcast Messages - Configures display parameters for cell broadcast messages.
AT+CSDT Select Data Coding Scheme of Cell Broadcast Messages - Configures data coding scheme for cell broadcast messages.
AT+CSTA Call Status Change Indication - Controls indication of call status changes.
AT+CSQ Signal quality - Retrieves the current signal strength.
AT+CSSN Supplementary Services Notification - Controls supplementary services notification.
AT+CTA Tape Answer - Controls tape answer.
AT+CTFR Termination of File Retrieval - Terminates file retrieval.
AT+CTO Tape Operation - Controls tape operation.
AT+CUSD Unstructured Supplementary Service Data - Sends or receives USSD messages.
AT+CURC URC Reporting Control - Controls unsolicited result code (URC) reporting.
AT+CVHU Voice Hang-Up - Hangs up voice call.
AT+DDET Dual-Tone Multi-Frequency (DTMF) Detection Control - Controls DTMF detection.
AT+DLPF DTMF Low-Pass Filter Control - Controls DTMF low-pass filter.
AT+DDET Dual-Tone Multi-Frequency (DTMF) Detection Control - Controls DTMF detection.
AT+DR DTMF Response - Controls DTMF response.
AT+DS Dial Status - Reports dial status.
AT+DSC Dial Command String - Specifies command string for dialing.
AT+DSI Dial Status Indication Control - Controls dial status indication.
AT+DSR Dial Status Report - Reports dial status.
AT+DST Dial Status Termination - Terminates dial status reporting.
AT+DTMF Send DTMF Tone - Sends a DTMF tone during a voice call.
AT+EGCI Extended Cellular Information - Requests extended cellular information.
AT+ES Echo Suppression - Enables or disables echo suppression.
AT+ESC Escape Sequence Guard Time - Sets escape sequence guard time.
AT+ETBM Enhanced Transparent Bit Mode - Enables or disables enhanced transparent bit mode.
AT+EVRC Enhanced Variable Rate Codec - Configures enhanced variable rate codec.
AT+FCLASS Fax Communication Mode - Sets fax communication mode.
AT+FLO Flow Control Control - Controls flow control.
AT+FCLASS Fax Communication Mode - Sets fax communication mode.
AT+FAC Automatic Calling Control - Controls automatic calling.
AT+FBS Fax Basic State Control - Controls basic fax state.
AT+FBV Fax Binary File Viewer - Views binary fax file.
AT+FCC Fax Compression Control - Controls fax compression.
AT+FGF Fax Graphics Format Control - Controls fax graphics format.
AT+FLI Fax Local ID - Sets or queries local ID for fax.
AT+FLO Flow Control Control - Controls flow control.
AT+FMS Fax Modulation Scheme Control - Controls fax modulation scheme.
AT+FNS Fax Negative Response Control - Controls fax negative response.
1 Like

I remember doing AT with a modem but that was in the 90's.

Wih AT+ as a word, the rest are short. There are returns too. Maybe not the best example.

Maybe for a subset like sms management ?

I dunno about SMS. Is it used much with Arduino? Perhaps wifi?

You mean HTTP requests maybe?
Yes that could be of interest

Beginning chars each have a link to 1st in list however....

What "walks" through the list gets fed 1 char at a time as a tool by what uses it. With starting symbols in the text having meaning, those are read by the over-process and not handed to the list match tool. That's why the tool does not read data directly, that would narrow it.
The tool returns match status for every char submitted just so that it can be used for different situations. The over-process has to handle numbers, symbols and whatever is special then, the rules get made then. Using word-number combinations would be such a thing.

My older example was a led blink and Serial demo that let the user change the blink rate. It sank like a rock in Project Guidance.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.