Jump to content








  • Topics

  • Latest posts...

    1. 15

      Pattaya Police Raid Poker Gambling Ring, Arrest 9 Foreign Players

    2. 56

      Are Older Men in Thailand Trading Love for Financial Ruin

    3. 12

      Thaksin and Pheu Thai Party face constitutional showdown

    4. 12

      To DTV or not to DTV - that is the question.

    5. 5

      If AN members could vote in the USA election, who would we vote in?

    6. 220

      Should A Woman Be Allowed to hold the office of President of the USA?

    7. 15

      Pattaya Police Raid Poker Gambling Ring, Arrest 9 Foreign Players

    8. 56

      Are Older Men in Thailand Trading Love for Financial Ruin

    9. 7

      Pickup Truck Loses Control in Rain, Crashes into Restaurant & Motorbikes: Na Jomtien

    10. 0

      Opinion: CBS’ anti journalism flubs should prompt a wake up call

    11. 220

      Should A Woman Be Allowed to hold the office of President of the USA?

    12. 380

      What does the average British expat think of Tommy?

    13. 70

      Tips on dealing with the regional SSA office in Manila

    14. 7

      Real estate agent (and previous owner) omit to tell one little detail, liable for damages ?

3/4G Modem. router and AT commands


JaiMaai

Recommended Posts

I'm trying to use a Huawei E3276S dongle with a GL-MT300N V2 router.  The connection to the network was straightforward enough and it's working well.

 

What I'm trying to do is work out how to send USSD codes through the router interface to check balance and buy one off internet packages.

 

The limited research I've done suggests AT+CUSD=1, "#123",15 should work but it errors out  with +CM# ERROR: UNKOWN

 

Any ideas or suggestions of another way to do what I want with swapping the SIM between the dongle and a phone?

 

Thanks

 

 

 

 

Edited by Jai Dee
Font resized
Link to comment
Share on other sites


9 minutes ago, KhunBENQ said:

 

Seems dongle/SIM connects to True mobile?

You want to send "#123"?

Isn't it "#123#"?

Yes  I'm trying to use True.

 

That was just a typo on here.  I was sending the correct code when I tried. 

Edited by JaiMaai
typo (ironically enough)
Link to comment
Share on other sites

6 minutes ago, fdsa said:

is there an extra space between


1,

and


"#123

?

 

try the test command (show phone number):


AT+CUSD=1,"99",15

 

 

Sending that command returns "OK" without anything else.

Link to comment
Share on other sites

5 minutes ago, JaiMaai said:

Sending that command returns "OK" without anything else.

wait for several seconds, OK is a confirmation of receiving the command and after few seconds it shows the phone number.

 

# socat - /dev/ttyUSB2,b115200,crnl
AT

OK
AT+CUSD=1,"99",15

OK

+CUSD: 0,"MSISDN:66952012345",15   <<<===  shown after few seconds

AT+CUSD=1,"#123",15

OK   <<<<==== and nothing else happens 
AT

OK
AT+CUSD=1,"#123#",15    <<<=== note the second # after 123

OK

+CUSD: 0,"TrueMove-H credit is 16.79 Bt, you can use service until 26/10/2021",15  <<<=== shown after a few seconds

 

 

Link to comment
Share on other sites

yea I think that's the problem. You should connect to router's terminal via SSH and then connect to modem from the router.

If you use Mac or Linux the SSH client is preinstalled, if you use Windows then you need to download third party software such as Putty: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

Edited by fdsa
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...