Jeenode only port4 works?

All about Arduino, Jeenode and other Clones (hardware & Software)

Moderator: Mdamen

Post Reply
gjniewenhuijse
Member
Member
Posts: 140
Joined: Thu Jul 16, 2009 12:04 pm
Location: Netherlands

Jeenode only port4 works?

Post by gjniewenhuijse »

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,
Attachments
DSC_4520_resize.JPG
DSC_4520_resize.JPG (50.61 KiB) Viewed 15426 times
Last edited by gjniewenhuijse on Sun Dec 12, 2010 5:10 pm, edited 2 times in total.
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Jeenode only port3 works?

Post by Digit »

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?
gjniewenhuijse
Member
Member
Posts: 140
Joined: Thu Jul 16, 2009 12:04 pm
Location: Netherlands

Re: Jeenode only port3 works?

Post by gjniewenhuijse »

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.
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Jeenode only port4 works?

Post by Digit »

dark = 0, very light > 200
Hmm, that's rather strange... my LDR gives low values when there's light and higher when it's dark... ??? :D
wwolkers
Member
Member
Posts: 273
Joined: Tue Sep 23, 2008 10:10 am
Location: Netherlands
Contact:

Re: Jeenode only port4 works?

Post by wwolkers »

Low value = dark, high value = light. that's the way it works for me.
gjniewenhuijse
Member
Member
Posts: 140
Joined: Thu Jul 16, 2009 12:04 pm
Location: Netherlands

Re: Jeenode only port4 works?

Post by gjniewenhuijse »

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..
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Jeenode only port4 works?

Post by Digit »

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?
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Jeenode only port4 works?

Post by Digit »

O and i have a new problem: i cant get two jeenodes connected to the jeelinks
Did you make sure you gave them a different NodeID ?
You can do that from the JeeSecurity page.

You'll also get twice the amount of devices in Homeseer.
gjniewenhuijse
Member
Member
Posts: 140
Joined: Thu Jul 16, 2009 12:04 pm
Location: Netherlands

Re: Jeenode only port4 works?

Post by gjniewenhuijse »

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.
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Jeenode only port4 works?

Post by Digit »

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
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Jeenode only port4 works?

Post by Digit »

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?
gjniewenhuijse
Member
Member
Posts: 140
Joined: Thu Jul 16, 2009 12:04 pm
Location: Netherlands

Re: Jeenode only port4 works?

Post by gjniewenhuijse »

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
Attachments
homeseerlog.zip
homeseer log
(14.75 KiB) Downloaded 594 times
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Jeenode only port4 works?

Post by Digit »

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...
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Jeenode only port4 works?

Post by Digit »

I may have an idea; could you check something?

Add the following line:

Code: Select all

Serial.println(sizeof toSend, DEC);
after the

Code: Select all

Serial.println(" Init zenden");
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"?
Post Reply

Return to “Raspberry, Arduino, Cubietruck and other clones Forum”