at-command

How to handle AT commands from a Bluetooth headset in Android?

ぃ、小莉子 提交于 2020-06-16 05:04:11
问题 I would like to handle an AT command (for double tap event) from a standard Bluetooth mono headset. By default, the double tap sends AT+BLDN command (Redial event) to the phone. According to Android documentation, registering a Broadcast Receiver for android.bluetooth.headset.action.VENDOR_SPECIFIC_HEADSET_EVENT will handle all such vendor related AT commands. But, it is not being invoked when the AT command is sent by the headset. Though, the redial event happens on the phone. 回答1: AT+BLDN

How to handle AT commands from a Bluetooth headset in Android?

谁说我不能喝 提交于 2020-06-16 05:04:07
问题 I would like to handle an AT command (for double tap event) from a standard Bluetooth mono headset. By default, the double tap sends AT+BLDN command (Redial event) to the phone. According to Android documentation, registering a Broadcast Receiver for android.bluetooth.headset.action.VENDOR_SPECIFIC_HEADSET_EVENT will handle all such vendor related AT commands. But, it is not being invoked when the AT command is sent by the headset. Though, the redial event happens on the phone. 回答1: AT+BLDN

Bluetooth HC-05 sending error 1F for INQ command only

◇◆丶佛笑我妖孽 提交于 2020-06-12 09:15:54
问题 I have a problem with my new bluetooth HC-05 module. In AT-mode it works perfectly with all commands that I need... exept INQ. I have tried to send whole bunch of other commands beforehand: AT+INIT OK AT+ORGL OK AT+ROLE=1 OK AT+CLASS=0 OK They all are working just fine. I tried to change IAC and INQM settings as well... but the answer from module is always the same: AT+INQ ERROR:(1F) I read related topic here and tried to push the button at HC-05, as it recommended there, but -- no result

+CNMI command: how to receive notification and save to SIM Card incoming SMS

点点圈 提交于 2020-03-06 09:23:45
问题 I need to get notification success delivery. I read so many and tried. I have GSM modem ZTE K4510Z . I don't get any notification or save to sim card. In my tested. I though my sim card is broken. So I try AT+CMGW to write temporary message to simcard. It success and exist. So in the end I think, it's command not the simcard. I try so many think from AT+CNMI , AT+CPMS . None reply buffer I get after send a message. I check it too with AT+CPMS? after send message. If a message it write to

How to use AT command to detect phone line is busy

元气小坏坏 提交于 2020-01-24 10:56:06
问题 I have a USB modem. Is it possible to detect the phone line is busy or not? I thought I could use AT Command to detect dial tone, but I'm not sure are there any commands support that. Thanks. 回答1: I believe you have to do this the same as a human would... take it off hook and wait for dial tone. Ripped from http://michaelgellis.tripod.com/modem.html D alone will take the modem off-hook and wait for a dial tone. (see X command for exceptions). The length of time to wait for a dial tone before

IEC 62056-21, implement the protocol over a gsm connection

拈花ヽ惹草 提交于 2020-01-17 07:48:47
问题 The protocol IEC 62056:21 tells us how to deal with enegy meters, it's quite easy! The part where I am stuck is the implementation over a GSM data channel . Normally I would set things like: 300 baudrate 1 parity bit (even) But the meter is not connected via serial connection but, instead, it has a sim. Using a modem I can call the meter using: AT&C1 ATDNumber Problem 1: Settings The modem calls the meter with different settings ( baudrates, stopbits, parity ) compared to the protocol ones, e

Print output of AT command

流过昼夜 提交于 2020-01-15 11:45:27
问题 I am using python to communicate with GSM modem connected in my ttyUSB port. import serial from curses import ascii ser=serial.Serial('/dev/ttyUSB0', 9600, timeout=3) command = ser.write('AT+CMGR=3\r\n') print command Now to communicate with my modem, I pass AT commands from python, I need to print the output of the complete command string. How do I do it? 回答1: If you mean how to get output from the modem, use read , readline or readlines methods of ser . See tutorial. 回答2: First, an AT

AT Command for receiving automatic SMS notification

左心房为你撑大大i 提交于 2020-01-14 13:59:30
问题 I have 2 gprs/gsm modems with me at the moment one of them is huawei and the other is a prolink modem. I have no problem sending or receiving SMSes via AT Commands. However I am trying to receive automatic notification using this command AT+CNMI and I am not able to get it to work but when I try this command the modem replies with ok with no errors. Procedures that I have performed so far Tried numerous combination for the AT+CNMI commands 2,1,0,0,0, 2,2,0,0,0 and etc but to no avail I have

How do you send an extended-ascii AT-command (CCh) from Android bluetooth to a serial device?

↘锁芯ラ 提交于 2020-01-14 05:57:07
问题 This one really has me banging my head. I'm sending alphanumeric data from an Android app, through the BluetoothChatService, to a serial bluetooth adaptor connected to the serial input of a radio transceiver. Everything works fine except when I try to configure the radio on-the-fly with its AT-commands. The AT+++ (enter command mode) is received OK, but the problem comes with the extended-ascii characters in the next two commands: Changing the radio destination address (which is what I'm

how to send arabic sms with at-command in c#

耗尽温柔 提交于 2020-01-13 19:36:10
问题 How can I send Arabic SMS with the at command in C#? When I send Arabic messages it shows incorrect characters. I tried using this code: serialPort1.BaseStream.Flush(); string cb = char.ConvertFromUtf32(26); System.Threading.Thread.Sleep(2000); this.serialPort1.Write("AT+CMGF=1\r"); this.serialPort1.Write("AT+CSCA=servicecenter\r\n");//Ufone Service Center this.serialPort1.Write("AT+CSCS=\"" + "HEX" + "\"\r\n"); this.serialPort1.Write("AT+CSMP=\"" + 1 + "," + 167 + "," + 0 + "," +8+ "\"\r\n")