GSM Shop GSM Shop
GSM-Forum  

Welcome to the GSM-Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features.
Only registered members may post questions, contact other members or search our database of over 8 million posts.

Registration is fast, simple and absolutely free so please - Click to REGISTER!

If you have any problems with the registration process or your account login, please contact contact us .

Go Back   GSM-Forum > Other Gsm/Mobile Related Forums > GSM / HSDPA Modems and Routers


GSM / HSDPA Modems and Routers GSM , HSDPA , WCDMA, LTE Modems and Routers Unlock And Firmwares

Reply
 
LinkBack Thread Tools Display Modes
Old 03-25-2013, 11:39   #1 (permalink)
Junior Member
 
Join Date: Mar 2013
Posts: 2
Member: 1906439
Status: Offline
Thanks Meter: 0
Call forwarding using AT commands and a USB modem (Huawei E160)


Hi, I would like to use an old USB modem (Huawei E160) and AT-commands to automate call forwarding (based on a timer logic) from a mobile number to 2 others.
There is a Gsm code available ("**21*number#") which switches the number from here to there. If I dial this number with a mobile all works well and the number is switched accordingly.
If I put the Sim card into the USB modem and use AT-commands it doesn't work, although the modem always gives back an "OK". I use hterm to test this.
The AT-commands I've tested with is:
"ATD**21*+436641234567#;"
"ATDT**21*+436641234567#;"
The modem is voice enabled. A test call to my private mobile using "ATD+436641234444;" works well and my phone rings.
Has anybody had this problem before and found a solution? Thanks in advance, Leo
  Reply With Quote
Old 03-29-2013, 08:25   #2 (permalink)
Junior Member
 
Join Date: Mar 2013
Posts: 2
Member: 1906439
Status: Offline
Thanks Meter: 0
Due to the lack of doc it turned out to be useless to find the right syntax for the AT commands. I use Software "gammu" now which works well on my RaspberryPi to establish a call diversion.
  Reply With Quote
Old 03-29-2013, 16:25   #3 (permalink)
vve
Freak Poster
 
Join Date: Mar 2002
Location: Moscow, Russia
Age: 53
Posts: 219
Member: 10397
Status: Offline
Thanks Meter: 45
Data sets like "*some_stuff#" are not phone numbers but USSD commands. That's why ATD command doesn't work for this.
You can use AT+CUSD command to send USSD. Google for tutorial - it's standard GSM command.
For Huawei modems, it's often required to select a correct USSD processing mode (data coding scheme) with AT^USSDMODE command before you send.
So, the sample command sequence to send "*100#" command should look like this:
Code:
AT^USSDMODE=0
AT+CUSD=1,"*100#",15
Note that you can run this sequence on either PC UI or modem port, but answer (if any) will arive to PC UI regardless of initial port choice.
  Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 



All times are GMT +1. The time now is 09:12.



Powered by Searchlight © 2024 Axivo Inc.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2023 -
Page generated in 0.12856 seconds with 8 queries

SEO by vBSEO