Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to send SMS from Mac terminal via GSM modem?
    primarykey
    data
    text
    <p>I have Mio A701 communicator that I would like to use as GSM modem for sending SMS from my Mac.</p> <p>What I've found so far is that one just can send an AT commands directly from terminal to special ports like /dev/ttyUSB0 if modem is connected via USB port or /dev/rfcomm0 if connection is handled via bluetooth. My problem is that when I try to issue a command I get a "permission denied" response:</p> <pre><code>"AT+CMGS=test\r" &gt; /dev/ttyUSB0 -bash: /dev/ttyUSB0: Permission denied </code></pre> <p>Also "ls /dev" shows that neither ttyUSB0 nor rfcomm0 files are present there so I can't update permissions on these files.</p> <p>Any help would be greatly appreciated, thanks in advance.</p> <p><strong>Update: problem is solved.</strong><br> First of all Mio A701 appears to be wrong choice since it does not support AT commands for sending SMS. </p> <p>This PHP code works fine with Nokia 3310c connected via bluetooth: </p> <pre><code>$number="&lt;phone number in international format with + sign&gt;"; $message="Hello World\ntest"; // as far as I've tested \n successfully turns into a line break in SMS on Mio, Nokia and Alcatel phones $port="/dev/tty.phone"; // this path was set in "Mac preferences" -&gt; bluetooth -&gt; "configure ports" for selected device if($fd = fopen($port, 'a')) { fwrite($fd, "AT+CMGF=1\r"); // text mode for SMS sleep(2); fwrite($fd, "AT+CMGS=\"$number\"\r"); sleep(2); fwrite($fd, "$message\032"); sleep(2); $fh = null; } else echo "Phone unreachable"; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload