Aller au contenu

Filament ABS


Arduino Bluetooth > AT Command

Messages recommandés

Bonjour, je cherche a envoyer des commandes AT à un téléphone android via le module BT HC-05 ou HC-06, cependant je ne trouve rien de concret pour m'aiguiller et encore moins la commande AT adéquate :

Les commandes AT sont générique je crois, donc c'est les même pour les smartphones...?

Si quelqu'un a déjà pratiqué ce genre d'opération je lui serait super reconnaissant de m'aider.....

EDIT : PRécision je veux envoyer des commandes AT vers le tel pas l'inverse...

Modifié (le) par Djam

Partager ce message

Lien à poster
Partager sur d’autres sites

Bonjour, bon ben j'avance doucement, mais pas surement!

Je trouve vraiment rien de concret sur l'envois de commande AT par BT, j'y arrive pas le terminal avec le tel branché en USB, mais j'arrive pas à trouver sans fil!

Bluetooth serial devices

rfcomm               /dev/rfcomm         216    0-255           serial
s3c2410_serial0 - UART0 - Bluetooth (ttySAC) 

Liste commande AT sur Galaxy S2 (je pense que touts les tel android utilise ces commandes)

ATA                             - Answer
ATD                             - Dial ...
ATE                             - Enable command echo (0=disable, 1=enable)
ATH                             - ??? Hangup/Hook
ATO                     ??      - Return to Online Data Mode
ATQ                             - Result code supression 
ATS                             - Command line termination?     S[3,4,5]
ATV                             - Command response format (0=Numerical, 1=Verbose)
ATX                             - Result code format for CONNECT        Mfg!
ATZ                             - Reset Modem (...)
ATl                             - 
ATm                             - 

AT&C                    ?       - (Received line signal detector) Behaviour
AT&D                    ?       - (Data terminal ready) Behaviour
AT&F                    ?       - Restore Factory Default Configuration

AT\Q                    ?       - Local flow control selection

AT+CCHO                         - Open Logical Channel
AT+CCID                         - SIM Serial Number
AT+CCLK                         - Realtime clock
AT+CFUN         *               ? This command selects the level of  functionality <fun> in the MS. Only some values of<fun> are  allowed (see Defined values).

AT+CGACT                        - 
AT+CGATT                        - 
AT+CGAUTO                       - 
AT+CGCLASS                      - 
AT+CGCMOD                       - 
AT+CGDATA                       - 
AT+CGDCONT                      - 
AT+CGDSCONT                     - 
AT+CGEQMIN                      - 
AT+CGEQNEG                      - 
AT+CGEQREQ                      - 
AT+CGEREP       *               - Packet Domain event reporting
AT+CGLA                 E       - Generic UICC Logical Channel access
AT+CGMI                         - Request manufacturer identification 
AT+CGMM                         - Request model identification
AT+CGMR                         - Request revision identification
AT+CGPADDR                      - 
AT+CGQMIN                       - 
AT+CGQREQ                       - 
AT+CGREG        *               - GPRS network registration status                              AT+CGREG=2;+CGREG?
AT+CGSMS                        - 
AT+CGSN         *               - Request product serial number identification (IMEI)

AT+CHUP                         - Hangup call
AT+CIMI         *               - Request international mobile subscriber identity (IMSI)
AT+CLAC                         - List all available AT commands
AT+CMEE                         - Report mobile termination error (+CME) verbosity mode (0,1,2)
AT+CMUX                         - Set multiplexing protocol control channel mode(s)
AT+CNMI         *               - This command selects the procedure,  how receiving of new SMS from network is indicated to the TE
AT+COPS                         - 
AT+CRLA                 ?       - Restricted UICC Logical Channel access
AT+CRLP         *               - Radio link protocol
AT+CSQ                          - Signal Quality
AT+CUAD                         - UICC Application Discovery

AT+FCLASS                       - Select mode: put TA into mode: (data, fax, voice etc.)
AT+IPR                          - This command specifies the data rate  at which the DCE will accept commands. The full range of data rate  values may be reduced dependent on HW or other criteria.
AT+TRACE        *               ? (see: +XSIO) This command controls the  trace; it allows selecting the trace mode, method and the trace data  transfer rate. 

AT+XAACOPS                      ?
AT+XAPP         *       !       - Known buffer overflow in Iphone 4S  (unsigned code execution):  Probably used to send executable code  (application) to BB! 
AT+XBANDSEL                     ? This command allows to switch from  automatic band selection to selection of one or more (up to four) bands.
AT+XCALLSTAT    *               ? Set reporting call status: This  command allows enabling / disabling the reporting voice call status on  DTE using an unsolicited result code +XCALLSTAT:  <call_id><stat>.
AT+XCEER                        ?
AT+XCGCLASS                     ?? Changing the startup MS Mobile class ("B", "CC")
AT+XCONFIG              +       ?? This command allows the configuration of DLCs (Data Logical Channels). (see +XMUX)
AT+XCOPS                        ? Display of the most adapted name of  the network.The command parameter <type> allows requesting the  name type which shall be displayed.
AT+XCSP                         ? This command reads the customer  service profile (CSP) from the SIM. The CSP indicates the services that  are user accessible.
AT+XCSPAGING                    ? This command allows enable/disable the  circuit switching paging. The command has an effect only when used  before +COPS or +CGATT.     
AT+XCSSMS                       ? Initiate Resending of SMS over CS if GPRS Fails
AT+XCTMS                        ? This command allows to set the TTY/CTM  behavior. The selected setting is stored also in NVRAM and remains  valid also after switch off the mobile
AT+XDATACHANNEL                 ? This command configures the channel over which CSD or GPRS data shall be routed.
AT+XDLCTEST                     ?
AT+XDNS                         ? This command enables / disables a  dynamic DNS (Domain Name Service) request before context activation.
AT+XDTMF                        ? This command allows setting the value  of SEND DTMF user setting that controls whether the DTMF tone generation  on request from SIM-TK is allowed.
AT+XEER                         ?
AT+XEONS                        ? displays the list of available  networks with details like long operator name, short operator name,  MCC/MNC, Long EONS name, Short EONS name for each PLMN.
AT+XFDOR                        ? Trigger Fast Dormancy
AT+XFDORT                       ? Set Fast Dormancy Timer
AT+XGAUTH                       ? This proprietary command allows to  enter the type of authentication for a user-name (using a password) for  the specified PDP context
AT+XGENDATA                     ? This command requests the software version and generation data.
AT+XHOMEZR                      ? This Set command enables and disables  the home zone change event reporting. If the reporting is enabled; the  MT returns the unsolicited result code +XHOMEZR: <label> whenever  the home zone is changed.
AT+XHSDUPA                      ? This command configures the mode of  HSDPA and HSUPA (by changing the appropriate dynamic NVRAM parameter)
AT+XL1SET                       ? Call the L1-specific function
AT+XLEMA                        ??? Emergency number list (Ofono)
AT+XLIN                         ? This command sets the current line.
AT+XLOG         *       !       - Known buffer overflow in Iphone 4S  (unsigned code execution) ? This command allows displaying the  exceptions stored in NVRAM on DTE. The MS-error LOG is contained in a  response code formatted as +XLOG:  <num>,<code>,<file>,<line>,<count> or an  other appropriate format as specified below.
AT+XMER                         ? Enables or disables sending of  unsolicited result codes from the MS to the DTE when the battery charge  level or the radio signal level crosses a defined threshold.
AT+XMUX                 +       ? Multiplexing mode: This command configures the GSM 07.10 multiplexing protocol. 
AT+XNOTIFYDUNSTATUS             ??? (LG) This command is used to notify DNS setting status
AT+XNVMMCC                      ?
AT+XNVMPLMN                     ?
AT+XPINCNT                      - This command reads the remaining attempts for SIM PIN, SIM PIN2, SIM PUK and SIM PUK2.        
AT+XPOW                         ? This command sets the powersaving-mode.
AT+XPROGRESS                    ? This command allows enabling /  disabling the display of an unsolicited result code + XPROGRESS:  <cin> (call number indication), <status> on DTE while a call  is in progress.
AT+XRAT                         ? This command forces the selection of the Radio Access Technology (RAT) in the protocol stack.
AT+XREDIAL                      ? Enabling of automatic redialing if the called party was busy.
AT+XREG                 !       ? Involved in the iPhone unlock hacks...
AT+XRXDIV       *               ? This command is used to allow external  control of the Rx Diversity feature during runtime.            
AT+XSETCAUSE                    ?
AT+XSIMSTATE                    ? Display SIM and Phonelock Status  (write at+xsimstate=1 to turn on, at+xsimstate=0 to turn off) 
AT+XSIO         *               ? This command allows the configuration  of the modem-interface (AT), trace-interface, IrDA interface and  MUX-interface by setting the variant number.
AT+XSMS                         ? Detection of Signal DR_SM_FINISHED_IND
AT+XSVM                         ? This command allows to set the voice mail server number.
AT+XSYSTRACE                    ?
AT+XTESM                        ?
AT+XTRACECONFIG                 ?
AT+XUBANDSEL                    ?
AT+XUICC                        - Checks for UICC Card, whether the current SIM is a 2G or 3G sim.
AT+XVTS                         -


Configuration BT ?

AT+XSIO         This command allows the configuration of the modem-interface (AT), 
                trace-interface, IrDA interface and MUX-interface by setting the 
                variant number.

                • Set command allows the configuration of the modem-interface (AT), trace-interface, IrDA interface and
                  MUX-interface by setting the variant number. The set variant number becomes active only after a reset
                • Read command allows seeing which is the current variant and which is the requested variant. A star marks
                  the active variant.
                • Test command returns the possible and customizable variants.

Defined values:
                <requested>     requested variant, which may be in range 0-255
                <active>        currently active variant, which may be in range 0-255
                <AT-interface>  NULL, UART0, …, UARTn
                <Trace>         NULL, UART0, …, UARTn
                <MUX>           1-x
                <IrDA>          NULL, UART0, …, UARTn


+XSIO: [SP62XX_es1] Variant=0:  AT= USART2 USB[03]; BB-Trace= USB1; 3G-Trace= USB2; OCT= USB6;                                                                  
+XSIO: Variant=1 :  AT= USART2 USB[03]; BB-Trace= TADO0; 3G-Trace= TADO1; OCT= USB1;                                                                            
+XSIO: Variant=2 :  AT= USART2 USB[01]; BB-Trace= BG0; 3G-Trace= BG1;           
+XSIO: Variant=3 :  AT= USB[01]; BB-Trace= USART2; 3G-Trace= USIF5; OCT= USB6;  
+XSIO: Variant=4 :  AT= USART2 USB[01]; BB-Trace=/bbt/0; 3G-Trace=/3gt/0;


EDIT > HA HA ! initialisation HFP (Hand Free Profile) : (Euh ou HSP??? voir plus bas!)

Handsfree initiation command "AT+BRSF=20\r"

PS il faut que toutes les commandes soit envoyé avec \r à la fin!

Question Comment passer le Module HC-05 en HFP plutot que en SPP...

EDIT II > Définir UUID pour configurer


However, in order to achieve the handsfree functionality and understand the AT commands that I'm sending, the connected phone needs to be over the handsfree profile which uses the UUID: "0000111f-0000-1000-8000-00805F9B34FB"




Headset Profile (HSP)

This is the most commonly used profile, providing support for the popular Bluetooth headsets to be used with mobile phones. It relies on SCO audio encoded in 64 kbit/s CVSD or PCM and a subset of AT commands from GSM 07.07 for minimal controls including the ability to ring, answer a call, hang up and adjust the volume


Hands-Free Profile (HFP)

Currently in version 1.7, this is commonly used to allow car hands-free kits to communicate with mobile phones in the car. It commonly uses Synchronous Connection Oriented link (SCO) to carry a monaural audio channel with continuously variable slope delta modulation or pulse-code modulation, and with logarithmic a-law or μ-law quantization. Version 1.6 adds optional support for wide band speech with the mSBC codec, a 16 kHz monaural configuration of the SBC codec mandated by the A2DP profile. Version 1.7 adds indicator support to report such things as headset battery level.

In 2002 Audi, with the Audi A8, was the first motor vehicle manufacturer to install Bluetooth technology in a car, enabling the passenger to use a wireless in-car phone. The following year DaimlerChrysler and Acura introduced Bluetooth technology integration with the audio system as a standard feature in the third-generation Acura TL in a system dubbed HandsFree Link (HFL). Later, BMW added it as an option on its 1 Series, 3 Series, 5 Series, 7 Series and X5 vehicles. Since then, other manufacturers have followed suit, with many vehicles, including the Toyota Prius (since 2004), 2007 Toyota Camry, 2007 Infiniti G35, and the Lexus LS 430 (since 2004). Several Nissan models (Versa, X-Trail) include a built-in Bluetooth for the Technology option. Volvo started introducing support in some vehicles in 2007, and as of 2009 all Bluetooth-enabled vehicles support HFP.[7]

Many manufacturers like Pioneer or JVC build car radios with Bluetooth module. This module usually has HFP support.

The Bluetooth car kits allow users with Bluetooth-equipped cell phones to make use of some of the phone's features, such as making calls, while the phone itself can be left in the user's pocket or hand bag. Companies like Visteon Corp., Peiker acustic, RAYTEL, Parrot SA, Novero, Dension, S1NN and Motorola manufacture Bluetooth hands-free car kits for well-known brand car manufacturers.

Most Bluetooth headsets implement both Hands-Free Profile and Headset Profile, because of the extra features in HFP for use with a mobile phone, such as last number redial, call waiting and voice dialing.

The mobile phone side of an HFP link is Audio Gateway or HFP Server. The automobile side of HFP link is Car Kit or HFP Client.


Bon il semblerait qu'il faille flasher le Firmware du HC-05 pour qu'il soit en HID, il faut donc flasher le FW RN42...:

Modifié (le) par Djam

Partager ce message

Lien à poster
Partager sur d’autres sites
youtube drone débutant

Rejoindre la conversation

Vous pouvez poster un message et vous inscrire plus tard. Si vous avez déjà un compte, connectez-vous afin de poster avec.

Répondre à ce sujet…

×   Vous avez copié du contenu avec formatage.   Supprimer le formatage

  Only 75 emoji are allowed.

×   Votre lien a été automatiquement intégré.   Afficher en tant que lien à la place

×   Le contenu sauvegardé a été restauré.   Effacer l'éditeur

×   You cannot paste images directly. Upload or insert images from URL.

  • Sur cette page :   0 membre est en ligne

    Aucun utilisateur enregistré regarde cette page.

  • Créer...