Documente Academic
Documente Profesional
Documente Cultură
Copyright 2010 connectBlue AB. The contents of this document can be changed by connectBlue AB without prior notice and do not constitute any binding undertakings from connectBlue AB. connectBlue AB is not responsible under any circumstances for direct, indirect, unexpected damage or consequent damage that is caused by this document. All rights reserved. All brand and product names are trademarks or service marks of their respective owners.
Page 1 of 25
connectBlue
Page 2 of 25
connectBlue
1 Table of Content
Table of Content Introduction Related Documents Data Mode and AT Mode Restoring Default Configuration Restoring Serial Settings Restoring Factory Settings Configuration and Operation Default Serial Settings Non-volatile settings LED Indication AT Commands over Air Radio Channels Searching for other devices Client or Server Remote peer ZigBee Mapping of Bluetooth Functionality Address Device Name Class of Device GAP Modes Inquiry Device Discovery Name Discovery Bonding / Pairing Paging / Scan Connection Radio Channel Profiles Security Power Saving Modes Examples Creating Serial Connections and Sending Data AT Command Syntax Command Line Format Data Types AT Command Reference Standard AT Commands AT Attention Command AT&F Restore to Factory Settings ATE Echo On/Off ATS2 Escape Character ATS General Settings S Register Manipulation Link Layer Commands AT*AGDM Discoverability Mode AT*AGCM Connectability Mode AT*AGPM Pairing Mode AT*AGSM Security Mode AT*AGFP Fixed PIN AT*AGLN Local Name AT*AGLC Local Cod AT*AGCH Channel Number AT*AGRSS RSSI Value AT*AGND Name Discovery AT*AGI Inquiry AT*AGBD Bonded devices AT*AGUB Unbond Data Mode Commands AT*ADDM Enter Data Mode AT*ADCP Connect to Serial Service AT*ADCC Close Serial Connection AT*ADCP Default Client Profile AT*ADSP Default Server Profile AT*ADNRP Number of Remote Peers AT*ADRDRP Read Default Remote Peer AT*ADWDRP Write Default Remote Peer Informational Commands AT*AILBA Read Device Address AT*AILTI Read Type Information AT*AILVI Reads Local Version Information Miscellaneous Commands AT*AMRS Serial Settings AT*AMET Escape Sequence Timing
Page 3 of 25
connectBlue
AT*AMWS Watchdog Settings AT*AMPM Power Saving Mode AT*AMMP Max output power AT*AMRFM Read Feature Mask AT*AMWFM Write Feature Mask AT*ACCB Configuration over Air Events ADCCO Connection Closed Model Compatibility
2 Introduction
The IEEE 802.15.4 serial port adapter is implemented to be as similar as possible to the Bluetooth serial port adapter regarding concepts and AT commands. Since many of the Bluetooth concepts are not directly mapped to the IEEE 802.15.4 technology some innovative thinking has been applied. The advantage is, of course, that both the Bluetooth and IEEE 802.15.4 serial port adapter can be used in the same customer application with very limited consideration. This also applies to the connectBlue AB WLAN serial port adapter. All of them are designed to be mechanically, electrically and functionally compatible. The section Model Compatibility describes the differences in the AT command sets between the IEEE 802.15.2 Serial Port Adapter and the Bluetooth Serial Port Adapter. This chapter gives an overview of the differences in functionality between the products.
Any connection that you have with the Serial Port Adapter can be used to enter AT mode. The procedure is the same as described above. By default, it is only possible to enter AT mode from the serial connection. This behavior can be changed using the AT command AT*ACCB Allow Configuration over Air.
Page 4 of 25
connectBlue
The serial settings are restored by applying a logic low signal on the Switch-1 input on the module during startup. If the module is mounted on a Module Adapter, this is done in the following way: Remove power from the Serial Port Adapter. Press and hold the default serial settings button on the Serial Port Adapter. Apply power to the Serial Port Adapter. Now the default serial settings and escape configuration are restored.
Page 5 of 25
connectBlue
5.9 ZigBee
The IEEE 802.15.4 Serial Port Adapter does not support ZigBee. It is not able to communicate with ZigBee devices.
Page 6 of 25
connectBlue
5.10.7 Name Discovery A name discovery procedure like the one supported in Bluetooth is implemented in the IEEE 802.15.4 Serial Port Adapter. 5.10.8 Bonding / Pairing The concept of bonding or pairing does not exist for the IEEE 802.15.4 Serial Port Adapter. Instead authentication and key generation is done for every new connection. 5.10.9 Paging / Scan Since the IEEE 802.15.4 Serial Port Adapter operates on one specific channel no paging is required to set up a connection. The IEEE Serial Port Adapter always has its radio in receiving mode when not transmitting. 5.10.10 Connection The IEEE 802.15.4 Serial Port Adapter implements a connection concept which provides reliable data transfer in both directions. It does not support any of the network topologies described in the IEEE 802.15.4. After a successful connection setup two IEEE Serial Port Adapters are connected. The device that initiated the connection setup is the master of the connection and is polling the slave. If either the master or slave stops receiving acknowledgements or data from the the remote device for a certain time the connection is considered lost. This corresponds to the Bluetooth link supervision timeout. 5.10.11 Radio Channel The Bluetooth radio uses frequency hopping over several channels while the IEEE 802.15.4 radio uses one specific channel. Compared to the Bluetooth serial port adapter the channel must be specified on the IEEE 802.15.4 serial port adapter. The channel is specified using the AT command AT*AGCH. The IEEE 802.15.4 serial port adapter. will never operate outside the channel specified by the write channel command. The adaptive frequency hopping supported in Bluetooth is not supported by IEEE 802.15.4. This means that the channel must be selected carefully so that other radio technologies are not disturbed by the IEEE 802.15.4 radio. 5.10.12 Profiles The IEEE 802.15.4 Serial Port Adapter currently implements the concepts of the Bluetooth Serial Port Profile.
5.11 Security
Security is based on authentication during connection establishment and encryption of transferred data. Data is encrypted using AES128 as described in the security section in the IEEE 802.15.2 specification. Authentication and key generation is designed as a four-way handshake with HMAC. Inspiration for the authentication and key generation procedure has been taken from the IEEE 802.11i standard. 5.11.0.1 Security Modes A device can be in two different security modes, security enabled (authentication and encryption turned on) and security disabled (authentication and encryption turned off). If at least one of the two devices wanting to communicate has security enabled, security will be used. Use the security mode command AT*AGMS to set the security mode for the device. 5.11.0.2 Bonding and Pairing Compared to the Bluetooth Serial Port Adapters the concepts of pairing and bonding do not exist. Instead authentication and key generation is done on every new connection when security is enabled.
Page 7 of 25
connectBlue
5.13 Examples
5.13.1 Creating Serial Connections and Sending Data
6 AT Command Syntax
6.1 Command Line Format
Each command line sent from the DTE to the DCE is made up of a prefix, body and terminator. As prefix for the Serial Port Adapter AT commands, only "AT" (ASCII 065, 084) and "at" (ASCII 097, 116) can be used. There is no distinction between upper and lower case characters. The body is a string of characters in the range ASCII 032-255. Control characters other than <CR> (carriage return; ASCII 013) and <BS> (back space; ASCII 008) in a command line are ignored. The terminator is <CR>. Commands denoted with a "*" character are extended AT commands, i.e. Serial Port Adapter specific AT commands. Multiple commands in the same command line are not supported. Each command has to be terminated by a <CR> before a new command can be sent. A command can either be: Read commands without parameters: AT<command>?<CR> Write commands without parameters: AT<command><CR> Read and write commands with parameters: AT<command>=<parameter1>, parameter2>, ...<parameterN><CR> Responses are sent back to the host and can be any of the following: Successful final message: <CR><LF>OK<CR><LF> Successful intermediate/final message with parameters follows an OK mes-sage in some commands. In these cases the OK message works as a con-firm message only. <CR><LF><result_response>:<parameter1>, parameter2>, ...<parameterN> Error message: <CR><LF>ERROR<CR><LF>
Page 8 of 25
connectBlue
7 AT Command Reference
7.1 Standard AT Commands
7.1.1 AT Attention Command Syntax AT<CR> Description Attention command determining the presence of a DCE, i.e. the OZSPA311. Description Successful response Error response
7.1.2 AT&F Restore to Factory Settings Syntax AT&F<CR> Responses <CR><LF>OK<CR><LF> <CR><LF>ERROR<CR><LF> Description This command instructs the unit to set all parameters to their defaults as specified by the manufacturer. Description Successful response Error response
7.1.3 ATE Echo On/Off Syntax ATE<echo_on><CR> Parameters echo_on Type Enumerator Description Set whether or not the Serial Port Adapter shall echo incoming characters. Description 0 = Unit does not echo characters during command state and online command state. 1 = Unit echoes characters during command state and online command state. Responses <CR><LF>OK<CR><LF> <CR><LF>ERROR<CR><LF> Description Successful write response Error response
7.1.4 ATS2 Escape Character Syntax ATS2=<esc_char><CR> ATS2? Parameters esc_char Responses <CR>>LF>esc_char<CR><LF>OK<CR><LF> <CR><LF>OK<CR><LF> <CR><LF>ERROR<CR><LF> Type Integer Description Write the escape character used to switch the unit from data mode to AT mode. Read escape character Description 0...255 (Note: The escape sequence will be the value repeated three times. I.e. "///".) Description Successful read response Successful write response Error response
Page 9 of 25
connectBlue
7.1.5 ATS General Settings S Register Manipulation Syntax ATS<register>=<value><CR> ATS<register>? Parameters register value Responses <CR><LF>value<CR><LF>OK<CR><LF> <CR><LF>OK<CR><LF> <CR><LF>ERROR<CR><LF> Register 2000 Description Poll interval in milliseconds. The poll interval determines how often the master of a connection polls its slaves. A longer interval increases the latency of the connection but decreases the radio activity on the channel when no data is transferred on the connection. Min 100 Max 2000 Default 100 Type Integer Integer Description Write to a general settings S register. Read from a general settings S register. Description Any of the registers described below. Valid values for each register is listed below. Description Successful read response Successful write response Error response
2100
Trimming interval seconds. The trimming interval determines how often the internal clocks are calibrated. Min 0 Max 60 Default 30
Page 10 of 25
connectBlue
7.2.2 AT*AGCM Connectability Mode Syntax AT*AGCM=<mode>,<store><CR> AT*AGAM?<CR> Parameters mode store Type Enumerator Enumerator Description Write connectability mode. Read connectability mode Description 1 = Non-connectable 2 = Connectable (default) 0 = Do not store 1 = Store (will store between reboots) Description Successful read response Successful response Error response
7.2.3 AT*AGPM Pairing Mode Syntax AT*AGPM=<mode>,<store><CR> AT*AGPM?<CR> Parameters mode store Type Enumerator Enumerator Description Write pairing mode. Read pairing mode Description 1 = Non-pairable mode 2 = Pairable mode (default value) 0 = Do not store 1 = Store (will store between reboots) Description Successful read response Successful response Error response
Dummy implementation for compatibility with Bluetooth SPA. Hence, the command exists but it does not affect the behavior of the 802.15.4 SPA.
7.2.4 AT*AGSM Security Mode Syntax AT*AGSM=<mode>,<store><CR> AT*AGSM?<CR> Parameters mode Type Enumerator Description Write security mode. Read security mode Description 1: Link level authentication and encryption disabled. (default) 2: Link level authentication and encryption enabled. store Enumerator 0 = Do not store 1 = Store (will store between reboots)
Page 11 of 25
connectBlue
7.2.5 AT*AGFP Fixed PIN Syntax AT*AGFP=<pin>,<store><CR> AT*AGFP?<CR> Parameters pin store Type String Enumerator Description Write PIN code. Read PIN code. Description The PIN code is a string of one to sixteen al-phanumerical characters.It is recommended to use a pin code of at least eight characters of mixed type, e.g. "12w35tg7".The default value is "0". 0 = Do not store 1 = Store (will store between reboots) Description Successful read response Successful response Error response
7.2.6 AT*AGLN Local Name Syntax AT*AGLN=<name>,<store><CR> AT*AGLN?<CR> Parameters name store Type String Enumerator Description Write local name Read local name Description Max 32 characters. The default name is "cB-OZS311". 0 = Do not store 1 = Store (will store between reboots) Description Successful read response Successful response Error response
7.2.7 AT*AGLC Local Cod Syntax AT*AGLC=<cod>,<store><CR> AT*AGLC?<CR> Parameters cod store Type Integer Enumerator Description Write the Class Of Device code Read the Class Of Device code Description Class of device 0 = Do not store 1 = Store (will store between reboots) Description
Responses
Page 12 of 25
connectBlue
Dummy implementation for compatibility with Bluetooth SPA. Hence, the command exists but it does not affect the behavior of the 802.15.4 SPA.
7.2.8 AT*AGCH Channel Number Syntax AT*AGCH=<channel>,<store><CR> AT*AGCH? Parameters channel Type Integer Description Write IEEE 802.15.4 channel number. Read IEEE 802.15.4 channel number. Description Min = 11 Max = 26 Default = 21 0 = Do not store 1 = Store (will store between reboots) Description Successful read response Successful response Error response
store
Enumerator
7.2.9 AT*AGRSS RSSI Value Syntax AT*AGRSS? Description This request returns the current received signal strength, RSSI, for the connection between the Serial Port Adapter and the remote device identified by the 'dev_addr' parameter.Note that this command can only be used on an exist-ing connection that has been established using the AT*ADCP command and only while still in AT mode.The RSSI is measured in steps of 1 dBm with an uncertainty of 5dBm. Type Integer Description RSSI value. Where value is dBm value + 128, i.e. 128 = 0dBm. If no connection is established, the response is an error response. Description Successful response Error response
Parameters rssi
7.2.10 AT*AGND Name Discovery Syntax AT*AGND=<address><CR> Parameters address name Responses Type String String Description Retrieves the device name of a remote device given its device address
Description Address of remote device. String of maximum 32 characters (8-bit ASCII). Description
Page 13 of 25
connectBlue
<CR><LF>*AGND:<name><CR><LF>OK<CR><LF> <CR><LF>ERROR<CR><LF>
7.2.11 AT*AGI Inquiry Syntax AT*AGI=<type>,<length>, <max_no_of_devices_to_find><CR> Parameters type length max_no_of_devices_to_find adddess cod Responses <CR><LF>*AGI:<address>,<cod> <CR><LF>OK<CR><LF> <CR><LF>ERROR<CR><LF> Model cB-OZS311 Constraint Returned class of device (cod) is always 0. Type Enumerator Integer Integer Address Integer Description 2: General inquiry Maximum amount of time specified before the inquiry is halted. Range: 1 - 48 Time = inquiry_length*1.28 secondsRange in seconds: 1.28-61.44 0: No limitation on the number of devices to find. 1-255: Maximum number of devices to find. Device address of a found device. Always 0. For compatibility with Bluetooth SPAs Description Performs an inquiry procedure to find any discoverable devices in the vicinity.
Description This response is sent for every found device. Successful response. Error message.
7.2.12 AT*AGBD Bonded devices Syntax AT*AGBD?<CR> Parameters no_of_bonded_devices address name_valid name Responses <CR><LF>*AGBD:<no_of_devices><CR><LF>OK<CR><LF> *AGBDE:<dev_addr>,<name_valid>,<name> <CR><LF> <CR><LF>ERROR<CR><LF> Model cB-OZS311 Constraint Bonding / pairing does not exist on the IEEE 802.15.4 Serial Port Adapter. This command is kept for backwards compatibility with the Bluetooth Serial Port Adapters. The last device that the Serial Port Adapter was connected to will be listed. Description Read bonded devices. Type Integer Address Enumerator String Description Number of bonded devices. Address of bonded device Always 1. Device is bonded but its device name is not valid. Always the empty string "" Description Successful response This response is sent for every found device. Error response
Page 14 of 25
connectBlue
7.2.13 AT*AGUB Unbond Syntax AT*AGUB=<address><CR> Parameters address Responses <CR><LF>OK<CR><LF> <CR><LF>ERROR<CR><LF> Model cB-OZS311 Constraint cB-OZS311 Bonding / pairing does not exist on the IEEE 802.15.4 Serial Port Adapter. This command is kept for backwards compatibility with the Bluetooth Serial Port Adapters. Type Address Description This command un-bonds a previously bonded device.
Description Device address of the device subject to un-bond. Description Successful response Error response
7.3.2 AT*ADCP Connect to Serial Service Syntax AT*ADCP=<address>, <profile>, <server_channel>, <must_be_master><CR> Parameters address profile server_channel must_be_master handle Responses <CR><LF>*ADCP:<handle><CR><LF>OK<CR><LF> <CR><LF>ERROR<CR><LF> Model cB-OZS311 Constraint server_channel and must_be_master parameters are ignored. These are kept for backwards compatibility with the Bleutooth Serial Port Adapter. Type Address Enumerator Integer Enumerator Integer Description Connect to a serial service enabled on a remote device. This request is used to connect to profiles based on the Serial Port Profile. The connection shall be used in data mode. When the host connects to a service on a remote device it implicitly registers to receive the Serial_Connection_Data_Mode_Closed event.
Description Address of remote device 0 = Serial profile Reserved reserved Connection handle. The connection handle is used when closing the connection. Description Successful response Error response
Page 15 of 25
connectBlue
7.3.3 AT*ADCC Close Serial Connection Syntax AT*ADCC=<handle><CR> Parameters handle Responses <CR><LF>OK<CR><LF> <CR><LF>ERROR<CR><LF> Type Integer Description Close an existing connection.
Description The connection handle identifies the connection. Description Successful response. Error response.
7.3.4 AT*ADCP Default Client Profile Syntax AT*ADDCP=<profile>,<store> AT*ADDCP?<CR> Parameters profile Type Enumerator Description Write Client Profile. Read Client Profile. Description Client profile. 0: Serial Port Profile 255: No profile (default) 0 = Do not store 1 = Store (will store between reboots) Description Successful write response. Successful read response. Error response.
store
Enumerator
Responses <CR><LF>OK<CR><LF> <CR><LF>*ADDCP:<role_and_profile><CR><LF>OK<CR><LF> <CR><LF>ERROR<CR><LF> Model cB-OZS311 Constraint Only Serial Port Profile or No profile supported.
7.3.5 AT*ADSP Default Server Profile Syntax AT*ADDSP=<profile>,<store> AT*ADDCP?<CR> Parameters profile Type Enumerator Description Write Server Profile. Read Server Profile. Description Client profile. 0: Serial Port Profile (default) 255: No profile 0 = Do not store 1 = Store (will store between reboots) Description Successful write response. Successful read response. Error response.
store
Enumerator
Page 16 of 25
connectBlue
Model cB-OZS311
7.3.6 AT*ADNRP Number of Remote Peers Syntax AT*ADNRP=<nr_of_peers>,<store><CR> AT*ADNRP? Parameters nr_of_peers store Type Integer Integer Description The number of remote peers. 0 is default. 0 = Do not store 1 = Store (will store between reboots) Description Successful read response Successful response Error response Description Write number of remote peers. Read number of remote peers.
7.3.7 AT*ADRDRP Read Default Remote Peer Syntax AT*ADRDRP=<peer_id><CR> Parameters peer_id address connection_scheme Type Integer Address Integer Description Read the configuration for a remote peer with the given id. Description Any value between 0 and mximum remote peers supported. Address of remote peer. This parameter is a bit field. Bit 0 is the least significant bit. Each bit is defined as follows: Bit 0: Connect on data. Try to connect to default remote peer on data traffic. Bit 1: Always connected. Always try to be connected to the default re-mote peer when in data mode. Bit 2-15: Reserved for future use. Advanced: Bit 16-23: Always connected period.This field can be used to define the period for connection attempts for always connected (Bit 1 set). If not set or set to 0 then the default period 10s is used. Time in seconds. Bit 24-31: Reserved for future use. 1: Every time a remote device connects to the selected DefaultServerProfile, update the re-mote peer device address to the device address of the connecting device. The new remote peer device address will be stored in the startup database. Only one of all the remote peers can use this feature. 0: Do not update the remote peer device ad-dress on incoming connections. A string with a user defined name of the peer. Max length is 32 characters. Description Successful response
update_on_incoming
Enumerator
name Responses
String
Error response.
Compared to the Bluetooth Serial Port Adapters connect to name or easy connect are not supported.
Page 17 of 25
connectBlue
7.3.8 AT*ADWDRP Write Default Remote Peer Syntax AT*ADWDRP= <peer_id>, <address>, <connection_scheme>, <store_on_incoming>, <name>, <store> Parameters peer_id address connection_scheme Type Integer Address Integer Description Any value between 0 and maximum remote peers supported. Address of remote peer. This parameter is a bit field. Bit 0 is the least significant bit. Each bit is defined as follows: Bit 0: Connect on data. Try to connect to default remote peer on data traffic. Bit 1: Always connected. Always try to be connected to the default re-mote peer when in data mode. Bit 2-15: Reserved for future use. Advanced: Bit 16-23: Always connected period This field can be used to define the period for connection attempts for always connected (Bit 1 set). If not set or set to 0 then the default period 10s is used. Time in seconds. Bit 24-31: Reserved for future use. 1: Every time a remote device connects to the selected DefaultServerProfile, update the re-mote peer device address to the device address of the connecting device. The new remote peer device address will be stored in the startup database. Only one of all the remote peers can use this feature. 0: Do not update the remote peer device ad-dress on incoming connections. A string with a user defined name of the peer. Max length is 32 characters. 0 = Do not store 1 = Store (will store between reboots) Description Successful response Error response Description Write configuration for a remote peer.
update_on_incoming
Enumerator
name store
String Integer
Compared to the Bluetooth Serial Port Adapters external connect, connect to name or easy connect are not supported.
Type Address
Page 18 of 25
connectBlue
7.5.1 AT*AILTI Read Type Information Syntax AT*AILTI?<CR> Parameters major_id minor_id Responses <CR><LF>*AILTI:<major_id,<minor_id>> <CR><LF>OK<CR><LF> <CR><LF>ERROR<CR><LF> Error response Description Read the type of device. Description 3 = IEEE 802.15.4 Serial Port Adapter 1 = OZSPA311 Description Successful response.
7.5.2 AT*AILVI Reads Local Version Information Syntax AT*AILVI?<CR> Parameters manufacturer spa_sw_version mac_driver_version lm_version radio_manufacturer Responses <CR><LF>*AILVI:<manufacturer>,<spa_sw_version>, <mac_driver_version>,<lm_version>, <radio_manufacturer><CR><LF>OK<CR><LF> <CR><LF>ERROR<CR><LF> Error response Description Read local version information Type String String String String String Description Serial Port Adapter manufacturer. Serial Port Adapter software version. MAC driver version. Reserved, always "". IEEE 802.15.4 hardware manufacturer. Description Successful response
Page 19 of 25
connectBlue
baud_rate
Enumerator
Baud rate 1 = 300 2 = 1200 3 = 2400 4 = 4800 5 = 9600 6 = 19200 7 = 38400 8 = 57600 (default) 1 = 8 data bits (default) 2 = 7 data bits 1 = 1 bit (default) 2 = 2 bits 1 = None (default) 2 = Odd 3 = Even Flow control settings 1 = cts/rts (default) 2 = None 0: The Serial Port Adapter will not change serial settings until after the next power cycle. 1: The Serial Port Adapter will change serial settings after it has sent the OK to the Host. 0 = Do not store 1 = Store (will store between reboots)
flow_control
Enumerator
change_after_confirm store
Enumerator Enumerator
Responses <CR><LF>*AMRS:<baud_rate>, <data_bits>, <stop_bits>, <parity>, <flow_control> <CR><LF>OK<CR><LF> <CR><LF>OK<CR><LF> <CR><LF>ERROR<CR><LF> Model cB-OZS311 Constraint
Non standard or special baud rates not supported. Maximum baudrate is 57600.
7.6.2 AT*AMET Escape Sequence Timing Syntax AT*AMET=<min_time_before>, <min_time_after>,<store><CR> AT*AMET? Parameters min_time_before Type Integer Description Write the escape sequence timing settings. For an escape sequence to be valid, a period of no data activity is required before and after the escape sequence. This command reads the minimum time of no data activity required before and after the escape sequence. Read the escape sequence timing settings. Description Min 50 Max 5000ms 1000 default Min 50 Max 5000ms 1000 default 0 = Do not store 1 = Store (will store between reboots) Description
min_time_after
Integer
store
Integer
Responses
Page 20 of 25
connectBlue
7.6.3 AT*AMWS Watchdog Settings Syntax AT*AMWS=<write_timeout>, <inactivity_timeout>, <connect_timeout>, <disconnect_reset>, <reset>, <store><CR> AT*AMWS?<CR> Parameters write_timeout Type Integer Read the watchdog settings Description Time in seconds before SPA disconnects when a write operation fails. 0: Disabled (default value) > 0: Timeout in seconds Time in seconds before SPA disconnects if no activity. 0: Disabled (default value) > 0: Timeout in seconds Max connection time in seconds before a connection is terminated. 0: Disabled (default value) > 0: Timeout in seconds 0: Disabled (default value) 1: An SPA enabled as a server will reset on a terminated connection. If set to 1 the SPA will reset immediately. All other parameters will be ignored. 0 = Do not store 1 = Store (will store between reboots) Description Successful read response Description Write the watchdog settings. The watchdog functionality will disconnect from a remote peer if one of the given conditions are met.
inactivity_timeout
Integer
connect_timeout
Integer
7.6.4 AT*AMPM Power Saving Mode Syntax AT*AMPM=<power_mode>,<store><CR> AT*AMPM? Parameters power_mode Type Enumerator Description 1 = Online 2 = Sleep mode (default) 3 = Stop mode 0 = Do not store 1 = Store (will store between reboots) Description Successful read response Description Write the power saving mode Read the power saving mode
store
Enumerator
Responses <CR><LF>*AMPM:<power_mode><CR><LF>OK<CR><LF>
Page 21 of 25
connectBlue
<CR><LF>OK<CR><LF> <CR><LF>ERROR<CR><LF>
7.6.5 AT*AMMP Max output power Syntax AT*AMMP=<max_power>,<store><CR> AT*AMPM? Parameters max_power Type Integer Description Actual output power in dBm + 128. 255: Use the highest output power supported by the Serial Port Adapter as the maximum output power (default value) 0 = Do not store 1 = Store (will store between reboots) Description Successful read response Successful response Error response Description Write max output power setting. Read max output power setting.
store
Enumerator
7.6.6 AT*AMRFM Read Feature Mask Syntax AT*AMRFM=<mask_id><CR> Parameters mask_id mask_value Responses <CR><LF>*AMRFM:<mask_id>,<mask_value> <CR><LF>OK<CR><LF> <CR><LF>ERROR<CR><LF> Model cB-OZS311 Constraint Dummy implementation for compatibility with Bluetooth SPA. Error response Type Integer Integer Description Read feature mask. This command is deprecated and only kept for compatibility reasons.
7.6.7 AT*AMWFM Write Feature Mask Syntax AT*AMWFM=<mask_id>,<mask_value>, <store><CR> Parameters mask_id mask_value Responses <CR><LF>OK<CR><LF> Type Integer Integer Description See AT*AMRFM Read Feature Mask command See AT*AMRFM Read Feature Mask command Description Successful response Description Write feature mask. This command is deprecated and only kept for compatibility with the Bluetooth module.
Page 22 of 25
connectBlue
Error response
7.6.8 AT*ACCB Configuration over Air Syntax AT*ACCB=<allow>,<store><CR> AT*ACCB? Parameters allow store Type Enumerator Enumerator Description Write allow configuration over air. Read allow configuration over air. Description 0 = AT mode can only be entered from the serial interface (default) 1 = AT mode can be entered from both the serrial interface and any connected remote peer 0 = Do not store 1 = Store (will store between reboots) Description Successful read response Successful write response Error response
7.7 Events
7.7.1 ADCCO Connection Closed Syntax *ADCCO:<connection_handle>,<reason><CR><LF> Description A connection to a remote device has been disconnected. This event will only occur when a connection established using AT*ADCP is disconnected when the device is still in AT mode.
Value Hanlde identifying the connection. 0: Disconnected by command 1: Disconnected by link loss 255: Reason unknown
8 Model Compatibility
The following table describes what AT commands and events that differ from the IEEE 802.15.4 SPA compared to the Bluetooth SPA. Command AT AT* ATZ AT&F ATS2 ATS ATE Supported in OZSPA311 Yes No No No Yes Yes Yes New compared to Bluetooth SPA. General settings registers are used for configuration of some parameters. Comment
Page 23 of 25
connectBlue
AT*AGDM AT*AGCM AT*AGPM AT*AGSM AT*AGCH AT*AGND AT*AGDD AT*AGI AT*AGB AT*AGUB AT*AGBD AT*AGFP AT*AGLN AT*AGLC AT*AGGMSR AT*AGCMSR AT*AGMSP AT*AGRSS AT*ARSS AT*ADDM AT*ADCP AT*ADCC AT*ADDCP AT*ADDSP AT*ADMRP AT*ADNRP AT*ADRDRP AT*ADWDRP AT*ADIT AT*ADWM AT*AILBA AT*AILVI AT*AILTI AT*AMRS AT*AMSIT AT*ACF AT*ACACF AT*ACDF AT*ACCB
Yes Yes Yes Yes Yes Yes No Yes No Yes Yes Yes Yes Yes No No No Yes No Yes Yes Yes Yes Yes No Yes Yes Yes No No Yes Yes Yes Yes No No No No Yes Not all baud rates supported by the Bluetooth SPA is supported by the IEEE 802.15.4 SPA. Only basic connection schemes are supported. Only basic connection schemes are supported. Only the serial port profile concept is supported by the IEEE 802.15.4 SPA. Only the serial port profile concept is supported by the IEEE 802.15.4 SPA. Class of device concept does not exist for the IEEE 802.15.4 SPA. Dummy implementation for backward compatibility with the Bluetooth SPA. Bonding/Pairing concept do not exist for the IEEE 802.15.4 SPA. Dummy implementation for backward compatibility with the Bluetooth SPA. Bonding/Pairing concept do not exist for the IEEE 802.15.4 SPA. Dummy implementation for backward compatibility with the Bluetooth SPA. New compared to Bluetooth SPA. Bonding/Pairing concept do not exist for the IEEE 802.15.4 SPA. Dummy implementation for backward compatibility with the Bluetooth SPA.
Page 24 of 25
connectBlue
AT*AMPM AT*AMMP AT*AMET AT*AMBOR AT*AMBO AT*AMLO AT*AMSF AT*AMWS AT*AMDS AT*AMLP AT*AMWFM AT*AMRFM *ADCCO
No Yes No No No No No Yes No No Yes Yes Yes Dummy implementation for backward compatibility with the Bluetooth SPA. Dummy implementation for backward compatibility with the Bluetooth SPA.
Page 25 of 25