Jeenode only port4 works?
Moderator: Mdamen
-
- Member
- Posts: 140
- Joined: Thu Jul 16, 2009 12:04 pm
- Location: Netherlands
Jeenode only port4 works?
After a lot of testing i can't get my jeenode with roomboard working in homeseer.
First:
- i used Jeenode_for_homeseer.pde from (Domotica Workshop\Software\HomeSeer\Workshop\JeeNode)
- my config of the ports looks like:
#define PIR_LDRPORT 1
#define LEDPORT 0
#define SHT11PORT 4
- my roomboard is above the rf chip (see attached picture)
with this configuration the temp and humi is displayed perfect, but move and light didn't work, light always 251 and no move. When i turn around my roomboard and changed the ports to:
#define PIR_LDRPORT 4
#define LEDPORT 0
#define SHT11PORT 1
then the light and move works perfect, but no temp and humi.
How's that possible?
I also checked if i can use port 2 of 3 instead of port 1, but same result, only port 4 works good,
In the homeseer log i see:
9-12-2010 23:52:53 - JeeData - 1,0,4,Move,0,Ligh,2,Humi,2,Temp,0,
9-12-2010 23:58:29 - JeeData - 1,2,0,251,38,217,
9-12-2010 23:59:44 - JeeData - 1,2,1,251,38,216,
First:
- i used Jeenode_for_homeseer.pde from (Domotica Workshop\Software\HomeSeer\Workshop\JeeNode)
- my config of the ports looks like:
#define PIR_LDRPORT 1
#define LEDPORT 0
#define SHT11PORT 4
- my roomboard is above the rf chip (see attached picture)
with this configuration the temp and humi is displayed perfect, but move and light didn't work, light always 251 and no move. When i turn around my roomboard and changed the ports to:
#define PIR_LDRPORT 4
#define LEDPORT 0
#define SHT11PORT 1
then the light and move works perfect, but no temp and humi.
How's that possible?
I also checked if i can use port 2 of 3 instead of port 1, but same result, only port 4 works good,
In the homeseer log i see:
9-12-2010 23:52:53 - JeeData - 1,0,4,Move,0,Ligh,2,Humi,2,Temp,0,
9-12-2010 23:58:29 - JeeData - 1,2,0,251,38,217,
9-12-2010 23:59:44 - JeeData - 1,2,1,251,38,216,
- Attachments
-
- DSC_4520_resize.JPG (50.61 KiB) Viewed 15420 times
Last edited by gjniewenhuijse on Sun Dec 12, 2010 5:10 pm, edited 2 times in total.
Re: Jeenode only port3 works?
Keep the config of the ports as provided (LEDPORT 3 is better than 0!) and room board orientation as shown on the picture.
9-12-2010 23:58:29 - JeeData - 1,2,0,251,38,217,
9-12-2010 23:59:44 - JeeData - 1,2,1,251,38,216,
I see a move there, watch the underlined & bold 0 and 1 values.
Hitting refresh in the HS status page won't work to check, too slow...
Tip: add an event to the move, you'll see it does trigger!
That's the only way I managed to test the PIR accurately.
Regarding light:
Put a black box or something else that blocks light over the room board.
Wait a while. Still no difference?
9-12-2010 23:58:29 - JeeData - 1,2,0,251,38,217,
9-12-2010 23:59:44 - JeeData - 1,2,1,251,38,216,
I see a move there, watch the underlined & bold 0 and 1 values.
Hitting refresh in the HS status page won't work to check, too slow...

Tip: add an event to the move, you'll see it does trigger!
That's the only way I managed to test the PIR accurately.
Regarding light:
Put a black box or something else that blocks light over the room board.
Wait a while. Still no difference?
-
- Member
- Posts: 140
- Joined: Thu Jul 16, 2009 12:04 pm
- Location: Netherlands
Re: Jeenode only port3 works?
Thanks for your answer.
I uploaded the original sketch to the board with the right port settings as you wrote above.
Yes sometimes i see movement in the log, but the light is always 251. When i put a blackbox over it i see only movement (from 0 to 1) but light gives 251
I checked my board with the original roomnode sketch and play with the light dan then it looks like it works, dark = 0, very light > 200.
I uploaded the original sketch to the board with the right port settings as you wrote above.
Yes sometimes i see movement in the log, but the light is always 251. When i put a blackbox over it i see only movement (from 0 to 1) but light gives 251
I checked my board with the original roomnode sketch and play with the light dan then it looks like it works, dark = 0, very light > 200.
Re: Jeenode only port4 works?
Hmm, that's rather strange... my LDR gives low values when there's light and higher when it's dark... ???dark = 0, very light > 200

Re: Jeenode only port4 works?
Low value = dark, high value = light. that's the way it works for me.
-
- Member
- Posts: 140
- Joined: Thu Jul 16, 2009 12:04 pm
- Location: Netherlands
Re: Jeenode only port4 works?
So the problem was the jeenode.
I created a new one with the same roomboard and now its works. So there is a problem on my original jeenode made at the workshop. But i checked and double checked everything, but cant find a reason why only 1 port works.
Anyone an idea?
Ow yes and on my new jeenode dark = 255 and light = 0.
O and i have a new problem: i cant get two jeenodes connected to the jeelinks, for the second one it gives:
10-12-2010 21:11:10 - JeeData - 1,0,4,Move,0,Ligh,2,Humi,2,Temp,0,
10-12-2010 21:11:10 - JeeData - processInitMessage
10-12-2010 21:11:10 - JeeData - init message
and after some time:
10-12-2010 21:11:50 - JeeData - 1,0,4,Move,0,Ligh,2,Humi,2,Temp,0,
10-12-2010 21:11:50 - JeeData - processInitMessage
10-12-2010 21:11:50 - JeeData - init message
thats the only thing he does..
I created a new one with the same roomboard and now its works. So there is a problem on my original jeenode made at the workshop. But i checked and double checked everything, but cant find a reason why only 1 port works.
Anyone an idea?
Ow yes and on my new jeenode dark = 255 and light = 0.
O and i have a new problem: i cant get two jeenodes connected to the jeelinks, for the second one it gives:
10-12-2010 21:11:10 - JeeData - 1,0,4,Move,0,Ligh,2,Humi,2,Temp,0,
10-12-2010 21:11:10 - JeeData - processInitMessage
10-12-2010 21:11:10 - JeeData - init message
and after some time:
10-12-2010 21:11:50 - JeeData - 1,0,4,Move,0,Ligh,2,Humi,2,Temp,0,
10-12-2010 21:11:50 - JeeData - processInitMessage
10-12-2010 21:11:50 - JeeData - init message
thats the only thing he does..
Re: Jeenode only port4 works?
Regarding the LDR values: isn't that strange?
I mean, an LDR has a high resistance in dark and low resistance in light.
So, with much light the LDR resistance is low, so the Analog-in will sense a low voltage, resulting in low device values, right?
I mean, an LDR has a high resistance in dark and low resistance in light.
So, with much light the LDR resistance is low, so the Analog-in will sense a low voltage, resulting in low device values, right?
Re: Jeenode only port4 works?
Did you make sure you gave them a different NodeID ?O and i have a new problem: i cant get two jeenodes connected to the jeelinks
You can do that from the JeeSecurity page.
You'll also get twice the amount of devices in Homeseer.
-
- Member
- Posts: 140
- Joined: Thu Jul 16, 2009 12:04 pm
- Location: Netherlands
Re: Jeenode only port4 works?
Yes i give them a different node id, now i have node 1 and 2 in homeseer, but when i connect two nodes it stops working..
Connect 1, connect 2 then node 1 works and node 2 hangs on init.
Connect 2, connect 1 then node 2 works and node 1 hangs on init.
I have uploaded the standard sketches from the workshop.
Connect 1, connect 2 then node 1 works and node 2 hangs on init.
Connect 2, connect 1 then node 2 works and node 1 hangs on init.
I have uploaded the standard sketches from the workshop.
Re: Jeenode only port4 works?
Well I haven't tested with 2 Nodes of course, but I don't see why it wouldn't work.
I'll look into this later this day/evening with a 2nd JeeNode with "dummy" Room Board
I'll look into this later this day/evening with a 2nd JeeNode with "dummy" Room Board
Re: Jeenode only port4 works?
Hmm.. I thought I had a spare RF12 module somewhere, but I can't find it anymore.
Could you show me what is written to the Homeseer log when 2 nodes are active and also what's in the HS log with only node 1 and only node 2?
Could you show me what is written to the Homeseer log when 2 nodes are active and also what's in the HS log with only node 1 and only node 2?
-
- Member
- Posts: 140
- Joined: Thu Jul 16, 2009 12:04 pm
- Location: Netherlands
Re: Jeenode only port4 works?
Yes very strange problem, but i find when it goes wrong:
power jeenode1, power jeenode2, startup homeseer : works
power jeenode1, startup homeseer, power jeenode2 : works
startup homeseer, power jeenode1, power jeenode2 : only jeenode1 works, jeenode2 hangs on init
startup homeseer, power jeenode2, power jeenode1 : only jeenode2 works, jeenode1 hangs on init
so my first conclusion: only the first jeenode is working when homeseer is already started and then the jeenodes are powered
power jeenode1, power jeenode2, startup homeseer : works
power jeenode1, startup homeseer, power jeenode2 : works
startup homeseer, power jeenode1, power jeenode2 : only jeenode1 works, jeenode2 hangs on init
startup homeseer, power jeenode2, power jeenode1 : only jeenode2 works, jeenode1 hangs on init
so my first conclusion: only the first jeenode is working when homeseer is already started and then the jeenodes are powered
- Attachments
-
- homeseerlog.zip
- homeseer log
- (14.75 KiB) Downloaded 593 times
Re: Jeenode only port4 works?
Something seems to go wrong with the HS response to the init message that HS received from the JN that was powered-up as last.
The response from Homeseer doesn't seem to reach the JeeNode that sent the init message.
I would focus on tracking the init response back to the JeeNode and locate where it goes wrong:
- does HS really send the response to the JeeLink and is it valid?
- does the JeeLink receive the init response and is it valid?
- does the JeeLink really send the message and is it valid?
I guess that's all I can do right now...
The response from Homeseer doesn't seem to reach the JeeNode that sent the init message.
I would focus on tracking the init response back to the JeeNode and locate where it goes wrong:
- does HS really send the response to the JeeLink and is it valid?
- does the JeeLink receive the init response and is it valid?
- does the JeeLink really send the message and is it valid?
I guess that's all I can do right now...
Re: Jeenode only port4 works?
I may have an idea; could you check something?
Add the following line:
after the
which can be found in the sendInitMessage() routine.
Compile, Upload and watch the Serial Monitor.
What numeric value do you see in the Serial Monitor after the line that says "Init zenden"?
Add the following line:
Code: Select all
Serial.println(sizeof toSend, DEC);
Code: Select all
Serial.println(" Init zenden");
Compile, Upload and watch the Serial Monitor.
What numeric value do you see in the Serial Monitor after the line that says "Init zenden"?