From: Tom <tom...@gm...> - 2007-12-28 19:07:39
|
Gregg Liming wrote: > Also, maybe you could describe what kind of serial ports/cards you have > if other than "stock" (I'm assuming not as you have more than 2). > > I assume that your cm11a was working just fine on either ttyS1 or ttyS5. > More progress :) X10 commands are being sent but not Insteon commands. I noticed the following line in my log: - creating Home port on /dev/ttyS1 (I don't have any definitions for ttyS1 in my private.ini file) The machine has 2 built in and I have 2 additional SIIG serial cards. I tried one of the stock ports and it seems to work much better. I've confirmed that "c a6 6e" is the address of the PLM ( 0C.A6.6E 0 [root@linux sjinn]# ./rs232 -d /dev/ttyS0 -b 19200 -s "\h0260" --dtr --hex --verbose -r9 --wait 1 /dev/ttyS0 19200 8n1 -dtr -rts -cts -dsr send <hex>(2)(60) wait 1.000000 seconds read 9 characters 2 60 c a6 6e 3 5 62 6 and the following works: the light turns on [root@linux sjinn]# ./rs232 -d /dev/ttyS0 -b 19200 -s "\h02 62 05 E2 E7 0F 11 FF" --hex --verbose -r9 --wait .4 /dev/ttyS0 19200 8n1 +dtr -rts -cts -dsr send <hex>(2)(62)(5)(e2)(e7)(f)(11)(ff) wait 0.400000 seconds read 9 characters 2 62 5 e2 e7 f 11 ff 6 my private ini has "Insteon_PLM_serial_port=/dev/ttyS0" but I still get the error I wiped my mh folder and redownloaded the files from SVN so there are no old files lingering. (besides my own code in my code directory) Here's my log again: Command: mh Pgm path : /usr/local/mh/bin Pgm version: mh 2.104 R1274 Last updated: Thu Dec 27 10:08:41 2007 Perl version: 5.008005 OS version: linux linux Other : user= pid=5593 box= cpu=- This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Read parameter files: ./mh.ini ./mh.private.ini /data/mh/toms_stuff/mh.private.ini Debugging for x10 turned on Code Directories: - /data/mh/toms_stuff/code - ./../code/common Audio::Mixer not installed ... volume control is disabled Loading other modules Starting setup - using simple Text distance function - reading previous log files - archiving previous /data/mh/toms_stuff/data/logs/*.log files .... - read 36 trigger entries - creating http on tcp 10.0.0.91 80 buffered - creating server mhsend on tcp 8084 buffered - creating server telnet on tcp 1234 raw - creating xap_send on udp 3639 send - creating xap_hub_listen on udp 3639 listen - mh in xAP Hub mode - creating xap_listen_core on udp 49152 listen - creating xap_send_49152 on udp 49152 send - creating xpl_send on udp 3865 send - creating xpl_listen on udp 49153 listen - creating xpl_hub_listen on udp 3865 listen - mh in xPL Hub mode - creating xpl_send_49153 on udp 49153 send - creating RCSsTR40 port on /dev/ttyS4 - creating W800 port on /dev/ttyS5 12/28/07 01:31:05 PM [Insteon_PLM] serial:/dev/ttyS0:19200 - creating Insteon PLM port on /dev/ttyS0 - process id 5593 written to /data/mh/toms_stuff/data/mh.pid - external command file (xcmd_file): ./../house_cmd.txt - HTML file : ./../web/ia5/index.shtml Warning: password_file /data/mh/toms_stuff/data/.password not found. Run mh/bin/set_password sh: /opt/swift/bin/swift: No such file or directory Done with setup 12/28/07 01:31:05 PM Reading /data/mh/toms_stuff/mh.private.ini and mh.ini html_alias alias /scripts dir does not exist, dir=/data/mh/toms_stuff/web/ia5/mce/Common/scripts/ html_alias alias /photos dir does not exist, dir=/tmp/photos/mh_resized Voice names: Microsoft Mary, Microsoft Mike, Microsoft Sam Read 4 entries from /data/mh/toms_stuff/data/pronouncable_words.list 12/28/07 01:31:05 PM Reading 1 .mht table files: insteon.mht 12/28/07 01:31:05 PM Translating insteon.mht -> /data/mh/toms_stuff/code/insteon.mhp 12/28/07 01:31:05 PM Initialized read_table_A.pl Reading code_dirs: /data/mh/toms_stuff/code ./../code/common 12/28/07 01:31:05 PM Reading 38 code files Duplicate file. - Used: /data/mh/toms_stuff/code/callerid.pl - Skipped: ./../code/common/callerid.pl Duplicate file. - Used: /data/mh/toms_stuff/code/internet_weather.pl - Skipped: ./../code/common/internet_weather.pl 12/28/07 01:31:05 PM Evaluating user code 12/28/07 01:31:05 PM [Insteon_PLM] setting default xmit delay to: 0.25 12/28/07 01:31:05 PM [Insteon_PLM] setting x10 xmit delay to: 0.5 12/28/07 01:31:05 PM PLM: Executing command:0260: - creating Home port on /dev/ttyS1 12/28/07 01:31:05 PM Requesting minimum run/off times from thermostat Good code saved running: play ./../sounds/sound_click1.wav can't exec sound_program: play at /usr/local/mh/bin/mh line 3846. Restoring object states Object states restored Activating voice commands Starting monitor commands loop Latitude: 34.075, Longitude: -84.294, Time Zone: -5 sunrise=7:42 AM sunset=5:36 PM sunrise twilight=7:14 AM sunset twilight=6:04 PM The moon is Three-Quarter Waning, 76% bright, and 19 days old The next full moon is on Tuesday, January 22nd 12/28/07 01:31:07 PM Generating Voice commands for all Insteon objects 12/28/07 01:31:07 PM Rereading .menu code files. Display call with tk disabled (-tk 0). Text=MisterHouse restarted unexpectedly! 0 12/28/07 01:31:07 PM Organizer: Calendar matches target schema and does not require upgrading 12/28/07 01:31:07 PM Organizer: Todo matches target schema and does not require upgrading 12/28/07 01:31:07 PM Organizer: Reading updated organizer calendar file now 12/28/07 01:31:07 PM Evaluating code organizer_events 12/28/07 01:31:07 PM Organizer: Reading updated organizer todo file 12/28/07 01:31:07 PM Evaluating code organizer_tasks 12/28/07 01:31:07 PM Generating Voice commands for all X10 objects 12/28/07 01:31:07 PM Weather data requested for Atlanta, Ga Zone Atlanta Getting the current weather for Atlanta, Ga 12/28/07 01:31:09 PM [Insteon_PLM] WARN: No acknowledgement from PLM to last command requires forced abort of current command. This may reflect a problem with your environment. Getting the forecast for Atlanta, Ga Current conditions: At 1:00 PM, Atlanta, GA conditions were cloudy skies at 61 degrees , wind was south at 8 mph. The relative humidity was 94%, and barometric pressure was falling from 30.05 inches. The forecast is As of 4:17am Fri Dec 28, 2007: Today: Showers with a chance of thunderstorms. Some thunderstorms may be severe in the afternoon. Highs in the upper 50s. South winds 5 to 15 mph. Chance of rain 90 percent. Tonight: Showers likely with a slight chance of thunderstorms in the evening, then a chance of showers after midnight. Lows in the mid 40s. Southwest winds 5 to 10 mph shifting to the northwest after midnight. Chance of rain 60 percent. Saturday: Mostly sunny. Highs in the lower 60s. Northwest winds 5 to 10 mph. Saturday Night: Partly cloudy with a slight chance of rain in the evening, then rain likely after midnight. Lows in the upper 30s. Light and variable winds. Chance of rain 70 percent. Sunday: Rain likely in the morning...Then a chance of rain in the afternoon. Highs in the lower 50s. North winds 5 to 10 mph. Chance of rain 70 percent. Sunday Night: Partly cloudy. Lows in the lower 30s. Monday: Sunny. Highs in the lower 60s. Monday Night: Partly cloudy with a 20 percent chance of rain. Lows in the mid 30s. New Years Day: Mostly sunny with a 20 percent chance of rain. Windy. Highs in the lower 50s. Tuesday Night: Partly cloudy. Lows in the mid 20s. Wednesday: Partly sunny. Windy. Highs in the lower 40s. Wednesday Night: Partly cloudy. Windy. Lows in the lower 20s. Thursday: Mostly sunny. Windy. Highs in the mid 40s. 12/28/07 01:31:11 PM Weather data retrieved. Exiting 12/28/07 01:31:12 PM: Saving object states ... done |