on_new_message fails in LUA and JS


I would like to report a recurring error in the gsm API for both LUA and JS interfaces.

When I try to use a registered function to process an SMS (i.e. the example given in seeedstudio.com/wiki/JavaScript_for_RePhone), I always come to the same error (tried both with LUA and JS, same error):

SerialException: device reports readiness to read but returned no data (device disconnected?)

After this error, the module reboots to mass storage mode. Also, rebooting again in LUA or JS mode enters in a boot-loop mode, since the function is executed until there is no SMS to read.

Any solution?


Do you be able to make a phone call by running:


It seems that RePhone crashed and serial device was disconnected.