Thank you PaulS,
Rodan's ds3234 RTC library
here is my code. The loop is reduced to the bare minimum. Using the ui command #8 one can read the RTC. If from power up I stay in ui, ill get the epoch ok. If I press go and continue to the second part of the setup then to the loop and then I break again to ui the epoch returned by #8 is zero or complete nonsense. The interesting part in the second part of the setup involves accesses to the enet / sd chips. If all are commented then #8 returns correct time. If one is uncommented #8 returns garbage. The monitor output below in italic
I can not imagine how different devices can conflict on the spi. As long as a device is deselected it is supposed to float and ignore the transactions with any other device(?)
starting
C:\Users\Guy\Google Drive\arduino sw_12_12.ino
fname:_12
version #:12
version string:12
clock seems ok
epoch= 1527100114 epoch local= 1527100114
spare3 spare2 irrigate autorun | persHalt away armed NightOnly | alamEnable Log2Eeprom CLOUD SMS | email checkInet hasEnet synClock
18:28:34 version 12
next synch hour 19; exist stored args true; pir index 0; density 0; latchedDensityIndex 0
next record 96; arg record 95; args 2; old sensor word 3FFFF; sensor assembler3FFFF; sensor open 0; InetOK true
free eeprom ----------- 423/500
Q local time dhmse----- wednsday 18:28:35 1527100114
K syncClock ----------- false
T has Enet ------------ true
I do Check Inet is ---- false
E do email is --------- false
M do SMS is ----------- false
C do log2cloud is ----- false
L do log to eeprom is - false
A alarmEnable is ------ false
N night only ---------- false
R armed --------------- false
P away ---------------- false
H persistant halt is -- false
U AUTORUN ------------- false
Y irrigate is---------- false
G Go execute - unless exceptions
W valvesSetup
D dump Eeprom
V Erase Eeprom to virgin state (0xff)
1 ping SMS server, 2 ping Inet, 3 simulate mouvement, 4 sync time, 5 log, 6 write args, 7 read args, 8 get RTC, 9 poke eeprom
S siren is false
Current uiLoops=1
got '8'
epoch 1527100770
spare3 spare2 irrigate autorun | persHalt away armed NightOnly | alamEnable Log2Eeprom CLOUD SMS | email checkInet hasEnet synClock
18:39:25 version 12
next synch hour 19; exist stored args true; pir index 0; density 0; latchedDensityIndex 0
next record 96; arg record 95; args 2; old sensor word 3FFFF; sensor assembler3FFFF; sensor open 0; InetOK true
free eeprom ----------- 423/500
Q local time dhmse----- wednsday 18:39:26 1527100765
K syncClock ----------- false
T has Enet ------------ true
I do Check Inet is ---- false
E do email is --------- false
M do SMS is ----------- false
C do log2cloud is ----- false
L do log to eeprom is - false
A alarmEnable is ------ false
N night only ---------- false
R armed --------------- false
P away ---------------- false
H persistant halt is -- false
U AUTORUN ------------- false
Y irrigate is---------- false
G Go execute - unless exceptions
W valvesSetup
D dump Eeprom
V Erase Eeprom to virgin state (0xff)
1 ping SMS server, 2 ping Inet, 3 simulate mouvement, 4 sync time, 5 log, 6 write args, 7 read args, 8 get RTC, 9 poke eeprom
S siren is false
Current uiLoops=2
got 'g'
18:39:36 storing args..
18:39:36 write args: args/record/room = 2 95 423
18:39:36 same args, not writing
18:39:36 running...
18:39:36 Logging startup message to phant
18:39:36 Log to cloud disallowed, not logging - ignore any success report. Below preamble and log
GET /input/G2OjZV83y9S7orN77l3Y?private_key=NWDewMdKNjiBM61BBqAl&log=18:39:36_
Starting_version_12
18:39:36 posted to phant ok
>>>>>Setup ended<<<<<
spare3 spare2 irrigate autorun | persHalt away armed NightOnly | alamEnable Log2Eeprom CLOUD SMS | email checkInet hasEnet synClock
18:39:40 version 12
next synch hour 19; exist stored args true; pir index 0; density 0; latchedDensityIndex 0
next record 96; arg record 95; args 2; old sensor word 3FFFF; sensor assembler3FFFF; sensor open 0; InetOK true
free eeprom ----------- 423/500
Q local time dhmse----- wednsday 18:39:41 1527100780
K syncClock ----------- false
T has Enet ------------ true
I do Check Inet is ---- false
E do email is --------- false
M do SMS is ----------- false
C do log2cloud is ----- false
L do log to eeprom is - false
A alarmEnable is ------ false
N night only ---------- false
R armed --------------- false
P away ---------------- false
H persistant halt is -- false
U AUTORUN ------------- false
Y irrigate is---------- false
G Go execute - unless exceptions
W valvesSetup
D dump Eeprom
V Erase Eeprom to virgin state (0xff)
1 ping SMS server, 2 ping Inet, 3 simulate mouvement, 4 sync time, 5 log, 6 write args, 7 read args, 8 get RTC, 9 poke eeprom
S siren is false
Current uiLoops=3
got '8'
epoch 1293939602
spare3 spare2 irrigate autorun | persHalt away armed NightOnly | alamEnable Log2Eeprom CLOUD SMS | email checkInet hasEnet synClock
18:40:01 version 12
next synch hour 19; exist stored args true; pir index 0; density 0; latchedDensityIndex 0
next record 96; arg record 95; args 2; old sensor word 3FFFF; sensor assembler3FFFF; sensor open 0; InetOK true
free eeprom ----------- 423/500
Q local time dhmse----- wednsday 18:40:2 1527100801
K syncClock ----------- false
T has Enet ------------ true
I do Check Inet is ---- false
E do email is --------- false
M do SMS is ----------- false
C do log2cloud is ----- false
L do log to eeprom is - false
A alarmEnable is ------ false
N night only ---------- false
R armed --------------- false
P away ---------------- false
H persistant halt is -- false
U AUTORUN ------------- false
Y irrigate is---------- false
G Go execute - unless exceptions
W valvesSetup
D dump Eeprom
V Erase Eeprom to virgin state (0xff)
1 ping SMS server, 2 ping Inet, 3 simulate mouvement, 4 sync time, 5 log, 6 write args, 7 read args, 8 get RTC, 9 poke eeprom
S siren is false
Current uiLoops=4
got '8'
epoch 0
spare3 spare2 irrigate autorun | persHalt away armed NightOnly | alamEnable Log2Eeprom CLOUD SMS | email checkInet hasEnet synClock
18:40:05 version 12
next synch hour 19; exist stored args true; pir index 0; density 0; latchedDensityIndex 0
next record 96; arg record 95; args 2; old sensor word 3FFFF; sensor assembler3FFFF; sensor open 0; InetOK true
free eeprom ----------- 423/500
Q local time dhmse----- wednsday 18:40:6 1527100805
K syncClock ----------- false
T has Enet ------------ true
I do Check Inet is ---- false
E do email is --------- false
M do SMS is ----------- false
C do log2cloud is ----- false
L do log to eeprom is - false
A alarmEnable is ------ false
N night only ---------- false
R armed --------------- false
P away ---------------- false
H persistant halt is -- false
U AUTORUN ------------- false
Y irrigate is---------- false
G Go execute - unless exceptions
W valvesSetup
D dump Eeprom
V Erase Eeprom to virgin state (0xff)
1 ping SMS server, 2 ping Inet, 3 simulate mouvement, 4 sync time, 5 log, 6 write args, 7 read args, 8 get RTC, 9 poke eeprom
S siren is false
Current uiLoops=5
got '8'
epoch 1294659690
spare3 spare2 irrigate autorun | persHalt away armed NightOnly | alamEnable Log2Eeprom CLOUD SMS | email checkInet hasEnet synClock
18:40:10 version 12
next synch hour 19; exist stored args true; pir index 0; density 0; latchedDensityIndex 0
next record 96; arg record 95; args 2; old sensor word 3FFFF; sensor assembler3FFFF; sensor open 0; InetOK true
free eeprom ----------- 423/500
Q local time dhmse----- wednsday 18:40:11 1527100810
K syncClock ----------- false
T has Enet ------------ true
I do Check Inet is ---- false
E do email is --------- false
M do SMS is ----------- false
C do log2cloud is ----- false
L do log to eeprom is - false
A alarmEnable is ------ false
N night only ---------- false
R armed --------------- false
P away ---------------- false
H persistant halt is -- false
U AUTORUN ------------- false
Y irrigate is---------- false
G Go execute - unless exceptions
W valvesSetup
D dump Eeprom
V Erase Eeprom to virgin state (0xff)
1 ping SMS server, 2 ping Inet, 3 simulate mouvement, 4 sync time, 5 log, 6 write args, 7 read args, 8 get RTC, 9 poke eeprom
S siren is false
Current uiLoops=6