|
2010-03-18
, 21:14
|
Posts: 451 |
Thanked: 334 times |
Joined on Sep 2009
|
#72
|
The north american variable was actually a typo before, it was correct (but posted incorrectly). The N American variable here was set through the customize-group dialog.Code:(custom-set-variables '(bbdb-north-american-phone-numbers-p nil))
Code:Sending SMS to: +1704-254-1111 (Mobile) while: Process n900-sms-dispatch does not exist
(start-process "n900-sms-dispatch" "*n900-sms-dispatch*" "pnatd") (display-buffer "*n900-sms-dispatch*") (process-send-string "n900-sms-dispatch" "at\r") (process-send-string "n900-sms-dispatch" "AT+CSCS=\"HEX\"\r") (process-send-string "n900-sms-dispatch" "AT+CSMP=17,167,0,8\r") (process-send-string "n900-sms-dispatch" "at+cmgf=1\r") (process-send-string "n900-sms-dispatch" (concat "at+cmgs=\"" "7042541111" "\"\r")) (process-send-string "n900-sms-dispatch" (concat "This is a sample SMS message." "\C-z"))
|
2010-03-18
, 22:15
|
|
Posts: 74 |
Thanked: 38 times |
Joined on Feb 2010
|
#73
|
Throw this out
I put it together so that it'll dial even american style numbers. So you can dial even the americanized numbers - try that
replace-regexp-in-string: Wrong type argument: sequencep, 704
Which Emacs version, and from where, are you using?
Report what you see here and we can get it fixed.
|
2010-03-19
, 00:11
|
Posts: 7 |
Thanked: 2 times |
Joined on Mar 2010
|
#74
|
The Following User Says Thank You to birdwes For This Useful Post: | ||
|
2010-03-19
, 05:06
|
Posts: 451 |
Thanked: 334 times |
Joined on Sep 2009
|
#75
|
+1704-254-1111 continues to work perfectlyCode:replace-regexp-in-string: Wrong type argument: sequencep, 704
(replace-regexp-in-string "-" "" (replace-regexp-in-string " " "" (replace-regexp-in-string "(" "" (replace-regexp-in-string ")" "" "(704) 254-1111"))))
http://sumoudou.org/%E7%9B%B8%E6%92%...ia%20N900.html - followed your basic instructions
(process-send-string "n900-sms-dispatch" "at\r")
nil
(process-send-string "n900-sms-dispatch" "AT+CSCS=\"HEX\"\r")
Debugger entered--Lisp error: (error "Process n900-sms-dispatch does not exist")
at AT+CSCS="HEX" AT+CSMP=17,167,0,8 at+cmgf=1 at+cmgs="7042541111" This is a sample SMS message. C-z
|
2010-03-19
, 10:49
|
|
Posts: 74 |
Thanked: 38 times |
Joined on Feb 2010
|
#76
|
this is very strange. What do you get when evaluating:
Code:(replace-regexp-in-string "-" "" (replace-regexp-in-string " " "" (replace-regexp-in-string "(" "" (replace-regexp-in-string ")" "" "(704) 254-1111"))))
"7042541111"
Post the contents of *Messages* buffer, maybe it gives some clues as to what is happenin
Also, can you start pnatd from the terminal and enter this sequence of commands, or does it also die?:
|
2010-03-19
, 17:50
|
Posts: 451 |
Thanked: 334 times |
Joined on Sep 2009
|
#77
|
As user it throws the pipe error - could that be part of it?
which pnatd
/usr/bin/pnatd
ls -l /usr/bin/pnatd
-rwsr-sr-x
ls -l /usr/bin/pnatd
|
2010-03-19
, 18:01
|
|
Posts: 74 |
Thanked: 38 times |
Joined on Feb 2010
|
#78
|
should start withCode:ls -l /usr/bin/pnatdCode:-rwsr-sr-x
What do you get forCode:ls -l /usr/bin/pnatd
-rwxr-xr-x 1 root root 12676 Aug 27 2009 /usr/bin/pnatd
Try purging pnatd and reinstalling clean.
apt-get remove --purge pnatd
You must be able to start it as user and then send one or two commands without crash.
The problem lay with pnatd on your system, not the Emacs coding...
|
2010-03-19
, 18:11
|
Posts: 451 |
Thanked: 334 times |
Joined on Sep 2009
|
#79
|
apt-get purge pnatd apt-get install pnatd
|
2010-03-19
, 18:21
|
|
Posts: 74 |
Thanked: 38 times |
Joined on Feb 2010
|
#80
|
# apt-get purge pnatd Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package pnatd # which pnatd /usr/bin/pnatd
I tried the clean .emacs earlier with no luck, but I'm starting over
current .emacs file
With the above, no luck.
An attempt to SMS to the number +1704-254-1111
sends same error to a new buffer
How did you setup your bbdb? In an attempt to keep things light on the handheld, I simply copied the bbdb-2.35 directory to ~/MyDocs/ I deleted everything but the lisp directory. Could my problem be related to this?
fwiw i still cannot edit an existing from number from (xxx) xxx-xxxx to +1xxx-xxx-xxxx