Menu
  • HOME
  • TAGS

How to switch 2G\3G mode on usb modem Huawei E171 using C++?

c++,usb,at-command,modem

This line DWORD dwSize = sizeof(data); sets dwSize to the size of the string including the null-character at the end, which I don't think you want to send. And the command must end with the \r character. Try: char data[] = "AT^SYSCFG=13,1,3FFFFFFF,2,4\r"; DWORD dwSize = strlen(data); // use strlen instead...

Read lines (two or more lines) from the output of AT command and put it to database

python,regex,at-command,filehandler

i got it. it seems that i have to put it all those lines inside a list and sort it, and reduce those 2 lines to 1 line. check it out class SMSWait(self): def run(self): self.open() while 1: SMSRead = 'AT+CMGL="ALL"\r\n' self.SendCommand(SMSRead, getline=True) data = self.ser.readall() time.sleep(2) datalist.append(data) if any('+CMGL:'...

How to check if an AT command executed successfully or failed

gsm,at-command

Excellent step on your behalf to investigate how to do things properly instead of just stopping on "well, this seems to work by trial and error". Yes, OK and ERROR are universal but ERROR might be substituted with something else and there exists other responses as well. The V.250 specification...

Samsung AT Commands

android,communication,at-command

If you are looking to implement standard AT commands, and not your own custom commands, then you should probably use the Hayes command set, which is the industry standard for communicating with modems. Sparkfun provides a great reference on this (via Tellit): https://www.sparkfun.com/datasheets/Cellular%20Modules/AT_Commands_Reference_Guide_r0.pdf I also found the website below to...

Check value in buffer array is 0 and not NULL in response to AT modem?

c,null,serial-port,at-command,modem

Is there any way that I can check this response message correctly using the short form? Yes. You have to write code that pays attention to the number of bytes read. It should be a trivial matter to determine that no bytes are valid in the buffer versus one...

Arduino 3G GPRS shield Not Working

arduino,at-command

First of all, based on the style of your post, I just want to warn you that there is no way around googling the hell out of your shield and banging your head against the wall in order to figure out how to use the thing you just bought. In...

Access SIM Service menu using AT Command

java,c,at-command,ussd

Using AT command we can access the "Sim Based Menu". "Sim based menu" has been installed to the Sim card so we have to use the STK(SIM Application Tool Kit) for the access this menu. AT commands to operate STK functions. AT*PSSTK ...

Data Call with AT commands failed

at-command,3g,modem,3g-network,dial-up

Probably establishing the connection on the device won't be sufficient as windows will not be notified of the connection. You should setup a modem in Windows and use this to establish the connection. DotRas ist a project to do exactly this in c#. But there may be other solutions for...

AT+CUSD command: Response encoding

at-command,ussd

Looks like an modem decoding issue. Should be fixed by making use of the standard IRA encoding of most modems. Try using: AT+CSCS="IRA" And then try out the USSD command to get a response again. As a side note you can output available encoding capabilities of your modem via: AT+CSCS=?...

Getting tower location instead of gps

gps,embedded,microcontroller,at-command

I figured it out, I just had to plug in the values in this website instead of the original website I was using.

How to write a AT+CUSD ussd command to support maximum handsets

at-command,ussd

The command is defined in 27.007, and the syntax is given as +CUSD=[<n>[,<str>[,<dcs>]]] so actually all parameters are optional and it is valid to invoke the command with either 0, 1, 2 or 3 arguments. Regarding the <dsc> value, its specified default value 0 maps to GSM 7 bit default...

How to send multiple mobile # in vb6 using AT command

gsm,at-command

To send an SMS via a modem you are correct in using the AT+CMGS but I believe you are not following the syntax of the command correctly. You need to send the following: AT+CMGS=<Mobile phone number><cr> <Message text><ctrl-Z> You can only send one message at a time to one mobile...

HC-05 bluetooth RSSI not working with Arduino

bluetooth,arduino,at-command,rssi

Try at+inq\r\n Accordin to this , page 17 The process for HC-05 should be: at+init\r\n ---- Initialize the SPP profile lib( can’t repeat initialization) -> OK at+iac=9e8b33\r\n ----Inquire Bluetooth device has an access code -> OK at+class=0\r\n ----Inquire the Bluetooth device type at+inqm=1,9,48\r\n At+inq\r\n ----inquire the Bluetooth device around ...

Reading Multipart SMS with AT+CMGL using Wavecom modem

gsm,at-command,pdu

Ok answering question 1) You missed spotting that right at the start of the PDU there is the SMSC address. So in fact your PDU header octet is 44. This indicates that there is a UDH present in the PDU. This is the SMSC address: 07914150740250F7 Directly thereafter is the...

how to deal with the serial port in android mobile?

android,unix,serial-port,at-command

/dev/smd0 and /dev/ttyS0 are device files. Such files are virtual files that provide a file I/O operation interface for working with some underlying thing like for instance hardware resources like serial ports, hard disks and memory, or with non-hardware resources like process information, random number input, terminal screen output, etc....

USSD received message decoding

c#,decode,at-command,ussd,ucs2

What do you get when you decode it using Unicode? I can see a lot of 06's, and according to Wikipedia, standard Arabic is encoded from 0600 - 06FF. S List The answer thanks to S List is that I need to decode every four letters like "0645" using...

Error while Messaging with Huawei E3531 using matlab

matlab,at-command

This error is caused by some virtual serial port drivers not supporting functionality equivalent to a physical serial port, and the way Matlab handles communication with the virtual serial port. A possible solution would be to upgrade to the latest drivers (provided by the vendor of the serial port adapter)....

at command force script not to read from text file

linux,at-command

at and batch default to interpreting commands with /bin/sh, not /bin/bash. If you want to use a different shell, you need to format your script appropriately, by adding #!/bin/bash as the first line of the script. Also, your unnecessarily complicated loop for reading variables could be simply replaced with read...

How to reject or accept an incoming call to my GSM modem using AT commands in Python?

python,gsm,at-command,pyserial,modem

Add to the end of each AT command a CR to make it a valid AT command

minicom: AT+CMGR=n not showing the sms content

linux,sms,at-command,dongle

I guess you first need to select the message storage (AT+CPMS=XX), then list messages in that storage (AT+CMGL="ALL"), and then when you have a valid index of a message read it (AT+CMGR=X). Have a look at this article: http://www.smssolutions.net/tutorials/gsm/receivesmsat/...

Get error when try read sms with at command

serial-port,sms,gsm,at-command

Try using the AT+CNMI command before the AT+CMGL. It tells the device what to do with incoming messages. try: AT+CNMI=1,2,0,0,0 Also, try this: AT+CMGL=? to see if the command is supported by your device. It should respond "OK" if it is. If not, it isn't supported....

Directly read SMS when it arrives via GSM modem in PC over Serial Communication

gsm,at-command

You can use the AT+CNMI command to tell the GSM modem to direct incoming messages directly to the serial port. The full command, with parameters, is: AT+CNMI=2,2,0,0,0 AT+CNMI=2,1,0,0,0 sets the modem back to indication only mode and AT+CNMI=2,0,0,0,0 does not send any indication when a new message is received....

Send APDU commands to USIM/SIM card in android

android,smartcard,at-command,javacard,sim-card

There can be two different types of applets present on your SIM card. Common applets Common applets written in plain JavaCard. This is the type of applet you are used to from the world of common smart cards. It has the process method and smart card is the passive subject...

Receiving “NO CARRIER” error while tring to make a call using GSM modem in Python

python,python-3.x,gsm,at-command,modem

I found the origin of the error : The syntax is ATD+98xxxxxxxxxx; followed by terminating string. I was forgotten to put semicolon at the end after the number. So I replace phone.write(b'ATD"'+recipient.encode() +b'"\r') with phone.write(b'ATD"'+recipient.encode() +b';"\r') And now it works fine. Based on the brackets in this documents, I thought...

How to retrieve the ICCID from the Enfora GSM0308-11

gsm,at-command,modem

AT$ICCID? Should do the trick I think. You were close :) UPDATE #1: Ok, on further looking around it seems this modem doesn't even have anything implemented to get the ICCID. Based upon http://www.farnell.com/datasheets/876256.pdf which is in theory the AT Command Set reference for the device. UPDATE #2: Based on...

How to deal with “+FTPOPEN: 2” response from gprs module

ftp,at-command,gprs

Step 1: Find the exact model name and version number of your gprs module. Make a note of it for yourself and also update the question with this information because it is extremely important background information. Step 2: Find the official AT command documentation corresponding to your gprs module. The...

SMS is truncated when I read it from Siemens TC35 GSM module and Arduino

serial-port,sms,arduino,gsm,at-command

I'm not an Arduino expert in any capacity, so there may be better ways to do this in the API, but I'd try something like this (delays can probably be lowered) void readSMS() { mySerial.print("AT+CMGR=6\r\n"); // Send request int count = 5; // Number of 100ms intervals before // assuming...

GSM Modem AT commands memory “OM” “DM”

gsm,at-command,modem

Thanks to reddit user 1991_vg, "OM" and "DM" stand for Outgoing Messages and Draft Messages respectively. On a RAZR phone, they represent folders where messages are stored, and thus should be able to send messages from those folders. Here is the motorola at commands for anybody who has this problem:...

How to parse the response of an AT command in Arduino?

arduino,sms,gsm,at-command

AT command responses are usually sent by the module via the same connection. I.e if you're connection to the module serially then you send to the transmission pin, and read from the receive pin (tx vs. rx).