Download MMS Toolkit    |     Visit the MMS Toolkit website

Index - Log in! - Sign up! - Visit website
PHP / Demo-Toolkit - Not able to recieve SMS
 
ActiveXperts Software Forum Index -> SMS and MMS Toolkit -> Development platforms
 
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
alex2911



Joined: 23 Apr 2008
Posts: 2

PostPosted: Thu Apr 24, 2008 8:50 am    Post subject: PHP / Demo-Toolkit - Not able to recieve SMS

Hi @ all

I am not able to recieve SMS. Get no error-messages and the demo-app says "Success" but no sms are there. On my phone i have unread messages.


PHP:
Code:

    $objGsmIn = new COM("ActiveXperts.SmsProtocolGsm");
    $obj2gsm = new COM("ActiveXperts.SmsConstants");
    $objGsmIn->Device = "HUAWEI Mobile Connect - 3G Modem";
    $objGsmIn->MessageStorage = $obj2gsm->asSTORAGE_ALL;
   
   
    $numMessages = $objGsmIn->Receive();
    echo $numMessages . '<br />';
for ($a=0;$a<(int)$numMessages;$a++){
    $objSmsMessage = $objGsmIn->GetFirstMessage();
    if ($objGsmIn->LastError == '33060'){
        echo 'keine eingehenden Nachrichten';
    } else {   
        echo $objSmsMessage->Sender;
        echo $objSmsMessage->Data;
   
    }
}
    $objGsmIn->Clear();

I know that the code isn't 100% because i still missing the "nextmessage" but as soon as i don't geta at least 1, it haven't sense to work on.

My Mobile is a Nokia 6288 (and a vodafone Datacard "HUAWEI E220 HSDPA USB MODEM")

best regards from austria
Alex


----------------------------
Edit: Here the log-files:

Quote:
[11:25:06] OPEN DEVICE [SMS and MMS Toolkit Build 5.0.8.0401], device=[Nokia 6288 USB Modem], baudrate=[115200], result=[Success]

[11:25:06] WRITE STRING, string=[ATE0]

[11:25:06] READ STRING, string=[OK]

[11:25:06] WRITE STRING, string=[AT+CMEE=1]

[11:25:06] READ STRING, string=[OK]

[11:25:06] WRITE STRING, string=[AT+CPMS=?]

[11:25:07] READ STRING, string=[+CPMS: (),(),()]

[11:25:07] READ STRING, string=[OK]

[11:25:07] WRITE STRING, string=[AT+CMGF=?]

[11:25:07] READ STRING, string=[+CMGF: (0,1)]

[11:25:07] READ STRING, string=[OK]

[11:25:07] CLOSE DEVICE



Quote:
[11:26:21] OPEN DEVICE [SMS and MMS Toolkit Build 5.0.8.0401], device=[HUAWEI Mobile Connect - 3G Modem], baudrate=[115200], result=[Success]

[11:26:21] WRITE STRING, string=[ATE0]

[11:26:21] READ STRING, string=[OK]

[11:26:21] WRITE STRING, string=[AT+CMEE=1]

[11:26:21] READ STRING, string=[OK]

[11:26:21] WRITE STRING, string=[AT+CPMS=?]

[11:26:21] READ STRING, string=[+CPMS: ("ME","MT","SM","SR"),("ME","MT","SM","SR"),("ME","MT","SM","SR")]

[11:26:21] READ STRING, string=[OK]

[11:26:21] WRITE STRING, string=[AT+CMGF=?]

[11:26:21] READ STRING, string=[+CMGF: (0-1)]

[11:26:21] READ STRING, string=[OK]

[11:26:21] WRITE STRING, string=[AT+CMGF=0]

[11:26:21] READ STRING, string=[OK]

[11:26:21] WRITE STRING, string=[AT+CPMS="MT"]

[11:26:21] READ STRING, string=[+CPMS: 0,255,0,20,0,20]

[11:26:21] READ STRING, string=[OK]

[11:26:21] WRITE STRING, string=[AT+CMGL=1]

[11:26:21] READ STRING, string=[OK]

[11:26:21] WRITE STRING, string=[AT+CMGL=0]

[11:26:21] READ STRING, string=[OK]

[11:26:22] CLOSE DEVICE
Back to top
vdedaniya



Joined: 15 Sep 2008
Posts: 4

PostPosted: Mon Sep 15, 2008 6:11 am    Post subject: 33060

Hi Friend,

I am also receiving the same error message saying that "No more messages in receive buffer"

Please let me know if you have fixed this issue?

Thank You,
Vishal
Back to top
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum