Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: 1-Wire Controller on 2.15a Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
renard
Groupie
Groupie
Avatar

Joined: November 01 2009
Location: United States
Online Status: Offline
Posts: 74
Posted: August 14 2014 at 07:07 | IP Logged Quote renard

I am trying out a simple 1-wire system (a single thermometer module) on 2.15a. I have declared the 1-wire controller on the PH Setup but I do not see it on the list of devices nor does any polling appear on the PH log. I am using a 1-wire USB prototyping interface that has an activity light that flashes when polled using OneWireViewer.exe to view the temperature but there is no activity from PH. Is that functionality running in 2.15a? Dave: is this is a low priority 'play around' item for me so don't spend a lot a time on my account on this. Thanks. Terry

__________________
Terry
Back to Top View renard's Profile Search for other posts by renard
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: August 18 2014 at 21:08 | IP Logged Quote dhoward

Terry,

1-wire should be fully functional in PH 2.1.5a (Im using it in my own system). It sounds as if you've declared the 1-wire controller successfully (verify by looking at the Controllers tab in Help->About) so you're good there. All you'll need to do at this point is declare the 1-wire devices connected to your controller in the Analog I/O table. An example of how to setup these devices is given in the screenshots below (this is of my setup):




A little explanation will help. ID and Description are obvious. I/O should be the 1-wire type of the device and the Controller should be the ID of your 1-wire controller. ROM ID/Address is the 1-wire device address. The Point should be set to 0 normally but can have other values if multiple devices are associated with the same 1-wire address (as can be seen in the screenshots). The Poll Interval is not a poll interval (the 1-wire controller continuously polls the devices) and is instead the amount the 1-wire device needs to change before PowerHome updates the device status and fires a trigger (1-wire happens so fast and can change so rapidly that this is needed to keep the eventlog and triggers from firing continuously. The thing to keep in mind is the the 1-wire value is stored internally as an integer (no decimal points). In the case of temperature, the resolution is to tenths of a degree so a Poll Interval for a temperature device means that PowerHome is only updated when the temperature changes by half a degree (73.5 would be stored as 735).

Anyways, that should get you started. Let me know how it goes.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
renard
Groupie
Groupie
Avatar

Joined: November 01 2009
Location: United States
Online Status: Offline
Posts: 74
Posted: August 18 2014 at 23:42 | IP Logged Quote renard

Dave,

Thanks for the reply. The About -> Help -> Controllers reports the 1-Wire controller is connected and the sensor with the appropriate ID is sensed on port 6. I am using the very cool www.denkovi.com prototyping board that has a flashing light when the board is polled as with OneWireViewer and I am getting no pooling activity. Should I be seeing any record on the PH activity log or the raw log relating to the 1-wire controller as I am seeing nothing? Also, should the PH Device List show any information from a 1-wire device like it does for a Insteon device like a thermostat? It is blank which I suppose is sensible since it is not reading the sensor. OneWireViewer reads the sensor on port 6 with no problem. Thanks again. Just to remind, this is a low priority-just playing around item for me.

Terry

__________________
Terry
Back to Top View renard's Profile Search for other posts by renard
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: August 19 2014 at 09:52 | IP Logged Quote dhoward

Terry,

You just need to add the sensor to the Analog I/O screen. Then PowerHome will start polling it and display it on the Device Status screen.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
renard
Groupie
Groupie
Avatar

Joined: November 01 2009
Location: United States
Online Status: Offline
Posts: 74
Posted: August 19 2014 at 23:50 | IP Logged Quote renard

Dave,

The sensor was setup on the analog screen from the beginning. I tried to post some screen shots but got a system error about unable to find a path. There was a part of someone elses path concatenated to mine.

Thanks,

Terry

__________________
Terry
Back to Top View renard's Profile Search for other posts by renard
 
renard
Groupie
Groupie
Avatar

Joined: November 01 2009
Location: United States
Online Status: Offline
Posts: 74
Posted: September 13 2014 at 15:55 | IP Logged Quote renard

What should I see in Debug Info with a properly functioning 1-Wire Controller? About/Controllers says 1-Wire Controller is connected, Single 1-Wire Sensor is setup in Analog Devices and 1-Wire ID is reflected in About/Controllers description of the 1-Wire Controller and 1-Wire sensor appears in device table along with the 80 or so Insteon devices and finally, when PH is initialized, the 1-Wire interface is polled (twice) but never polled again. This is what Debug Info says, what should it say (1-Wire at the bottom)?

*** PowerHome Debug Information (2014-09-13 13:40:20.162) ***
ii_recursion = 0
ii_logseq = 746
ii_sequence = 2048
ii_queueptr = 0
ib_exequeueservice: false
EXE Queue Rowcount = 0
EXE Queue Upperbound = 0
ii_tqueuecnt = 0
ii_pqueuecnt = 0
ii_qaptr = 0
Queue Avail Upperbound = 0
istr_temp ---
i_mbret = 0
i_mbtype = 0
i_type = 0
l_macrojumps = 0
l_macrorow = 0
s_inputmessage =
s_inputret =
s_macroid =
s_macroreturn =
s_mbmessage =
s_submacropath =
Multi-thread Count = 0
ii_mtstatus Upperbound: 0
ii_mtretval Upperbound: 0
il_mtretval Upperbound: 0
is_mtretval Upperbound: 0
[LOCAL1] =
[LOCAL2] =
[LOCAL3] =
[LOCAL4] =
[LOCAL5] =
[LOCAL6] =
[LOCAL7] =
[LOCAL8] =
[LOCAL9] =
[LOCAL10] =
[TEMP1] =
[TEMP2] =
[TEMP3] =
[TEMP4] =
[TEMP5] =
[TEMP6] =
[TEMP7] =
[TEMP8] =
[TEMP9] =
[TEMP10] =
*** Controller Debug Info ***
ID:
Controller Number: 1
Controller Type:
---
ib_connected: false
ib_process: false
ii_bufferptr = 0
ii_buffercurrptr = 0
ii_sendptr = 0
ii_port = 0
*** Controller Debug Info ***
ID: INSTEON
Controller Number: 2
Controller Type: INSTEON PLM
---
ib_connected: false
ib_process: false
ii_bufferptr = 0
ii_buffercurrptr = 0
ii_sendptr = 0
ii_port = 5
ii_remoterec = 0
ii_enroll = 0
ii_getlinks = 0
ii_emptylinks = 0
is_ip =
is_plcid = 19.77.15
is_phplcid = PLMCTLR1
is_firmware = 98
is_port =
is_devicetype = 0315
is_remoterec =
is_waitcmd =
is_waitcmdret =
is_kpl =
is_lastsendaddress =
is_lastsendid = THERMOSTAT
is_idrequest =
is_idrequestret =
is_echofile = d:\transfer\rawlog.txt
is_startalllink =
id_dimpercent = 3.85
id_bkinterval = 10
ii_sendcount = 0
ii_bkptr = 0
ii_bkcount = 0
ii_kpl = 0
ii_idtype = 0
ii_maxfailures = 5
ii_pcmd = 31
ii_hc = 32
ii_lastsendflags = 15
ii_lastsendcmd1 = 106
ii_lastsendcmd2 = 96
ii_matchtry = 0
it_lastsendtime = 13:40:04.718
is_lastaddress = 14.66.E7
ii_lastflags = 15
ii_lastcmd1 = 106
ii_lastcmd2 = 96
ii_lastcmdret = 33
is_lastaddressp = 23.A9.76
ii_lastflagsp = 15
ii_lastcmd1p = 25
ii_lastcmd2p = 0
ii_lastcmdretp = 0
ib_db: true
ib_bkremoterec: true
ii_bkstatus: 1
ib_bklocaldata: true
ib_allowspider: false
ib_restart: false
ib_wait: false
ii_writelocaldata: 0
ib_ackupdate: false
ib_groupcleanup: false
ii_enablebk: 1
ib_connecting: false
ib_idreq: false
ib_waittimeout: false
ib_resetplm: false
ib_processqueue: true
is_data =
is_incmd = RECEIVEINSTEONRAW=
is_lastsentcmd = sendinsteonraw=00 00 00 14 66 E7 0F 6A 60
is_lastsentcmdlog = sendinsteonraw=00 00 00 14 66 E7 0F 6A 60
ii_dataflag = 0
ii_datareq = 0
ii_datalen = 0
ii_incmd = 80
ib_acknak: false
*** Controller Debug Info ***
ID: 1WIRE
Controller Number: 3
Controller Type: 1WIRE
---
ib_connected: false
ib_process: false
ii_bufferptr = 0
ii_buffercurrptr = 0
ii_sendptr = 0
ii_port = 0


Thanks,

__________________
Terry
Back to Top View renard's Profile Search for other posts by renard
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: September 14 2014 at 22:12 | IP Logged Quote dhoward

Terry,

Not sure what is going on. According to the debug info, none of your controllers are currently connected. Probably the best way to solve this would be to schedule a remote session. Email me a phone number I can call and a date/time that will work for you and I'll try to set it up.

Thanks,

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
nick7920
Senior Member
Senior Member


Joined: March 04 2008
Location: United States
Online Status: Offline
Posts: 193
Posted: September 15 2014 at 00:03 | IP Logged Quote nick7920

sorry wrong post

Edited by nick7920 - September 15 2014 at 00:04
Back to Top View nick7920's Profile Search for other posts by nick7920
 
Lenny
Senior Member
Senior Member


Joined: January 06 2008
Online Status: Offline
Posts: 102
Posted: September 16 2014 at 16:56 | IP Logged Quote Lenny

Is there a list of supported controllers for 1-wire? I'm
looking at the Maxim integrated (USB) DS9490R#.
Thanks
Back to Top View Lenny's Profile Search for other posts by Lenny
 
renard
Groupie
Groupie
Avatar

Joined: November 01 2009
Location: United States
Online Status: Offline
Posts: 74
Posted: September 16 2014 at 23:40 | IP Logged Quote renard

Lenny,

I have been using material from Hobby Boards www.hobbyboards.com which has a lot of documentation and starter kits. Be advised I have discovered there are families of 1-Wire sensors with technical differences and the DS18B20 Temperature Sensors that Hobby Boards sells will not be supported by PH for a couple of weeks per Dave. He suggests DS18S20 which you probably can get from www.mouser.com which will work now. For prototyping, look into a Denkovi USB to One Wire interface module that you can get on eBay.

__________________
Terry
Back to Top View renard's Profile Search for other posts by renard
 
Lenny
Senior Member
Senior Member


Joined: January 06 2008
Online Status: Offline
Posts: 102
Posted: September 20 2014 at 09:54 | IP Logged Quote Lenny

Thanks for that info. I have ordered a lot of components
from mouser. I'll check out hobbyboards.
Back to Top View Lenny's Profile Search for other posts by Lenny
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum