DS2413 is not connected

I have 2x of the DS2413/Onewire expansion boards to control my old FTSs system and after the most recent update it looks like they both had their DS2413 chips go bad as the Onewire sensors all still report properly but the UI just shows ‘DS2413 is not connected’ for the DC portion of the boards. I have reset and rolled back firmware with nothing helping as well as adjusted my connections even though it was working before the update. Any ideas or ways to get this fixed ASAP? Thanks!

If a single OneWire device malfunctions, all others lose connection as well (this is a limitation to how OneWire works). Does the problem persist if you unplug all boards and sensors, and then reconnect them one by one?

Additionally: if you check the Spark service logs (docker-compose logs --follow spark-one), it logs an event when OneWire devices are connected or disconnected.

I took a look at the logs and it looks like it connected and then disconnected immediately after the last update and never came back up. The temperature sensors all show disconnect and reconnect every time but I am not seeing any reports of the DS2413.

spark_1     | 2021/09/07 17:29:00 INFO     __main__                        firmware.ini: {'firmware_version': 'feb0f526', 'firmware_date': '2021-09-05', 'firmware_sha': 'feb0f526905d65d85f9b589337023b6e004b67cc', 'proto_version': 'f1b0d77b', 'proto_date': '2021-09-01', 'system_version': '3.1.0'}
spark_1     | 2021/09/07 17:29:00 INFO     brewblox_service.service        Service name: spark
spark_1     | 2021/09/07 17:29:00 INFO     brewblox_service.service        Service info:  @ Tue Sep  7 11:09:19 UTC 2021
spark_1     | 2021/09/07 17:29:00 INFO     brewblox_service.service        Service config: {'host': '0.0.0.0', 'port': 5000, 'name': 'spark', 'debug': False, 'mqtt_protocol': 'mqtt', 'mqtt_host': 'eventbus', 'mqtt_port': None, 'mqtt_path': '/eventbus', 'history_topic': 'brewcast/history', 'state_topic': 'brewcast/state', 'simulation': False, 'device_host': None, 'device_port': 8332, 'device_serial': None, 'device_id': '290020001147383531363134', 'discovery': 'all', 'command_timeout': 20, 'broadcast_interval': 5, 'volatile': False, 'datastore_topic': 'brewcast/datastore', 'skip_version_check': False}
spark_1     | 2021/09/07 17:29:00 INFO     brewblox_service.mqtt           Starting <EventHandler for mqtt://eventbus:1883>
spark_1     | 2021/09/07 17:29:00 INFO     brewblox_service.mqtt           listen(brewcast/datastore/brewblox-global)
spark_1     | 2021/09/07 17:29:00 INFO     brewblox_service.mqtt           subscribe(brewcast/datastore/brewblox-global)
spark_1     | 2021/09/07 17:29:00 INFO     brewblox_service.mqtt           listen(brewcast/spark/blocks/create)
spark_1     | 2021/09/07 17:29:00 INFO     brewblox_service.mqtt           listen(brewcast/spark/blocks/write)
spark_1     | 2021/09/07 17:29:00 INFO     brewblox_service.mqtt           listen(brewcast/spark/blocks/patch)
spark_1     | 2021/09/07 17:29:00 INFO     brewblox_service.mqtt           listen(brewcast/spark/blocks/delete)
spark_1     | 2021/09/07 17:29:00 INFO     brewblox_service.mqtt           subscribe(brewcast/spark/blocks/#)
spark_1     | 2021/09/07 17:29:01 INFO     brewblox_service.mqtt           <EventHandler for mqtt://eventbus:1883> connected
spark_1     | 2021/09/07 17:29:01 INFO     ..._devcon_spark.service_store  <ServiceConfigStore> read {'namespace': 'spark-service', 'id': 'spark-service-db', 'data': {'autoconnecting': True, 'retry_interval': 2}}
spark_1     | 2021/09/07 17:29:01 ERROR    ...x_devcon_spark.global_store  <GlobalConfigStore> read error ClientResponseError(500, message='Internal Server Error', url=URL('http://history:5000/history/datastore/mget'))
spark_1     | 2021/09/07 17:29:01 INFO     ...evcon_spark.synchronization  Service temperature unit set to degC
spark_1     | 2021/09/07 17:29:01 INFO     ..._devcon_spark.connect_funcs  Discovering devices... (all)
spark_1     | 2021/09/07 17:29:01 INFO     ..._devcon_spark.connect_funcs  Discovered ['/dev/ttyACM0', 'P1 - P1 Serial', 'USB VID:PID=2B04:C008 SER=290020001147383531363134 LOCATION=1-1.2:1.0']
spark_1     | 2021/09/07 17:29:02 INFO     ...lox_devcon_spark.connection  <SparkConnection for /dev/ttyACM0> connected
spark_1     | 2021/09/07 17:29:02 INFO     ...lox_devcon_spark.connection  HandshakeMessage(name='BREWBLOX', firmware_version='feb0f526', proto_version='f1b0d77b', firmware_date='2021-09-05', proto_date='2021-09-01', system_version='3.1.0', platform='p1', reset_reason_hex='78', reset_data_hex='00', device_id='290020001147383531363134', reset_reason='DFU_MODE', reset_data='NOT_SPECIFIED')
spark_1     | 2021/09/07 17:29:02 INFO     ...ox_devcon_spark.block_store  <ServiceBlockStore> Read 22 blocks
spark_1     | 2021/09/07 17:29:02 INFO     ...evcon_spark.synchronization  System uptime: 0:13:56.828000
spark_1     | 2021/09/07 17:29:02 INFO     ...evcon_spark.synchronization  Spark display temperature unit set to degC
spark_1     | 2021/09/07 17:29:02 INFO     ...evcon_spark.synchronization  System trace:
spark_1     | UPDATE_OBJECT        Pid                  [FTSs Cool PID,112]
spark_1     | UPDATE_OBJECT        Pid                  [FTSs Heat PID,113]
spark_1     | SYSTEM_TASKS
spark_1     | UPDATE_DISPLAY
spark_1     | MANAGE_CONNECTIVITY
spark_1     | MDNS_PROCESS
spark_1     | UPDATE_CONNECTIONS
spark_1     | WRITE_OBJECT
spark_1     | STREAM_FROM_OBJECT   SysInfo              [SystemInfo,2]
spark_1     | PERSIST_OBJECT       SysInfo              [SystemInfo,2]
spark_1     | 2021/09/07 17:29:02 INFO     ...evcon_spark.synchronization  Service synchronized!
spark_1     | 2021/09/07 17:29:07 INFO     ...ox_devcon_spark.block_store  <ServiceBlockStore> Saved 22 block(s)
spark_1     | 2021/09/07 17:40:55 INFO     ...evcon_spark.synchronization  Service temperature unit set to degF
spark_1     | 2021/09/07 17:40:55 INFO     ...evcon_spark.synchronization  Spark display temperature unit set to degF
spark_1     | 2021/09/07 17:47:17 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:DS2413 connected: 3A62EB3500000051
spark_1     | 2021/09/07 17:47:17 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:DS2413 disconnected: 3A62EB3500000051
spark_1     | 2021/09/07 17:52:14 INFO     ...ox_devcon_spark.block_store  <ServiceBlockStore> Saved 22 block(s)
spark_1     | 2021/09/07 18:01:36 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:Temp sensor disconnected: 28E2717F080000EE
spark_1     | 2021/09/07 18:01:36 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:Temp sensor disconnected: 28D1B37F080000FB
spark_1     | 2021/09/07 18:01:36 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:Temp sensor disconnected: 288593020900006F
spark_1     | 2021/09/07 18:01:39 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:Temp sensor connected: 28E2717F080000EE
spark_1     | 2021/09/07 18:01:39 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:Temp sensor connected: 28D1B37F080000FB
spark_1     | 2021/09/07 18:01:39 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:Temp sensor connected: 288593020900006F
spark_1     | 2021/09/07 18:01:42 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:Temp sensor disconnected: 288593020900006F
spark_1     | 2021/09/07 18:01:43 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:Temp sensor disconnected: 28E2717F080000EE
spark_1     | 2021/09/07 18:01:43 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:Temp sensor disconnected: 28D1B37F080000FB
spark_1     | 2021/09/07 18:01:47 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:Temp sensor connected: 28E2717F080000EE
spark_1     | 2021/09/07 18:01:47 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:Temp sensor connected: 28D1B37F080000FB
spark_1     | 2021/09/07 18:01:47 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:Temp sensor connected: 288593020900006F
spark_1     | 2021/09/07 18:01:57 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:Temp sensor disconnected: 28E2717F080000EE
spark_1     | 2021/09/07 18:01:57 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:Temp sensor disconnected: 28D1B37F080000FB
spark_1     | 2021/09/07 18:01:58 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:Temp sensor disconnected: 288593020900006F
spark_1     | 2021/09/07 18:02:16 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:Temp sensor connected: 28E2717F080000EE
spark_1     | 2021/09/07 18:02:16 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:Temp sensor connected: 28D1B37F080000FB
spark_1     | 2021/09/07 18:02:16 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:Temp sensor connected: 288593020900006F
spark_1     | 2021/09/07 18:15:28 INFO     ...ox_devcon_spark.block_store  <ServiceBlockStore> Saved 22 block(s)
spark_1     | 2021/09/07 18:15:39 INFO     ...ox_devcon_spark.block_store  <ServiceBlockStore> Saved 22 block(s)
spark_1     | 2021/09/07 18:15:45 INFO     ...ox_devcon_spark.block_store  <ServiceBlockStore> Saved 22 block(s)
spark_1     | 2021/09/07 18:50:34 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:Temp sensor disconnected: 28E2717F080000EE
spark_1     | 2021/09/07 18:50:35 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:Temp sensor disconnected: 28D1B37F080000FB
spark_1     | 2021/09/07 18:50:35 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:Temp sensor disconnected: 288593020900006F
spark_1     | 2021/09/07 18:50:38 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:Temp sensor connected: 288593020900006F
spark_1     | 2021/09/07 18:50:39 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:Temp sensor connected: 28D1B37F080000FB
spark_1     | 2021/09/07 18:50:41 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:Temp sensor connected: 28E2717F080000EE
spark_1     | 2021/09/07 18:50:49 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:Temp sensor disconnected: 28E2717F080000EE
spark_1     | 2021/09/07 18:50:51 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:Temp sensor disconnected: 28D1B37F080000FB
spark_1     | 2021/09/07 18:50:51 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:Temp sensor disconnected: 288593020900006F
spark_1     | 2021/09/07 18:50:55 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:Temp sensor connected: 28D1B37F080000FB
spark_1     | 2021/09/07 18:50:55 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:Temp sensor connected: 288593020900006F
spark_1     | 2021/09/07 18:50:59 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:Temp sensor connected: 28E2717F080000EE
spark_1     | 2021/09/07 19:00:46 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:Temp sensor disconnected: 28D1B37F080000FB
spark_1     | 2021/09/07 19:00:47 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:Temp sensor disconnected: 288593020900006F
spark_1     | 2021/09/07 19:00:48 INFO     ...ox_devcon_spark.cbox_parser  Spark log: WARNING:Temp sensor disconnected: 28E2717F080000EE
spark_1     | 2021/09/07 19:01:19 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:Temp sensor connected: 288593020900006F
spark_1     | 2021/09/07 19:01:23 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:Temp sensor connected: 28D1B37F080000FB
spark_1     | 2021/09/07 19:01:28 INFO     ...ox_devcon_spark.cbox_parser  Spark log: INFO:Temp sensor connected: 28E2717F080000EE

The immediate connect and disconnect does raise suspicions of the chip burning out, but you’ll need @Elco to help check that.

We did note that it looks like you’re running a develop release. Could you please run brewblox-ctl log so we get the full picture?

In general, if you’re using the develop release, I recommend dropping a message on discord before updating. Especially when working on larger features, develop as a whole may be broken for hours or days.

Edit: we were able to reproduce the problem, and are now working on a fix in firmware. It’s unlikely there’s anything wrong with the DS2413 board itself.

1 Like

Thanks for taking a look, I’ll switch branches in the meantime

I confirm that there is a bug in develop. In general, we don’t recommend running develop, because we merge things into develop when they seem to work and pass unit testing, but not much hardware and long term testing.