I want to create something similar to Kannel, for my wavecom GSM modem using Erlang.
I found a erlang-serial project in Github, but it seems there isn’t any easy tutorial for a newbee like me.
I really need an Erlang lib that can send data to a serial port and sending AT command to my GSM modem.
Please help.
erlang-serial has pretty easy example in terminal.erl, basically you start the connection:
Where ?DEVICE is path to linux device in /dev and serial_listener is a receive-loop like this:
And to send data you just send message to that process:
That’s it!