Souliss release A5.2

470 views
Skip to first unread message

Di Maio, Dario

unread,
Apr 9, 2014, 3:56:17 AM4/9/14
to sou...@googlegroups.com

Hi,

Please find attached the testing release A5.2

Regards,
Dario.

From Mobile.

_Souliss release A5.2 n2.zip

Di Maio, Dario

unread,
Apr 14, 2014, 5:27:15 AM4/14/14
to sou...@googlegroups.com
_Souliss A5.2 rc0.zip
Message has been deleted

Fulvio Spelta

unread,
Apr 14, 2014, 7:20:30 AM4/14/14
to sou...@googlegroups.com
Hi Dario, I'm running some tests and it seems to run smootly.

Next days I'll try an OH configuration and I'll post results.
thanks

Il giorno lunedì 14 aprile 2014 11:27:15 UTC+2, Dario Di Maio ha scritto:

Di Maio, Dario

unread,
Apr 17, 2014, 12:04:07 PM4/17/14
to sou...@googlegroups.com

Hi,

attached the A5.2 rc1 it fix some bugs discovered by Fulvio and is suitable for operation with nRF24L01 radios.

Enjoy and give feedbacks.

Thanks,
Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
_Souliss A5.2 rc1.zip

Fulvio Spelta

unread,
Apr 18, 2014, 6:10:38 AM4/18/14
to sou...@googlegroups.com
I immediately update the testing lab! thanks.

Руслан Имаметдинов

unread,
Apr 20, 2014, 6:14:34 AM4/20/14
to sou...@googlegroups.com
Hi Dario!

Testnig NRFs again:

Debug output:

Wireless node:
(vNet)<SETADDR><|0x6512>

--after startding bridge:
(vNet)<IN><|0xB|0x17|0x6512|0x6511|0x5|0x0|0x0|0xDE|0x18>
(MaCaco)<IN><|0x5|0x0|0x0|0xDE|0x18|0x>
(MaCaco)<OUT><|0x15|0x0|0x0|0xDE|0x18|0x>
(vNet)<OUT><DADDR><|0x6511><|0x23|0x17|0x6511|0x6512>

--after pressing button on wireless node (led goes on after this only on wireles node)
(MaCaco)<OUT><|0x15|0x0|0x0|0xDE|0x18|0x>
(vNet)<OUT><DADDR><|0x6511><|0x23|0x17|0x6511|0x6512>
(MaCaco)<OUT><|0x15|0x0|0x0|0xDE|0x18|0x>
(vNet)<OUT><DADDR><|0x6511><|0x23|0x17|0x6511|0x6512>
(MaCaco)<OUT><|0x15|0x0|0x0|0xDE|0x18|0x>
(vNet)<OUT><DADDR><|0x6511><|0x23|0x17|0x6511|0x6512>
(MaCaco)<OUT><|0x15|0x0|0x0|0xDE|0x18|0x>
(vNet)<OUT><DADDR><|0x6511><|0x23|0x17|0x6511|0x6512>


Bridge:
(vNet)<SETADDR><|0x3C>
(vNet)<SETADDR><|0x6511>
(MaCaco)<OUT><|0x5|0x0|0x0|0xDE|0x18|0x>
(vNet)<OUT><DADDR><|0x6512><|0xB|0x17|0x6512|0x6511>


--ping bridge
64 bytes from 192.168.99.60: icmp_seq=8926 ttl=64 time=20.813 ms
64 bytes from 192.168.99.60: icmp_seq=8927 ttl=64 time=16.860 ms
64 bytes from 192.168.99.60: icmp_seq=8928 ttl=64 time=16.335 ms

--ping bridge after running souliss app (doesn't connect to bridge)
64 bytes from 192.168.99.60: icmp_seq=9042 ttl=64 time=27.255 ms
Request timeout for icmp_seq 9043
Request timeout for icmp_seq 9044
Request timeout for icmp_seq 9045

--after that bridge does not respond on pressing button.


here is my setting and test sketches:​



--
Ruslan.


С уважением, Имаметдинов Руслан.

Di Maio, Dario

unread,
Apr 20, 2014, 6:45:16 AM4/20/14
to sou...@googlegroups.com
Hi Ruslan,

as I can see from the log file the peer node is getting data from the bridge. May I suggest you to download PuTty and open two serial monitor with it, so that we can see on both sides.

Does you have a W5100/W5200 to have a try before to move over ENC28J60?

Dario.

Di Maio, Dario

unread,
Apr 20, 2014, 6:47:03 AM4/20/14
to sou...@googlegroups.com
I guess that the problem is on the SPI side, because the ENC28J60 use a different SPI driver that isn't the same used by the nRF24 drivers.

Dario.


On Sun, Apr 20, 2014 at 12:14 PM, Руслан Имаметдинов <r...@imarh.ru> wrote:

Руслан Имаметдинов

unread,
Apr 20, 2014, 6:48:31 AM4/20/14
to sou...@googlegroups.com

I can see both terminals together. One of them in virtual machine. I does not have wiznet chip here. But can get in from friend in some days

20.04.2014 14:45 пользователь "Di Maio, Dario" <dario....@souliss.net> написал:

Di Maio, Dario

unread,
Apr 20, 2014, 6:49:47 AM4/20/14
to sou...@googlegroups.com
Ok, in the while can you send the the logs on both sides?

Dario.

Руслан Имаметдинов

unread,
Apr 20, 2014, 6:53:42 AM4/20/14
to sou...@googlegroups.com

I have alredy sent it in previous letter. See wireless node & bridge section. Wireless node is a peer. Bridge is a bridge.

20.04.2014 14:49 пользователь "Di Maio, Dario" <dario....@souliss.net> написал:

Di Maio, Dario

unread,
Apr 20, 2014, 7:06:53 AM4/20/14
to sou...@googlegroups.com
Lets say that the problem is on SPI, once you start to send data over the nRF24 the ENC stops. I've to move the ENC drivers to use the standard SPI drivers from Arduino, because actually it use different ones.

Dario.

Di Maio, Dario

unread,
Apr 20, 2014, 7:12:26 AM4/20/14
to sou...@googlegroups.com
On the bridge, are you using an Atmega328 with standard pins for SPI communication over the ENC?

Dario.

Руслан Имаметдинов

unread,
Apr 20, 2014, 7:51:52 AM4/20/14
to sou...@googlegroups.com
Yes. Arduino pro mini uses 10 pin. And it defined as SS pin in standart arduino libraries.

С уважением, Имаметдинов Руслан.

Di Maio, Dario

unread,
Apr 20, 2014, 9:11:36 AM4/20/14
to sou...@googlegroups.com
While using ENC in file frame/vNet/driver/nRF24/RF24.cpp on line 34, remove the line:
SPI.setClockDivider(SPI_CLOCK_DIV4);

Let me know,
Dario.

Di Maio, Dario

unread,
Apr 20, 2014, 9:12:08 AM4/20/14
to sou...@googlegroups.com
Sorry, don't remote, change to SPI_CLOCK_DIV8 instead of 4.

Dario.

Руслан Имаметдинов

unread,
Apr 20, 2014, 9:42:14 AM4/20/14
to sou...@googlegroups.com

May you need know this. I use 8 mhz arduino pro mini.

20.04.2014 17:12 пользователь "Di Maio, Dario" <dario....@souliss.net> написал:

Di Maio, Dario

unread,
Apr 20, 2014, 9:43:34 AM4/20/14
to sou...@googlegroups.com

Ok, try as same and let me know.

Dario.

From Mobile.

Руслан Имаметдинов

unread,
Apr 20, 2014, 9:51:24 AM4/20/14
to sou...@googlegroups.com
SPI.setClockDivider(SPI_CLOCK_DIV4); is commented out:

void RF24::csn(int mode)
{
  // Minimum ideal SPI bus speed is 2x data rate
  // If we assume 2Mbs data rate and 16Mhz clock, a
  // divider of 4 is the minimum we want.
  // CLK:BUS 8Mhz:2Mhz, 16Mhz:4Mhz, or 20Mhz:5Mhz

/* NOTE : Ensure that SPI settings are feasible for all slaves */ 
 
/* 
  SPI.setBitOrder(MSBFIRST);
  SPI.setDataMode(SPI_MODE0);
  SPI.setClockDivider(SPI_CLOCK_DIV4);
*/

  digitalWrite(csn_pin,mode);
}


С уважением, Имаметдинов Руслан.

Di Maio, Dario

unread,
Apr 20, 2014, 10:00:12 AM4/20/14
to sou...@googlegroups.com
You still are using the old version and not the last one :) Get that one and then move from 4 to 8 the clock divider.

Dario.

Руслан Имаметдинов

unread,
Apr 20, 2014, 10:29:10 AM4/20/14
to sou...@googlegroups.com
Ok. i trying 5.2rc1
With it i get my bridge to resetting repeatedly:

setup start

(vNet)<SETADDR><|0x3C>
(vNet)<SETADDR><|0x6511>
(MaCaco)<OUT><|0x5|0x0|0

setup start

(vNet)<SETADDR><|0x3C>
(vNet)<SETADDR><|0x6511>
(MaCaco)<OUT><|0x5|0x0|0x

setup start

(vNet)<SETADDR><|0x3C>
(vNet)<SETADDR><|0x6511>
(MaCaco)<OUT><|0x5|0x0|0x

setup start

(vNet)<SETADDR><|0x3C>
(vNet)<SETADDR><|0x6511>
(MaCaco)<OUT><|0x5|0x0|0x0|0xDE|0x1

setup start

(vNet)<SETADDR><|0x3C>
(vNet)<SETADDR><|0x6511>
(MaCaco)<OUT><|0x5|0x0|

and so on...

С уважением, Имаметдинов Руслан.

Di Maio, Dario

unread,
Apr 20, 2014, 10:35:08 AM4/20/14
to sou...@googlegroups.com

Does it happen also for a standard node with ENC only?

Sorry for these strange behavoirs
Dario.

From Mobile.

Руслан Имаметдинов

unread,
Apr 20, 2014, 10:55:01 AM4/20/14
to sou...@googlegroups.com


С уважением, Имаметдинов Руслан.

Руслан Имаметдинов

unread,
Apr 20, 2014, 10:55:44 AM4/20/14
to sou...@googlegroups.com
With enc only it seems to be worked


setup start
(vNet)<SETADDR><|0x3C>
(vNet)<SETADDR><|0x6511>
(MaCaco)<OUT><|0x5|0x0|0x0|0xDE|0x18|0x>
(vNet)<OUT><DADDR><|0x0><|0xB|0x17|0x6512|0x3C>


С уважением, Имаметдинов Руслан.

Di Maio, Dario

unread,
Apr 20, 2014, 11:04:19 AM4/20/14
to sou...@googlegroups.com

With the DIV8 somenthing change? The continuos revboots are really strange...

Dario.

From Mobile.

Руслан Имаметдинов

unread,
Apr 20, 2014, 11:09:06 AM4/20/14
to sou...@googlegroups.com

No changes with div8

20.04.2014 19:04 пользователь "Di Maio, Dario" <dario....@souliss.net> написал:

Di Maio, Dario

unread,
Apr 20, 2014, 11:09:58 AM4/20/14
to sou...@googlegroups.com

I will investigate and let you know. With the W5100 it will work.

Dario.

From Mobile.

Di Maio, Dario

unread,
Apr 21, 2014, 4:09:04 AM4/21/14
to sou...@googlegroups.com

It runs an Atmega 168 or 328?

http://arduino.cc/en/Main/ArduinoBoardProMini

Dario

From Mobile.

On 20 Apr 2014 15:42, "Руслан Имаметдинов" <r...@imarh.ru> wrote:

Di Maio, Dario

unread,
Apr 21, 2014, 4:10:57 AM4/21/14
to sou...@googlegroups.com

Doesn't matter, they have the same pin mapping

From Mobile.

Руслан Имаметдинов

unread,
Apr 21, 2014, 4:11:13 AM4/21/14
to sou...@googlegroups.com
i use arduinos pro mini with Atmega 328 (8mhz 3.3v)


С уважением, Имаметдинов Руслан.

Di Maio, Dario

unread,
Apr 22, 2014, 7:25:38 AM4/22/14
to sou...@googlegroups.com
Hi,

attached the A5.2 RC2 that include support for W5500. This isn't tested against hardware, so volunteers are welcomed.

Dario.
_Souliss A5.2 rc2.zip

php

unread,
Apr 22, 2014, 10:41:54 AM4/22/14
to sou...@googlegroups.com
Hi Dario,
I have checked the new version supporting W5500.
If I compile the openHAB_Gateway.ino given file with no mods it's ok
If I modify the Boardtype parameter to 0x48 I get compilation errors
Thanks again for your help.
Best,
php
Compilation_errors.txt
openHAB_Gateway_W5500.ino

Di Maio, Dario

unread,
Apr 22, 2014, 10:55:56 AM4/22/14
to sou...@googlegroups.com

Please start with the example 1, now I need to understand if the IP side works; after we will move to openHAB.

Dario.

From Mobile.

--

php

unread,
Apr 22, 2014, 11:08:29 AM4/22/14
to sou...@googlegroups.com
If I compile example 1 with 0x48 as Boardtype parameter and 0x01 as Gatewaytype it's ok if I change Gatewaytype to 0x04 I get errors.
Document.txt

Di Maio, Dario

unread,
Apr 22, 2014, 11:27:50 AM4/22/14
to sou...@googlegroups.com

Again, use gateway 1 and SoulissApp. Step by step, please.

Dario.

From Mobile.

php

unread,
Apr 22, 2014, 11:39:30 AM4/22/14
to sou...@googlegroups.com
Sorry, I did it and it's ok with getway 0x01

Di Maio, Dario

unread,
Apr 22, 2014, 11:41:30 AM4/22/14
to sou...@googlegroups.com

That's nice, go into the openHAB code in interfaces folder and wherever there is ETH_W5100 || ETH_W5200 add || ETH_W5500 and should compile.

Let me know,
Dario.

From Mobile.

php

unread,
Apr 22, 2014, 1:02:57 PM4/22/14
to sou...@googlegroups.com
I have checked and added all the occurences were ETH_5500 was missing.
Now it's better compilation is ok with Boardtype 0x48, GatewayType 0x04 and Interface 0x01 but fails wit Interface 0x02
php
Document.txt

Di Maio, Dario

unread,
Apr 22, 2014, 1:56:50 PM4/22/14
to sou...@googlegroups.com

There is still some miss in some files, if you look in the IDE it should tell you in which file the missing is.

I will have a look later, let me know if you can solve it by yourself.

Thanks,
Dario.

From Mobile.

php

unread,
Apr 22, 2014, 2:41:31 PM4/22/14
to sou...@googlegroups.com
I have a look into w5x00.h and w5500.h and I think the solution is to merge the two into a unique w5x00.h file.
Do you agree that idea?
php

Di Maio, Dario

unread,
Apr 22, 2014, 2:55:31 PM4/22/14
to sou...@googlegroups.com

The W5500 files give only the access to the chip, if you was able to ping the board and connect with SoulissApp then no more action is required on that files.

Paste here the compiling errors that you get.

Dario

From Mobile.

php

unread,
Apr 22, 2014, 3:06:57 PM4/22/14
to sou...@googlegroups.com
my last sent document.txt shows double definitions between w5x00.h and w5500.h and also specific ones in each file.
is that I have to fix?
php

Di Maio, Dario

unread,
Apr 22, 2014, 3:10:28 PM4/22/14
to sou...@googlegroups.com

Ok, there is some piece of code that include w5x00.h without check if tge flag is ETH_W5500.

To solve the issue is required an #if as is into socket.cpp/.h file

Let me know,
Dario.

From Mobile.

php

unread,
Apr 22, 2014, 6:12:04 PM4/22/14
to sou...@googlegroups.com
I found in several files in webook directory incorrect path  #include "conf/ethUsrCfg.h" instead of #include "conf/eth/ethUsrCfg.h"
I'll go further...
php

php

unread,
Apr 23, 2014, 5:05:06 AM4/23/14
to sou...@googlegroups.com
Hi Dario,
Testing with example 1 is ok (ping only tested).
Please find joined modified w5x00.h file.
Do you agree?
Best,
php
w5x00.h

Di Maio, Dario

unread,
Apr 23, 2014, 5:45:00 AM4/23/14
to sou...@googlegroups.com
Sorry, why you are modifying the w5x00.h file?

Thanks,
Dario.

php

unread,
Apr 23, 2014, 6:21:42 AM4/23/14
to sou...@googlegroups.com
This is the way I found to fix compilation errors with my w5500 module.
php

Di Maio, Dario

unread,
Apr 23, 2014, 7:28:36 AM4/23/14
to sou...@googlegroups.com
I will have a look, thanks.

Is now your W5500 working with either SoulissApp and openHAB?

Dario.

php

unread,
Apr 23, 2014, 8:03:16 AM4/23/14
to sou...@googlegroups.com
Yes with the 2.
Joined document.txt with the modified lines into w5x00.h file.

Thanks again for your help.
Best,
php
Document.txt

Alessandro Del Pex

unread,
Apr 23, 2014, 12:53:12 PM4/23/14
to sou...@googlegroups.com
SoulissApp has been updated as well. Some bug fixed, new icons. Please close "fixed" issues and set them to "verified", or get them back to accepted if not resolved.

Thanks,
Alessandro


Il giorno mercoledì 9 aprile 2014 09:56:17 UTC+2, Dario Di Maio ha scritto:

Hi,

Please find attached the testing release A5.2

Regards,
Dario.

From Mobile.

Di Maio, Dario

unread,
Apr 23, 2014, 6:01:36 PM4/23/14
to sou...@googlegroups.com

Hi Russel,

I've done some tests with ENC and nRF and looks almost working, please ensure that in the I/O (relays, led, ...) you are not using any of the pin used for the ENC and nRF.

Let me know,
Dario.

From Mobile.

Di Maio, Dario

unread,
Apr 24, 2014, 5:53:12 PM4/24/14
to sou...@googlegroups.com

Hi,

Attached the RC3 that has a fix on driver (timing issue) for the nRF24 and an almost working HTTP/XML interface over ENC28J60.

I've tested the nRF24 and looks working properly on my tests, it would be great have some more test from the community focused on reliability over time.

The HTTP/XML interface running over ENC28J60 is almost working, but need a deep test. Unfortunately a Mega is required to cover the RAM requirements and I've no such type of board.
Actually the /status is working and others are not, anyone that would test can use the OPENHAB_DEBUG to collect data over the serial monitor. This will help to debug and have a full working interface.

Once the activity on UDP/XML will be completed, that interface will also be moved over the ENC.

Regards,
Dario.

From Mobile.

_Souliss A5.2 rc3.zip

Juan Pinto

unread,
Apr 24, 2014, 9:40:54 PM4/24/14
to sou...@googlegroups.com
Ok, Ill test it next week step by step with Mega EnC and nrf :)

Di Maio, Dario

unread,
Apr 25, 2014, 2:33:41 AM4/25/14
to sou...@googlegroups.com

That's great :)

From Mobile.

On 25 Apr 2014 03:40, "Juan Pinto" <juanp...@gmail.com> wrote:
Ok,  Ill test it next week step by step with Mega EnC and nrf :)

Juan Pinto

unread,
Apr 30, 2014, 10:15:16 AM4/30/14
to sou...@googlegroups.com
Ok, testing started, and some questions.

1-(confirmed) CS pin for ENC on MEGA is 10.
2-(obvious) ENC and NRF uses same MISO MOSI and SCK pins on Gateway, right?
3-On NRF2401 by default config CS pin 8 and CE pin 9, both pins are needed, right?

I modified my 485 sketches to get NRF working, I modified 42 to 45 on gateway BOARDYPE and from 43 to 46 on peer, I need to modify address too? I use 0xCE01 for peer.

For now, isn't working :(

Ty

Di Maio, Dario

unread,
Apr 30, 2014, 10:20:26 AM4/30/14
to sou...@googlegroups.com

Your peers should use 0x65 address.

My suggestion, start using nRF24 library by ManiacBug to ensure proper connection of radios.

Thanks,
Dario.

From Mobile.

To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/144c8ccf-3d9f-4d3a-a583-4cae0d33495b%40googlegroups.com.

Juan Pinto

unread,
Apr 30, 2014, 10:38:06 AM4/30/14
to sou...@googlegroups.com
You mean 0x6501 ? as address? I tried with 0xCE01 0x0012 and 0x6501 


--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/Sbd7WfiuA5w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Di Maio, Dario

unread,
Apr 30, 2014, 10:41:47 AM4/30/14
to sou...@googlegroups.com

Why 0xCE? You want to have three interfaces on a single device?

Let's start with easy things, use the example 15 for ethernet+nRF24 and then move yourself over more complex solutions.

Let me know,
Dario.

From Mobile.

Juan Pinto

unread,
Apr 30, 2014, 11:09:46 AM4/30/14
to sou...@googlegroups.com
No, Im just adapting my RS485 Gw and peer for testing only, I not seen this Example 15 before, sorry. I loaded both examples 15 and peer. 

I found the problem, just a wiring problem on MOSI MISO pins on peer :P

Ty for your help. :)






Di Maio, Dario

unread,
Apr 30, 2014, 11:11:46 AM4/30/14
to sou...@googlegroups.com

So is it working with ENC and nRF24?

There are also the openHAB interfaces over ENC to be tested, please :)

Thanks,
Dario.

From Mobile.

Juan Pinto

unread,
Apr 30, 2014, 11:19:10 AM4/30/14
to sou...@googlegroups.com
Yes! I need to separate nodes and make some testing, but it's working!

Test with Openhab it's done too! I have both examples from the wiki working, I have an error on Openhab console, file "f_bin2switch.map" missing on transform folder, but works ok.

I wanna implement some dimmer lights too, Im working on it :) I see an example for RGB led strip, I'll try to do the same with a mono-color led strip.

Ty


Di Maio, Dario

unread,
Apr 30, 2014, 11:24:02 AM4/30/14
to sou...@googlegroups.com

Ok, please at end report the results :)

From Mobile.

Juan Pinto

unread,
Apr 30, 2014, 1:00:50 PM4/30/14
to sou...@googlegroups.com
Well, I tested with NRF on every room and.... works PERFECT!!!

Very good work, again :) Ty




Di Maio, Dario

unread,
Apr 30, 2014, 2:59:55 PM4/30/14
to sou...@googlegroups.com
Which is the range that you are able to cover actually?

Please note that the HTTP and openHAB interface for ENC are known to have some bugs, please report them.

Thanks,
Dario.


Juan Pinto

unread,
May 1, 2014, 12:18:49 PM5/1/14
to sou...@googlegroups.com
I tested at 20mts and two floors ok :)

All it's ok with a MEGA, but I need to use this mega for a 3d printer so atmega644p gonna be my "definitive" gateway. But I have a problem.

Ethernet on ATMEGA644 with ENC its OK, pins used from 4 to 7:

I modified PINS on nRF24UsrCfg.h because pin 7 its used by SCK and 8 for RX, I configured on pins 10 and 11.

I loaded example 15 bridge, configured with Boardtype 0x05 and works ok.
But when I load with 0x45 only respond to a single Ping and stop responding :((

Maybe the nRF library it's not compatible with ATMEGA644P ??

Ty

Juan Pinto

unread,
May 1, 2014, 12:25:37 PM5/1/14
to sou...@googlegroups.com
One more question, on file vNetDriver_nrf24.cpp include a file #include "SPI.h" but what spi.h file is? ethENC28J60/src/spi.h or ethMRF24/src/spi.h ?
On ENC the pinout for 644p as defined well but on MRF24 not, maybe this is the problem.

Di Maio, Dario

unread,
May 1, 2014, 1:45:53 PM5/1/14
to sou...@googlegroups.com

The nRF24 use the official Arduino SPI library, rather the ENC use a custom SPI.

Most probably your official SPI doesn't support the 644.

Let me know,
Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Juan Pinto

unread,
May 1, 2014, 6:49:27 PM5/1/14
to sou...@googlegroups.com
Same thing happens when a try to configure for RS485 and NRF, responds to first ping and then goes to timeout :(  Maybe I can configure Atmega644 as peer using Ethernet connection but I need one more ENC and I haven't :(

It's so complex to correct this, can you give me some help?

Ty

Di Maio, Dario

unread,
May 2, 2014, 2:30:36 AM5/2/14
to sou...@googlegroups.com

Have you the SPI for 644? I mean, are you able to run only the nRF24?

Look for the 644 porting of the SPI.

Dario.

From Mobile.

Di Maio, Dario

unread,
May 2, 2014, 3:24:02 AM5/2/14
to sou...@googlegroups.com

Hi Juan,

I don't know if this has been solved

http://code.google.com/p/arduino-atmega644/issues/detail?id=2

Dario.
From Mobile.

Juan Pinto

unread,
May 2, 2014, 5:53:46 AM5/2/14
to sou...@googlegroups.com
I use a Sanguino bootloader, and it has a dedicated arduino-pins.h file 

I verified SPI printing on serial port :

Serial.println(MISO, DEC); 
...




--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/Sbd7WfiuA5w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.
pins_arduino.h

Di Maio, Dario

unread,
May 2, 2014, 6:35:36 AM5/2/14
to sou...@googlegroups.com

My suggestion is to load the Ping example from the nRF24 library by Maniac bug, so that you test the communication between the radios.

If this success, we can investigate on the Souliss side.

Dario.

From Mobile.

You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Juan Pinto

unread,
May 3, 2014, 5:43:27 PM5/3/14
to sou...@googlegroups.com
Ok, I loaded the ping example in a Mega and Atmega644, if I set 644 as Ping out everything works ok, but when I set 644 as Pong back

This is the PIN config I used for 644:

RF24 radio(2,3);


// sets the role of this unit in hardware.  Connect to GND to be the 'pong' receiver
// Leave open to be the 'ping' transmitter
const int role_pin = 14;

 I get this on Mega:

RF24/examples/pingpair/
ROLE: Ping out
STATUS           = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1     = 0xf0f0f0f0e1 0xf0f0f0f0d2
RX_ADDR_P2-5     = 0xc3 0xc4 0xc5 0xc6
TX_ADDR          = 0xf0f0f0f0e1
RX_PW_P0-6       = 0x08 0x08 0x00 0x00 0x00 0x00
EN_AA            = 0x3f
EN_RXADDR        = 0x03
RF_CH            = 0x4c
RF_SETUP         = 0x07
CONFIG           = 0x0f
DYNPD/FEATURE    = 0x00 0x00
Data Rate        = 1MBPS
Model            = nRF24L01+
CRC Length       = 16 bits
PA Power         = PA_HIGH
Now sending 87...ok...Failed, response timed out.
Now sending 1293...ok...Failed, response timed out.
Now sending 2495...ok...Failed, response timed out.
Now sending 3697...ok...Failed, response timed out.
Now sending 4899...ok...Failed, response timed out.
Now sending 6102...failed.
Failed, response timed out.
Now sending 7372...failed.
Failed, response timed out.
Now sending 8643...failed.
Failed, response timed out.
Now sending 9915...failed.
Failed, response timed out.
Now sending 11187...failed.
Failed, response timed out.
Now sending 12457...failed.
Failed, response timed out.
Now sending 13728...failed.
Failed, response timed out.
Now sending 14999...ok...Failed, response timed out.
Now sending 16201...ok...Failed, response timed out.
Now sending 17403...ok...Got response 0, round-trip delay: 17524
Now sending 18525...ok...Failed, response timed out.
Now sending 19729...ok...Failed, response timed out.
Now sending 20931...ok...Failed, response timed out.
Now sending 22133...ok...Failed, response timed out.

And this on 644:

RF24/examples/pingpair/

ROLE: Pong back

STATUS = 0x06 RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=3 TX_FULL=0
RX_ADDR_P0-1 = 0xf0f0f0f0c0 0xf0f0f0f0e0
RX_ADDR_P2-5 = 0xc1 0xc0 0xc0 0xc2
TX_ADDR = 0xf0f0f0f0c0
RX_PW_P0-6 = 0x00 0x00 0x00 0x00 0x00 0x00
EN_AA = 0x3f
EN_RXADDR = 0x01
RF_CH = 0x04
RF_SETUP = 0x03
CONFIG = 0x07
DYNPD/FEATURE = 0x00 0x00
Data Rate = 1MBPS
Model = nRF24L01+
CRC Length = Disabled
PA Power = PA_LOW
Got payload 6275...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 16128...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 505...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Sent response.

Got payload 12...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 1024...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Got payload 0...Sent response.

Got payload 193...Got

I keep trying

Ty!

Di Maio, Dario

unread,
May 3, 2014, 5:47:44 PM5/3/14
to sou...@googlegroups.com

Mmmh... Swap the radios and let me know.

Dario.

From Mobile.

Juan Pinto

unread,
May 3, 2014, 5:48:47 PM5/3/14
to sou...@googlegroups.com
Swap modules? or Ping - Pong function?


Di Maio, Dario

unread,
May 3, 2014, 5:49:49 PM5/3/14
to sou...@googlegroups.com

The modules.

From Mobile.

Juan Pinto

unread,
May 3, 2014, 5:56:31 PM5/3/14
to sou...@googlegroups.com
Same result :( Modules are ok, I tested before with the mega and mini :)

Di Maio, Dario

unread,
May 3, 2014, 5:59:48 PM5/3/14
to sou...@googlegroups.com

At which frequency is running the microcontroller? Go in the code and try to increase the delays, the drivers hasn't a feedback on actual status.

Let me know,
Dario.

From Mobile.

Juan Pinto

unread,
May 3, 2014, 8:13:30 PM5/3/14
to sou...@googlegroups.com
Im working with a 16 clock. 
Well, I solved a strange wiring problem, loaded example from nRF and get it working.
I loaded the examples from Souliss too. 
I modified pins from 2-5 used for buttons and leds ( PIN 5 is MOSI on 644 ) and I've configured nRF24UsrCfg.h to CE -> 2 // CS -> 3

Now the gateway with 644+nRF its working and ping responds ok. But I can get the peer slot's :((
Tomorrow I'll test the peer.

Anyway I think it's posible to get working the Atmega644+nRF !! =)) Near to be solved :)

Fulvio Spelta

unread,
May 3, 2014, 8:18:20 PM5/3/14
to sou...@googlegroups.com
Very good and important work. Thanks. f

Di Maio, Dario

unread,
May 4, 2014, 2:34:13 AM5/4/14
to sou...@googlegroups.com

Sure that they will work, you are on the right path.

Dario.

From Mobile.

Juan Pinto

unread,
May 4, 2014, 7:30:26 AM5/4/14
to sou...@googlegroups.com
Ok, it's working, I'm doing a stability test from last night for a few hours with Gateway (644+ENC+nRF ) and peer (Mega+nRF)

We need to take care about PIN's use, that was my problem. Maybe the GUI to configure a node can help to avoid using the same PIN for two "uses".

Ty

Juan José Ledesma Poveda

unread,
May 4, 2014, 7:44:08 AM5/4/14
to sou...@googlegroups.com
Hi, sorry to bother if this is not the way to do it. I wanted to tell you that I also wanted to use NRF24s and have made tests with two nodes (Mega and Mini) with NRF on each of them and communication seems to be working fine. I used PINs 7 & 8 without any problem. One of my problems has been that sometimes nodes don´t connect at first time after loading new code and the full node had to be reset (Arduino and sensors).
Congratulations for your good work.
Regards

Di Maio, Dario

unread,
May 4, 2014, 7:47:36 AM5/4/14
to sou...@googlegroups.com

So was just a pin used twice? Nice hear that's working.

Dario.

From Mobile.

Di Maio, Dario

unread,
May 4, 2014, 7:49:26 AM5/4/14
to sou...@googlegroups.com

A lot of Juan there :)

Dario.

From Mobile.

Juan Pinto

unread,
May 4, 2014, 7:49:34 AM5/4/14
to sou...@googlegroups.com

Juan Pinto

unread,
May 4, 2014, 11:40:24 AM5/4/14
to sou...@googlegroups.com
Well, finally this is may "Fat-Gateway" :P it have:
-2 DHT11
-1 LDR
-6 LED DIMMER
-1 LED RGB
-4 RELAYS
-6 BUTTONS
-1 IR Sender (Not enabled now)

I'll test for a few days for stability...

You need to modify \souliss\conf\frame\MaCacoCfg.h lines 245-246 to use more than 24 Slots:
#define MaCaco_NODES 30//45 // Number of remote nodes
#define MaCaco_SLOT 35//24 // Number of slot

With openhab enabled not responds to ping (I'll test soon).

The code:

#include "bconf/inSketch.h"
#define QC_BOARDTYPE 0x45 //Arduino with ENC28J60 Ethernet Shield and USART
#define QC_GATEWAYTYPE 0x01 //Gateway
#define QC_INTERFACE 0x00 //Gateway

#include <dht.h>

#include "Souliss.h"
#include "Typicals.h"
#include "SpeakEasy.h" // Is a library to code easy Souliss examples
#include <SPI.h>

//#include "extras/RGB_LedLamp.h" // Include the map for the IR codes
//#include "extras/MyRGB_LedLamp.cpp"

// Define the network configuration
//
// In the QuickCfg.h file set DEFAULT_BASEIPADDRESS[] = {192,168,1,0}
//#define peer3_address 0xCE04 
//#define peer2_address 0x6503 
#define peer_address 0x6512
#define bridge_address        0x6511
#define eth_bridge_address 0x0011
#define myvNet_subnet 0xFF00
#define myvNet_supern 0x0000
// defining myvNet_address as 0x0011 (is hexadecimal, in decimal is uqual to 17) gives
// as IP address 192.168.1.17, use this address in SoulissApp 


//USADOS POR ENC28J60  4 5 6 7
//USADOS POR nRF     1 2 5 6 7
//PIN definitions  
#define ButtonC_pin     0
//#define irLed_pin       3 //PWM

#define Relay0_pin      10
#define Relay1_pin      11

#define Led0_pin        12 //PWM
#define Led1_pin        13 //PWM
#define Led2_pin        14 //PWM
#define Led3_pin        15 //PWM

#define Button0_pin     16
#define Button1_pin     17
#define Button2_pin     18
#define Button3_pin     19
#define Button4_pin     20
#define Button5_pin     21

#define Relay2_pin      22
#define Relay3_pin      23

#define RGB_Red_pin     24
#define RGB_Green_pin   25
#define RGB_Blue_pin    26

#define Led4_pin        27 //PWM
#define Led5_pin        28 //PWM

#define SensorLDR_pin   A5
#define Sensor1_pin     A6
#define Sensor2_pin     A7

/*****************  SLOT DEFINITIONS  ***********************/


#define TEMPERATURE 0 // Identify the temperature logic
#define HUMIDITY 2 // Identify the humidaty logic
dht DHT;

#define TEMPERATURE2 4 // Identify the temperature logic
#define HUMIDITY2 6 // Identify the humidaty logic
dht DHT2;

#define LDR                     8

#define LED0       10
#define LED0_PWM       11
#define LED1       12
#define LED1_PWM       13
#define LED2       14
#define LED2_PWM       15
#define LED3       16
#define LED3_PWM       17
#define LED4       18
#define LED4_PWM       19
#define LED5       20
#define LED5_PWM       21

#define LEDRGB_0       22
#define LEDRED_0       23
#define LEDGREEN_0       24
#define LEDBLUE_0       25

#define RELAY0                 26
#define RELAY1                 27
#define RELAY2                 28
#define RELAY3                 29

// 0 to DISABLE 1 TO ENABLE "BLOCKS"
#define leds       1
#define botones    0
#define rgb        1
#define relays     1
#define sensors    1

void setup()
{
/****************** SET NETWORK *********************/ 
        //SetAddressingServer();
// Setup the network configuration
//
// The vNet address is 11(hex) that is 17(dec), so the IP address is
// the DEFAULT_BASEIPADDRESS[] defined in ethUsrCfg.h plus 17 on last 
// octect. If DEFAULT_BASEIPADDRESS[] = {192, 168, 1, 0} the IP address
// for the board will be 192.168.1.17
Souliss_SetAddress(bridge_address, myvNet_subnet, myvNet_supern);
        Souliss_SetAddress(eth_bridge_address, myvNet_subnet, myvNet_supern);

// Load the address also in the memory_map
Souliss_SetLocalAddress(memory_map, eth_bridge_address);
// Set the addresses of the remote nodes
Souliss_SetRemoteAddress(memory_map, peer_address, 1);
//Souliss_SetRemoteAddress(memory_map, peer2_address, 2);
//Souliss_SetRemoteAddress(memory_map, peer3_address, 3);

/******************* SET IR CONTROL ********************/
        //Souliss_SetT15(memory_map, MYLEDLOGIC2);  //irLed

/******************* SET LED STRIPS ********************/
if (leds){
        Souliss_SetT19(memory_map, LED0);  //LedPWM
Souliss_SetT19(memory_map, LED1);  //LedPWM
Souliss_SetT19(memory_map, LED2);  //LedPWM
Souliss_SetT19(memory_map, LED3);  //LedPWM
Souliss_SetT19(memory_map, LED4);  //LedPWM
Souliss_SetT19(memory_map, LED5);  //LedPWM
}
if(rgb) Set_LED_Strip(LEDRGB_0);      
/****************** SET RELAYS ************************/
if(relays){
        Set_SimpleLight(RELAY0); // Define a simple LED light logic
        Set_SimpleLight(RELAY1); // Define a simple LED light logic
        Set_SimpleLight(RELAY2); // Define a simple LED light logic        
        Set_SimpleLight(RELAY3); // Define a simple LED light logic  
}
/***************   SET SENSORS **************************/
if(sensors){
Set_Temperature(TEMPERATURE); // Define one temperature measure
Set_Humidity(HUMIDITY); // Define one humidity measure
        Set_Temperature(TEMPERATURE2); // Define one temperature measure
Set_Humidity(HUMIDITY2); // Define one humidity measure
        Souliss_SetT54(memory_map, LDR);
}
        // We connect a pushbutton between 5V and Button*_pin with a pulldown resistor 
// between pin2 and GND, the LED is connected to pin9 with a resistor to
// limit the current amount
//pinMode(irLed_pin, OUTPUT); // irLed
if(botones){
        pinMode(Button0_pin, INPUT); // Hardware pulldown required
pinMode(Button1_pin, INPUT); // Hardware pulldown required
        pinMode(Button2_pin, INPUT); // Hardware pulldown required
pinMode(Button3_pin, INPUT); // Hardware pulldown required
        pinMode(Button4_pin, INPUT); // Hardware pulldown required
pinMode(Button5_pin, INPUT); // Hardware pulldown required
}
if(leds){
pinMode(Led0_pin, OUTPUT); // Power the LED
pinMode(Led1_pin, OUTPUT); // Power the LED
pinMode(Led2_pin, OUTPUT); // Power the LedPWM
pinMode(Led3_pin, OUTPUT); // Power the LED
pinMode(Led4_pin, OUTPUT); // Power the LED
pinMode(Led5_pin, OUTPUT); // Power the LedPWM
}
if(rgb){
pinMode(RGB_Red_pin, OUTPUT); // Power the LED
pinMode(RGB_Green_pin, OUTPUT); // Power the LED
pinMode(RGB_Blue_pin, OUTPUT); // Power the LedPWM
}
if(relays){
pinMode(Relay0_pin, OUTPUT); // Power the LedPWM
pinMode(Relay1_pin, OUTPUT); // Power the LedPWM
pinMode(Relay2_pin, OUTPUT); // Power the LedPWM
pinMode(Relay3_pin, OUTPUT); // Power the LedPWM
}
       
      //openHABInit(memory_map);
        
}

void loop()
{   
// Here we start to play
EXECUTEFAST() {
UPDATEFAST();
FAST_50ms() { // We process the logic and relevant input and output every 50 milliseconds

    /*                    //         irLed Control
                        Souliss_Logic_T15(memory_map, MYLEDLOGIC2, &data_changed);
//ssDigOut(8, Souliss_T1n_Coil, MYLEDLOGIC2); // Use the pin9 to give power to the LED according to the logic
                        if(Souliss_isTrigged(memory_map, MYLEDLOGIC2))
{
         sendRGBRemote(Souliss_Output(memory_map, MYLEDLOGIC2));
 Souliss_ResetTrigger(data_changed);
}

     */                  
     
/*********************** BUTTON ASSIGNATION TO SLOT *********************/
if(botones){            ssDigInHold(Button0_pin, Souliss_T1n_OffCmd, Souliss_T1n_BrightUp, LED0);
                        ssDigInHold(Button1_pin, Souliss_T1n_OffCmd, Souliss_T1n_BrightUp, LED1);
                        ssDigInHold(Button2_pin, Souliss_T1n_OffCmd, Souliss_T1n_BrightUp, LED2);
                        ssDigInHold(Button3_pin, Souliss_T1n_OffCmd, Souliss_T1n_BrightUp, LED3);
                        ssDigInHold(Button4_pin, Souliss_T1n_OffCmd, Souliss_T1n_BrightUp, LED4);
                        ssDigInHold(Button5_pin, Souliss_T1n_OffCmd, Souliss_T1n_BrightUp, LED5);
}
 /************************** LOGIC LED STRIPS *************************/                      
 if(leds){
                        Souliss_Logic_T19(memory_map, LED0, &data_changed);                        
                        analogWrite(Led0_pin, Souliss_Output(memory_map, LED0_PWM)); // Use the pin9 to give power to the LED according to the logic
                        Souliss_Logic_T19(memory_map, LED1, &data_changed);                        
                        analogWrite(Led0_pin, Souliss_Output(memory_map, LED1_PWM)); // Use the pin9 to give power to the LED according to the logic
                        Souliss_Logic_T19(memory_map, LED2, &data_changed);                        
                        analogWrite(Led0_pin, Souliss_Output(memory_map, LED2_PWM)); // Use the pin9 to give power to the LED according to the logic
                        Souliss_Logic_T19(memory_map, LED3, &data_changed);                        
                        analogWrite(Led0_pin, Souliss_Output(memory_map, LED3_PWM)); // Use the pin9 to give power to the LED according to the logic
                        Souliss_Logic_T19(memory_map, LED4, &data_changed);                        
                        analogWrite(Led0_pin, Souliss_Output(memory_map, LED4_PWM)); // Use the pin9 to give power to the LED according to the logic
                        Souliss_Logic_T19(memory_map, LED5, &data_changed);                        
                        analogWrite(Led0_pin, Souliss_Output(memory_map, LED5_PWM)); // Use the pin9 to give power to the LED according to the logic
 }
 if(rgb){
                        Logic_LED_Strip(LEDRGB_0);
// Use the output values to control the PWM
analogWrite(RGB_Red_pin, Souliss_Output(memory_map, LEDRED_0));
analogWrite(RGB_Green_pin, Souliss_Output(memory_map, LEDGREEN_0));
analogWrite(RGB_Blue_pin, Souliss_Output(memory_map, LEDBLUE_0));
 }

/*************************** LOGIC RELAYS *********************************/
if(relays){
Logic_SimpleLight(RELAY0);
                        ssLowDigOut(Relay0_pin, Souliss_T1n_Coil, RELAY0);
Logic_SimpleLight(RELAY1);
                        ssLowDigOut(Relay0_pin, Souliss_T1n_Coil, RELAY1);
Logic_SimpleLight(RELAY2);
                        ssLowDigOut(Relay0_pin, Souliss_T1n_Coil, RELAY2);
Logic_SimpleLight(RELAY3);
                        ssLowDigOut(Relay0_pin, Souliss_T1n_Coil, RELAY3);
}
    
}
FAST_70ms() {   // We check incoming communication data every 70 milliseconds
// Here we handle here the communication with Android, commands and notification
// are automatically assigned to MYLIGHT
//ProcessCommunication();
}

                FAST_110ms() {
                        //openHABInterface(memory_map);

                }

if(sensors){
FAST_510ms() { // We retrieve data from the node with index 1 (peervNet_address)
//ssCommunicationChannels();
Logic_Temperature(TEMPERATURE);
Logic_Humidity(HUMIDITY);
}
FAST_710ms() { // We retrieve typical (device type connected to the board) for node with index 1
//ssGetTypicals();
                        Logic_Temperature(TEMPERATURE2);
Logic_Humidity(HUMIDITY2);
}
                FAST_1110ms() { // Compare previous and new input measure and provide the updates to SoulissApp
                      
                        Souliss_Logic_T54(memory_map, LDR, 0.05, &data_changed);
                }
}
                FAST_GatewayComms();
}
EXECUTESLOW() {
UPDATESLOW();

SLOW_10s() { // We handle the light timer with a 10 seconds base time
                        
if(leds){
                        Souliss_T19_Timer(memory_map, LED0);
                        Souliss_T19_Timer(memory_map, LED1);
                        Souliss_T19_Timer(memory_map, LED2);
                        Souliss_T19_Timer(memory_map, LED3);
                        Souliss_T19_Timer(memory_map, LED4);
                        Souliss_T19_Timer(memory_map, LED5);
}
 if(rgb)                       Timer_LED_Strip(LEDRGB_0);

if(relays){
                        Souliss_T11_Timer(memory_map, RELAY0);
                        Souliss_T11_Timer(memory_map, RELAY1);
                        Souliss_T11_Timer(memory_map, RELAY2);
                        Souliss_T11_Timer(memory_map, RELAY3);
}           
if(sensors){
                SLOW_50s() {  // Read temperature and humidity from DHT every 110 seconds  
// SENSOR 1
                        DHT.read11(Sensor1_pin);
                        float temperature = DHT.temperature;
Souliss_ImportAnalog(memory_map, TEMPERATURE, &temperature);
// Read humidity value from DHT sensor and convert from single-precision to half-precision
                        float humidity = DHT.humidity;
Souliss_ImportAnalog(memory_map, HUMIDITY, &humidity);
}
                SLOW_70s() {  // Read temperature and humidity from DHT every 110 seconds  
// SENSOR 2
                        DHT2.read11(Sensor2_pin);
                        float temperature2 = DHT2.temperature;
Souliss_ImportAnalog(memory_map, TEMPERATURE2, &temperature2);
// Read humidity value from DHT sensor and convert from single-precision to half-precision
                        float humidity2 = DHT2.humidity;
Souliss_ImportAnalog(memory_map, HUMIDITY2, &humidity2);      
}
                
                SLOW_110s() {  

               float ldr_read = analogRead(SensorLDR_pin);
                      Souliss_ImportAnalog(memory_map, LDR, &ldr_read);
}  
}
}


Juan Pinto

unread,
May 4, 2014, 11:42:00 AM5/4/14
to sou...@googlegroups.com
Sorry, souliss\conf\nRF24\nRF24UsrCfg.h need to be modified too. Lines 50-51

#define NRF24_RADIOEN 1 // Chip Enable Pin
#define NRF24_SPICS 2 // SPI Chip Select Pin

Di Maio, Dario

unread,
May 4, 2014, 12:02:38 PM5/4/14
to sou...@googlegroups.com

Please use IDE 1.5.4 and check the RAM usage.

Dario.

From Mobile.

Di Maio, Dario

unread,
May 12, 2014, 3:00:59 PM5/12/14
to sou...@googlegroups.com
Hi,

please find attached the release A5.2 in RC4, this fix most of the issues highlighted in the past days but still have something that isn't properly working on the openHAB/UDP as Fulvio stated in his previous email.

For most of the people this will work fine, including nRF24 and W5500 support.

Have a try and share feedbacks.

Regards,
Dario.
_Souliss A5.2 RC4.zip

Juan Pinto

unread,
May 12, 2014, 3:30:03 PM5/12/14
to sou...@googlegroups.com
Ok I'll test it next week :) I already done a PCB for an Arduino Mini /w nRF24l01 and some TIP122 and sensors. My gateway will be a 644+nRF+openhab
 
Ty

El miércoles, 9 de abril de 2014 09:56:17 UTC+2, Dario Di Maio escribió:

Hi,

Please find attached the testing release A5.2

Regards,
Dario.

From Mobile.

Juan Pinto

unread,
May 15, 2014, 7:25:17 PM5/15/14
to sou...@googlegroups.com
I don't know why, but I loaded ex15 again with RC4 and don't work :(
I loaded ping example from nRF library and works ok with the same modules and arduinos.

Configuration -> 644 + enc + nRF as Gateway and Mega + nRF as Peer
Modified PINS on Gateway example as I posted before to avoid double use of pins.

I keep trying this weekend to get it working, I've already maded a prototype pcb for a peer based on arduino mini + nRF, I upload pics when its working =) 

Ty

Di Maio, Dario

unread,
May 16, 2014, 2:33:31 AM5/16/14
to sou...@googlegroups.com

Most probably is your CS and CE, have a try and let me know.

Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Juan Pinto

unread,
May 16, 2014, 5:28:36 PM5/16/14
to sou...@googlegroups.com
PINS are Ok, 644+enc+nRF with ex15 show gateway node and responds but second node isn't work

I tried again with ping example and both modules are ok, I don't know why isn't working :((

Di Maio, Dario

unread,
May 16, 2014, 6:26:58 PM5/16/14
to sou...@googlegroups.com
Are you sure that you have no pins used twice? Try to load the previous release to have a try, but nothing should be changed.

Regards,
Dario.


Juan Pinto

unread,
May 17, 2014, 6:43:15 PM5/17/14
to sou...@googlegroups.com
I think that one of modules is broken :(( I'll try soon with other modules.



--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/Sbd7WfiuA5w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Di Maio, Dario

unread,
May 17, 2014, 7:36:59 PM5/17/14
to sou...@googlegroups.com

Even the maniacbug ping example isn't working?

Dario.

From Mobile.

Juan Pinto

unread,
May 17, 2014, 7:55:50 PM5/17/14
to sou...@googlegroups.com
Looks strange, when I put the module on Pong back everything works ok, but when it's on Ping Out role it send's this:

RF24/examples/pingpair/
ROLE: Ping out
STATUS           = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1     = 0xf0f0f0f0e1 0xf0f0f0f0d2
RX_ADDR_P2-5     = 0xc3 0xc4 0xc5 0xc6
TX_ADDR          = 0xf0f0f0f0e1
RX_PW_P0-6       = 0x08 0x08 0x00 0x00 0x00 0x00
EN_AA            = 0x3f
EN_RXADDR        = 0x03
RF_CH            = 0x4c
RF_SETUP         = 0x07
CONFIG           = 0x0f
DYNPD/FEATURE    = 0x00 0x00
Data Rate        = 1MBPS
Model            = nRF24L01+
CRC Length       = 16 bits
PA Power         = PA_HIGH
Now sending 87...failed.
Failed, response timed out.
Now sending 1359...failed.
Failed, response timed out.
Now sending 2629...ok...Failed, response timed out.
Now sending 3850...failed.
Failed, response timed out.
Now sending 5120...ok...Failed, response timed out.

And the most strange thing, in the other module I get this:

RF24/examples/pingpair/
ROLE: Pong back
STATUS           = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1     = 0xf0f0f0f0d2 0xf0f0f0f0e1
RX_ADDR_P2-5     = 0xc3 0xc4 0xc5 0xc6
TX_ADDR          = 0xf0f0f0f0d2
RX_PW_P0-6       = 0x08 0x08 0x00 0x00 0x00 0x00
EN_AA            = 0x3f
EN_RXADDR        = 0x03
RF_CH            = 0x4c
RF_SETUP         = 0x07
CONFIG           = 0x0f
DYNPD/FEATURE    = 0x00 0x00
Data Rate        = 1MBPS
Model            = nRF24L01+
CRC Length       = 16 bits
PA Power         = PA_HIGH
Got payload 87...Sent response.
Got payload 1359...Sent response.
Got payload 2629...Sent response.
Got payload 3850...Sent response.
Got payload 5120...Sent response.
Got payload 6327...Sent response.
Got payload 7537...Sent response.
Got payload 8754...Sent response.
Got payload 10023...Sent response.
Got payload 11293...Sent response.
Got payload 12563...Sent response.
Got payload 13769...Sent response.
Got payload 15039...Sent response.
Got payload 16310...Sent response.

I don't know what's happenin :(


Di Maio, Dario

unread,
May 17, 2014, 7:59:35 PM5/17/14
to sou...@googlegroups.com

Looks that the module number two us only able to receive data and not to send.

Go in the send function and icrease the delay at begin, it should give you a better result.

Let me know,
Dario.

P.S.: Can you have please a look in the Laihoz post?

From Mobile.

It is loading more messages.
0 new messages