modem
modem copied to clipboard
send several messages to same recipient with short delay between each message
Hey, sorry me again... When I send 2 long SMS (ie 3 messages concatenated in one) to same recipient almost simultaneously, my messages are received upside down, ie the beggining of the 1st message is concatenated with the end of the second and so on... I don't know if this is due to the sender SIM card, the receiver SIM card, the modem.js programm, the phone itself Any idea of how to avoid that? thanks
I know why this happens It's because the CSMS code il always the same ('00') So the phone receiving the message cannot distinguish between the 2 SMS. the pdu.js function generate() has to be modified. I'll try to do so and will keep you in touch
@alexislg2 According to spec, setting CSMS code to 00 means that modem will automatically define it. Although I'm open to idea of pdu.js defining it.
I add a random 8bit CSMS number and it works well. No more problem! Do you want a PR for npm pdu ?
Sure, @alexislg2, I would appreciate that :)