-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not sending sms #2
Comments
Hi, |
Thanks appreciate it |
hey sorry bother you again, i'm really stuck at the reading part and confused, hoping you could help me. |
Hi, |
@elvindeguzman |
appreciate it so much! |
its sending the sms but I'm still having issue reading the sms |
Could you please share the output |
looks like the event data registering is not getting the response like the +CMGL I tried changing the listener to this:
The only issue i'm having is sometimes the strings get cut for example when executing the command AT+CMGR=1 it should give me something like +CMGR: "REC UNREAD","+9999999999",,"21/03/30,04:39:39+32" |
I think it's modem model related |
I'm using wavecom modem |
Could you debug the example and see the content of strs? |
1 similar comment
Could you debug the example and see the content of strs? |
printed the result from the event listener here: COM4 result from listener:: result from listener:: result from listener::OK OK result from listener::A result from listener:: result from listener:: OK result from listener::A result from listener:: result from listener:: result from listener::OK OK result from listener::A result from listener:: result from listener::> result from listener::W result from listener:: result from listener::> result from listener::� result from listener:: result from listener:: result from listener::+CMGS: 104 result from listener:: OK OK result from listener::A result from listener:: result from listener:: result from listener::OK OK result from listener:: result from listener:: result from listener:: result from listener:: result from listener::OK OK result from listener:: result from listener:: RROR result from listener:: result from listener:: result from listener::+ result from listener:: OK result from listener:: result from listener:: result from listener::+CPMS: 1,35, result from listener:: OK result from listener:: result from listener:: result from listener::+ result from listener:: OK OK result from listener:: result from listener:: RROR result from listener:: result from listener:: result from listener::OK OK |
I'm not sure why the buffer is getting cut |
Looks like using byte delimited listener is what I need. I created something like this: final class MessageListener implements SerialPortMessageListener @OverRide @OverRide @OverRide |
Yes it may help |
It may be also something related to the baudrate. |
Try execute this |
+IPR: (0,2400,4800,9600,19200,38400,57600),(300,600,1200,115200) |
The default for the serial library is 9600 |
Change it, and try again |
yep i change it and was using the 115200 and same issue |
Try this |
+IPR: 115200 |
Can you try with serial communication application like putty? |
yep i'm using that and seems to be working properly on putty, no issue there, i'm also using 115200 rate when connecting using putty |
Try reduce the baudrate speed |
tried lower baudrate speed still no luck :( |
were you able to send ? |
Hi,
was trying to use your code sending the sms is not throwing any error also the reading but seems to be not working is there a way you can give me sample code
The text was updated successfully, but these errors were encountered: