When I open the serial example the device appears first in line:
[notice ] ofSerial: [0] = tty.usbserial-A601EWHI
[notice ] ofSerial: [1] = cu.usbserial-A601EWHI
any feedback around this?
how do I communicate with this thing? any ideas?
Hi, it should be quite straight forwards.
you need to write through serial a string that starts with "AT" and ends with "\r\n"
the document you linked has all the available AT commands.
did you tried the included ofSerial? or ofxSerial?
cheers
is there another way to test the module?
it opens, it writes but no ouput
[notice ] ofSerial: opening /dev/tty.usbserial-A601EWHI @ 9600 bps
[notice ] ofSerial: opened /dev/tty.usbserial-A601EWHI sucessfully @ 9600 bps
[verbose] ofSerial: wrote 4 bytes
is there a way from terminal or an app or something to test that this thing is actually communicating with the SM5100B-D? (i tried PuTTY) but it doesn’t even let me type anything
Hi,
well there are several things about this.
First. arduinos software serial is not the same as ofxSimpleSerial.
When you want to send serial data through a port, this data needs to get arranged in a certain way and outputed with a certain timing. software serial does all these things via software, while regular serial does it in specialized hardware. Using software serial you can input and output serial from any arduino digital pin, while with regular serial you only have pins 0 and 1 in the UNO.
Putty is actually a good choice for testing. much easier than using OF.
in the documentation of that board you have a reference of the available commands and what to expect in return of each one.