Adding more RPi's in one setup

Bremans
Posts: 4
Joined: Thu Feb 04, 2016 8:18 am

Thu Feb 04, 2016 8:29 am

Hi,

I'm using your platform and I like it alot. I have one RPi B+ which works but when I try to add a second one (RPi B+), it doesn't show up. They're both in the same LAN and the second RPi has a different location ID (and password). I also have assigned both locations to the same access identifier but no result.

Is it also possible that RPi model 2 isn't compatible?

Kind regards,

Bart
User avatar
pzygmunt
Posts: 5710
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Thu Feb 04, 2016 9:18 am

Hello,

Any RPBi model should be compatible. Please check last state of connection in file /boot/last_state.txt.

You can also check connection status live by connecting to the raspberry via ssh.

ssh pi@ip_address

sudo /etc/init.d/supla-dev stop
/usr/sbin/supla-dev -D
rbpi_log.png
rbpi_log.png (26.52 KiB) Viewed 2834 times
User avatar
pzygmunt
Posts: 5710
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Mon Feb 15, 2016 2:00 pm

By the way. I would like to encourage you to build WiFi-Socket or WiFi Gate module based on ESP8266.
This solution is much much cheaper than project based on Raspberry PI.
ESP module cost is ~5USD

You can have all supla-functions avaiable on Rasberry PI using ESP8266.
Please check this instruction: http://www.instructables.com/id/ESP8266 ... martphone/


Avaiable firmware:
https://github.com/SUPLA/ESP8266/tree/m ... e-firmware
https://github.com/SUPLA/ESP8266/tree/m ... are-gpio54
https://github.com/SUPLA/ESP8266/tree/m ... t-firmware
KresoMat
Posts: 8
Joined: Mon Mar 21, 2016 10:16 pm

Tue Mar 22, 2016 7:00 pm

hi

i moved our discussion here; as told to not contaminate introduce thread
me:
ok, i saw Supla site and had to test it....
my raspberry1 connected, (esp modules will connect soon)
question; can someone point me to howto link what can i change in pi@raspberrypi /etc/supla-dev $ cat supla.cfg ?? (more gpio?, cust.icons?)
q2 : my iphone app cant logint with credential which work well on android... only blinking, kind-off load unload fast...
ok other questions i will shut out of introduce section... to not contaminate introduce, respond to private-mail, so we can go elsewhere..
regards!!
pzygmunt respond (very fast :):
a1: You can set additional channels if you want (additional GPIO's). You can change channel function at cloud.supla.org (then icon will changed).
Please describe what you exactly need
a2: please update iOS to the latest version
i would like to continue;

1) i would like to add lights functionality onto rpi and (one day dimming too...)
1a) if you like we can make some pwm multichannel addon board with http://www.ti.com/lit/ds/symlink/tlc5947.pdf and mosfets or something like that if you can send SPI on rpi output would be easy and powerful.... is not big work for me to make and share schematic/pcb/gerbers for some rpi or esp exteension, so i can help in some way on hw...

2) you told we can set channels on rpi;
[SERVER]
host=127.0.0.1
tcp_port=2015
ssl_port=2016
ssl_enabled=Y

[CHANNEL_0] is it just a name or is connected on server to exact name
type=2000 is there some explanation of available type ? i would like lights on rpi
gpio1=27 this is a known part, but which are available ? all free ?

Image

[CHANNEL_1]
type=2000
gpio1=22

[CHANNEL_2]
type=2000
gpio1=17

[CHANNEL_3]
type=1000
gpio1=24

[CHANNEL_4]
type=1000
gpio1=23

[CHANNEL_5]
type=1000
gpio1=18

same work we can make on esp...
SPI is available on bigger esp, but on esp01 only serial so adding PIC with few in, few out, and few pwm would be great :) i used 16f1827 very cheap and powerful enough wit internal clock to do job like that.. :), im good with pic(basic pro) but bad with gcc :(
KresoMat
Posts: 8
Joined: Mon Mar 21, 2016 10:16 pm

Tue Mar 22, 2016 7:04 pm

ah... regarding ios,
i wouldn't upgrade it,
IOS V 7.1 (11D167) JailBroken on I5 all work like charm....
i have lot useful apps which wouldn't like to lose...
but in supla app is written that don't need never then ios 6 if I memorised good...

regards
User avatar
pzygmunt
Posts: 5710
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Wed Mar 23, 2016 11:23 am

KresoMat wrote:ah... regarding ios,
i wouldn't upgrade it,
IOS V 7.1 (11D167) JailBroken on I5 all work like charm....
i have lot useful apps which wouldn't like to lose...
but in supla app is written that don't need never then ios 6 if I memorised good...

regards
We tested the software using iOS ( <9.0 ) installed on the simulators. And it works with all > 6.1. But we have received notifications from users that there is some problem on hardware with iOS < 9.0
KresoMat
Posts: 8
Joined: Mon Mar 21, 2016 10:16 pm

Wed Mar 23, 2016 8:37 pm

Hi, any comment about my post no 3 ?
would like to know how to change gate to light fn..
[CHANNEL_0] is it just a name or is connected on server to exact name
type=2000 is there some explanation of available type ? i would like lights on rpi
gpio1=27 this is a known part, but which are available ? all free ?
User avatar
pzygmunt
Posts: 5710
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Thu Mar 24, 2016 8:41 am

Change channel type from 2000 to 2010.

At this moment RB PI supports the following types:

1000 - sensor normal open
2000 - RELAYHFD4 - gates, doors etc.
2010 - RELAYG5LA1A - gates, doors, lights, power
2020 - 2x2XRELAYG5LA1A - roller shutter
3000 - thermometer DS18B20


Next will be:
SUPLA_CHANNELTYPE_SENSORNC 1010
SUPLA_CHANNELTYPE_CALLBUTTON 1500
SUPLA_CHANNELTYPE_RELAY 2900
SUPLA_CHANNELTYPE_DHT11 3010
SUPLA_CHANNELTYPE_DHT22 3020
SUPLA_CHANNELTYPE_AM2302 3030
SUPLA_CHANNELTYPE_DIMMER 4000
SUPLA_CHANNELTYPE_RGBLED 4010
SUPLA_CHANNELTYPE_DIMMERANDRGBLED 4020
KresoMat
Posts: 8
Joined: Mon Mar 21, 2016 10:16 pm

Fri Mar 25, 2016 5:19 pm

ah bummer, i have I5 ios7.1JB and old motorola defi mini 320, noone current work with suplaAPP...
at least 'till i upgrade, actually have kids tablet where work, but they delete it in a minute...
jangolen
Posts: 16
Joined: Thu Apr 14, 2016 6:10 pm

Thu Apr 28, 2016 10:42 pm

pzygmunt wrote:Next will be:
offer -

SUPLA_CHANNELTYPE_SERVO 5000
SUPLA_CHANNELTYPE_360SERVO 5010
SUPLA_CHANNELTYPE_MOTOR 5020
SUPLA_CHANNELTYPE_STEPMOTOR 5030
SUPLA_CHANNELTYPE_WATERPUMP 5040
SUPLA_CHANNELTYPE_WATERVALVE 5050

I'm tested servo PWM on esp2866 on NodeMCU. Command pwm.setup(pin, clock, duty) do right job for my servo
clock=50 and duty form 32 to 132 rotate servo on 180 degree
it's nice to see servo command in future for open window leaf as ezaple
Post Reply