天道酬勤,学无止境

at-command

AT commands to hm10 over bluetooth with android

问题 回答1

2022-05-15 02:25:26    分类:技术分享    android   bluetooth   bluetooth-lowenergy   at-command   hm-10

AT+CUSD command: Response encoding

问题 我正在向 gsm 调制解调器发送 AT+CUSD 命令(拨打 ussd 代码)。 它工作正常。 手机上的响应也是正确的。 但是我认为响应是十六进制格式或我不知道的一些编码: GSM 调制解调器硬件: 诺基亚 C6-01 使用 USB 电缆连接到笔记本电脑。 USB模式:诺基亚套件 初始化编码的命令: AT+CSCS=? +CSCS: ("UCS2","GSM","PCCP437","PCDN","IRA","8859-1","HEX","UTF-8") AT+CSCS="IRA" AT+CSCS? +CSCS: "IRA" 也试过: AT+CSCS="GSM" AT+CSCS="UTF-8" 实际 Ussd 命令: AT+CUSD=1,"*123#",15 实际反应: +CUSD: 1,"c47258e1ad7e7f477bb2c6781e0ec72785e691d36136481593cd54f6777d8c2ecb23e1313d6dfd3d36f7764fc26974720fa1b242f8fd161f9b9cc",1 OK 预期反应: AT+CUSD=1,"*123#",15 +CUSD: 1,"Dear Customer.... some response in english",1 回答1 看起来像调制解调器解码问题。 应该通过使用大多数调制解调器的标准 IRA

2022-05-11 02:13:04    分类:技术分享    at-command   ussd

using AT commands. of service in response encoding and read Chinese or Arabic for Nokia phones

问题 我正在使用 AT 命令为 GSM 调制解调器开发应用程序。 我在阅读 Unicode 消息或 ussd 示例时遇到问题:dcs=17 not 7 or 15 or 72 两年前,我正在寻找解决方案无济于事我能够通过使用中文手机找到部分解决方案,手机可以读取中文编码但是所有诺基亚手机都不支持编解码器阿拉伯语或中文并且服务响应似乎难以理解符号示例: +CUSD: 0,"ar??c ?J <10???@d@??? @0@??@D? ?Z?xb @ $@?@?@Z@@?? @-@H?@???@b@@$? @3@h?P???@??(??",17 但是当你使用手机时显示中文响应服务100%正确我如何通过诺基亚手机或其他地址编码 回答1 AT 命令中用于字符串的字符集由AT+CSCS控制。 默认值为"GSM" ,它不能显示相对有限的字符集之外的任何内容。 在您的情况下,阅读阿拉伯语或中文"UTF-8"可能是最好的选择,尽管也可以使用"UCS-2" (尽管需要一些后期处理)。 您可以在下面看到所选字符集如何影响字符串。 我一直把我住在台湾时的电话号码留给我的中文老师,用中文(lǎo shī)存储为“老师”。 此处删除了实际的电话号码,但除此之外,以下是我手机回复的逐字副本: $ echo at+cscs? | atinout - /dev/ttyACM0 - +CSCS: "GSM" OK

2022-05-05 16:00:35    分类:技术分享    command   nokia   at-command

AT+CUSD command: Response encoding

I am sending AT+CUSD command (to dial a ussd code) to a gsm modem. It is working fine. The response is also correct on the handset. But the response is in I think hex format or some encoding unknown to me: GSM MODEM HARDWARE: Nokia C6-01 Connected to laptop using USB cable. Usb mode: Nokia Suite Commands for initializing the encoding: AT+CSCS=? +CSCS: ("UCS2","GSM","PCCP437","PCDN","IRA","8859-1","HEX","UTF-8") AT+CSCS="IRA" AT+CSCS? +CSCS: "IRA" Also tried: AT+CSCS="GSM" AT+CSCS="UTF-8" Actual Ussd Command: AT+CUSD=1,"*123#",15 Actual Response: +CUSD: 1

2022-05-01 13:23:34    分类:问答    at-command   ussd

AT Commands fail to Execute in a program

问题 该程序如下图所示: #include <SoftwareSerial.h> SoftwareSerial gprsSerial(7, 8); byte sensorInterrupt = 0; // 0 = digital pin 2 byte sensorPin = 2; // The hall-effect flow sensor outputs approximately 4.5 pulses per second per // litre/minute of flow. float calibrationFactor = 4.5; volatile byte pulseCount; float flowRate; unsigned int flowMilliLitres; unsigned long totalMilliLitres; unsigned long oldTime; void setup() { gprsSerial.begin(19200); Serial.begin(19200); pinMode(sensorPin, INPUT); digitalWrite(sensorPin, HIGH); pulseCount = 0; flowRate = 0.0; flowMilliLitres = 0; totalMilliLitres = 0

2022-05-01 10:16:43    分类:技术分享    arduino   arduino-uno   at-command   arduino-ide

AT commands to hm10 over bluetooth with android

Hey guys am working with a project and i want to know is it possible to send AT commands to hm-10 ble device directly from my android app over bluetooth without using any micro controller and if yes then how????

2022-04-29 06:52:57    分类:问答    android   bluetooth   bluetooth-lowenergy   at-command   hm-10

using AT commands. of service in response encoding and read Chinese or Arabic for Nokia phones

I am developing an application for GSM Modems using AT commands. I have a problem reading Unicode messages or ussd example: that dcs=17 not 7 or 15 or 72 Two years ago, and I'm looking for a solution to no availI was able to find a partial solution through the use of Chinese phone where the phone can read Chinese codingBut all Nokia phones do not support the codec Arabic or ChineseAnd service responses appear incomprehensible symbols Example: +CUSD: 0,"ar??c ?J <10???@d@??? @0@??@D? ?Z?xb @ $@?@?@Z@@?? @-@H?@???@b@@$? @3@h?P???@??(??",17 But when you use the phone shows the Chinese response

2022-04-27 04:59:27    分类:问答    command   nokia   at-command

inStream.read in serial communications

I'm trying to monitor temperature from a remote device using a TC65 modem. To request, 'C' has to be sent with a carriage return at the end. The problem is, I only get this on my phone: "This is test sms. The current temperature is " without the temperature I requested. I tried communicating with the thermostat using HyperTeminal without a problem. Could you help me with instream.read? The output is double (accurate by two decimals). Here's my code. Thanks. package example.rs232demo; import javax.microedition.midlet.*; import java.io.*; import javax.microedition.io.*; import com.siemens.icm.io

2022-04-26 08:40:01    分类:问答    java   at-command

Why my AT command echo in my GSM modem?

问题 我有一个 GSM 调制解调器并用腻子测试它。 有用。 然后我用我的 c++ 程序发送 AT,但调制解调器回复 AT。 它只是呼应我的命令,没有回答 OK。 这是我的代码: #include <QCoreApplication> #include <stdio.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <termios.h> #include <iostream> int fd; int openport(void) { fd=open("/dev/ttyUSB0",O_RDWR|O_NOCTTY|O_NDELAY); if (fd==-1) { perror("open_port: unable to open port /dev/ttyUSB0\n"); return -1; } else { printf("open_port: succesfully open port /dev/ttyUSB0\n"); fcntl(fd,F_SETFL,0); return 1; } } void closeport(void) { close(fd); } void configport(void) { struct termios

2022-04-22 21:27:05    分类:技术分享    c++   gsm   at-command

Trying to use the AT command with an Huawei E3531

问题 我想读取我的华为 E3531 的 RSSI。 因此,我找到了一些文档,这些文档显示了使用 AT 命令获取这些信息的简单方法。 问题是我什至无法连接到我的华为 E3531。 我的意思是,它作为调制解调器工作得非常好。 我有很好的联系。 但是当我在 dev 中寻找设备时,我只找到了 2 个设备(“sdb”和“sgm”),它们似乎是 2 个磁盘,但与串行端口无关。 所以我尝试了一些我发现的东西: - 插入华为后,我发现 Idvendor 和 Idproduct 正在执行 lsusb。 -他们我做了一个 sudo modprobe usbserial vendor=0X"Idvendor" product=0X"Idproduct" -然后当我做 dmesg 我可以阅读: [ 1038.498282] usbcore: registered new interface driver usbserial [ 1038.498299] usbcore: registered new interface driver usbserial_generic [ 1038.498312] usbserial: USB Serial support registered for generic 通常我应该有类似的东西: usb 1-1: generic converter now attached

2022-04-20 09:51:35    分类:技术分享    at-command   rssi   umts