|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
solution: getting a Motorola Razr V3 to work as a GSM modem on FreeBSDHere's an answer without a direct question:
I've been working on a project send out pages from Nagios directly unto cell network as SMS messages. The "modem" used for now is a Motorola Razr V3 phone, which is a GSM phone. We have a "Qwert Corp" texting plan, which provides unlimited text messages for about $20/month, without paying for a voice plan we don't need. It is serviced by T-Mobile's network. The phone connects to the server via USB cable which (I presume) also charges the phone at the same time. No special settings needed on the phone to make it work as a modem On the FreeBSD side (with the old FreeBSD 6.1 release), I initially got a failure when I plugged it in: Nov 5 09:45:57 azz kernel: uhub0: device problem (SET_ADDR_FAILED), disabling port 1 Nov 5 09:46:06 azz kernel: uhub0: port 1, set config at addr 2 failed Nov 5 09:46:06 azz kernel: uhub0: device problem (IOERROR), disabling port 1 Nov 5 09:46:10 azz kernel: ugen0: Motorola Inc. Motorola Phone (V3), rev 1.10/0.01, addr 2 ### This initial problem was solved by loading the "ucom" and "umodem" modules: kldload ucom kldload umodem To make sure these will be loaded on boot, I added some lines to /boot/loader.conf (still need to be tested): ucom_load="YES" umodem_load="YES" Then when I plugin the phone to FreeBSD, I get a more successful message: ### Nov 5 11:10:25 azz kernel: ucom0: Motorola Inc. Motorola Phone (V3), rev 1.10/0.01, addr 2, iclass 2/2 Nov 5 11:10:25 azz kernel: ucom0: data interface 1, has CM over data, has no break Nov 5 11:10:25 azz kernel: ucom0: status change notification available ### The related device file for us is: /dev/cuaU0 For software to send the pages, I use the "gammu" port. I ran "gammu-config" for the initial setup, and then moved the resulting file from /root/.gammurc to the more standard location: /etc/gammurc During the setup, I used the device file mentioned above. I found that the device file could be reality-checked like this: stty -f /dev/cuaU0 -a That prints out some details including this hint that it's a modem: "speed 9600 baud" Finally, I could send a successful test with Gammu: echo "sms test" | gammu --sendsms TEXT +1XXXYYYZZZZ From here, there are already references on integrating Gammu with Nagios, as well as the possibility of using "gammu-smsd" for higher-volume paging loads. I thought I would share this in case anyone else ran into the same problem I did trying to get a USB modem to work when they plugged into FreeBSD! Mark -- . . . . . . . . . . . . . . . . . . . . . . . . . . . Mark Stosberg Principal Developer mark@... Summersault, LLC 765-939-9301 ext 202 database driven websites . . . . . http://www.summersault.com/ . . . . . . . . _______________________________________________ freebsd-questions@... mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..." |
|
|
Re: solution: getting a Motorola Razr V3 to work as a GSM modem on FreeBSDAllow me a quite formal addition:
On Thu, 5 Nov 2009 13:15:24 -0500, Mark Stosberg <mark@...> wrote: > For software to send the pages, I use the "gammu" port. > ^^^^ > I ran "gammu-config" for the initial setup, and then moved the > resulting file from /root/.gammurc to the more standard > location: /etc/gammurc ^^^^ FreeBSD separates configuration files for the system (/etc subtree) and for additional ports (/usr/local/etc subtree), so /usr/local/etc/gammurc would, in my opinion, be the correct place for this file. > I thought I would share this in case anyone else ran into the same > problem I did trying to get a USB modem to work when they plugged into > FreeBSD! Many thanks, Mark, this really sounds interesting and useful, a very good combination. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... _______________________________________________ freebsd-questions@... mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..." |
|
|
Re: solution: getting a Motorola Razr V3 to work as a GSM modem on FreeBSD> On Thu, 5 Nov 2009 13:15:24 -0500, Mark Stosberg <mark@...> wrote: > > For software to send the pages, I use the "gammu" port. > > ^^^^ > > I ran "gammu-config" for the initial setup, and then moved the > > resulting file from /root/.gammurc to the more standard > > location: /etc/gammurc > ^^^^ > FreeBSD separates configuration files for the system (/etc > subtree) and for additional ports (/usr/local/etc subtree), > so /usr/local/etc/gammurc would, in my opinion, be the > correct place for this file. I agree. However, the related man pages didn't reference this option. This seems like a place where the code and docs could use a small patch to work this way on FreeBSD. (Or maybe it already works this way, and the docs don't reflect it). I suppose in my case, I could still move the config file to /usr/local/etc/ and then symlink it from /etc/, which would meet the requirements of the software, and also meet the expectations of someone expecting a standard FreeBSD layout. > Many thanks, Mark, this really sounds interesting and useful, > a very good combination. :-) You are welcome. I have been running a hosting business on FreeBSD since about 1997 and it has worked very well for us. Mark -- http://mark.stosberg.com/ _______________________________________________ freebsd-questions@... mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..." |
| Free embeddable forum powered by Nabble | Forum Help |