Sms send and receive using electron

hello,

i am working on an SMS send receive prototype using electron but i am not successfull . i used a sample code to send AT and read the output from the device but it hangs in loop and nothing seems to be working except the print statements. i just need help on functions and any related documents along with available sample code.

here is my code in case :

#define TIMEOUT 10000
int callback(int type, const char* buf, int len, char* param){  
    Serial.print("Return: ");
    Serial.write((const uint8_t*)buf, len);
    Serial.println();
    
    return WAIT;
}

char szCmd[64];
char szReturn[32] = "";

void setup() {
    
    Serial.begin(9600);
    

}
void loop(){
    
     Serial.print("Sending command\r\n");
delay(1000);
   Serial.print(szCmd);
    delay(1000);
   Serial.println();
delay(1000);
   

 Cellular.command(callback, szReturn, TIMEOUT, "AT");
    delay(1000);
   Serial.print(szReturn);
    delay(1000);
}

i am using the Particle SIM and i read that particle SIM does not support SMS is this true ? . what should i do in that case if i have to implement SMS.

Thanks!
giri babu

That's true, and probably the reason why the above isn't working...
Until Particle supports SMS (which doesn't make a lot of sense tbh), you'll have to use a SIM of your own.
Any reason you'd absolutely need direct SMS?

1 Like

@gbabu012, here is an link to my post about sending SMS using Electron. Note that I am using third party SIM, not Particle SIM.

1 Like

hello Moors,

Thank for the reply that was pretty quick . i am working on a confidential project at ford so give me your email id , i would prefer to take it offline. i need your help a lot actually.

thanks!
giri babu

hello varma,

Thank you i will surely have this as my reference and work on it. appreciate your help .

thanks!
giri babu