![]() |
|
editing ic2 value clears all sensors - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1) +--- Forum: Bug Reports (https://forum.openmarine.net/forumdisplay.php?fid=4) +--- Thread: editing ic2 value clears all sensors (/showthread.php?tid=5673) Pages:
1
2
|
RE: editing ic2 value clears all sensors - Ormingtrude - 2025-01-24 (2024-11-20, 06:07 PM)Kit_buyer Wrote:(2024-11-17, 06:40 PM)Kit_buyer Wrote:(2024-09-17, 10:04 PM)Opie91 Wrote: I had very strange behavior on the i2c bus with an RPI5. It would not tolerate any run greater than 200mm and once I broke the 4-5 mark on i2c devices it became very unstable and acted erratic. I didn’t realize i had the same problem until i found this thread. My current thoughts are now to send the ADC rawdata via wifi from a Pico W or a Lora Arduino. Not sure if this was also explored, hopefully this is a workaround as i too don’t want to use an older version of OP. Glad i found this as it was sending me down rabbit holes… Weekend project task for me, would love to hear thoughts on this. RE: editing ic2 value clears all sensors - MARIOI - 2025-04-15 (2024-09-01, 10:31 AM)Sailoog Wrote: This seems to be a bug. I will try to reproduce it ASAP. Hello Sailloog and all, I'm having exactly the same issue with the latest versions and latest updates. Has been found some way to work with this? Many thanks MaioI RE: editing ic2 value clears all sensors - robheath - 2025-04-28 I get the same issue. Adding an ADS1115 makes all my BME280 data disappear. Most peculiar. Any suggesting appreciated. Regards Rob Raspberry Pi 4 with PiCAN-M hat. RE: editing ic2 value clears all sensors - MARIOI - 2025-04-29 Thanks guys. For a while I thought I was the only one with this problem. I tested ADS115, ADS1015, with and without trerminator and nothing works. always the same issue as described by @desolina_nz. I hope that this problem can be easily found. RE: editing ic2 value clears all sensors - Attila Mattei - 2025-12-08 Hi guys, I've the same problem with ADS115 connected to OpenPlotter4 on a Raspberry Pi5. Does someone have any news how to solve this bug? editar el valor ic2 para anuncios1115 borrar todos los sensores - Pizoton - 2026-06-01 Solución al problema del ADS1115 en OpenPlotter 4.2.0: la configuración se corrompe al reiniciar el servicio I2C Síntoma Después de configurar un ADS1115 desde la interfaz gráfica de OpenPlotter I2C y asignar rutas de Signal K (SKkey) ocurren uno o más de los siguientes problemas:
Solución 1. Hacer una copia de seguridad sudo cp \ /usr/lib/python3/dist-packages/openplotterI2c/openplotterI2cRead.py \ /usr/lib/python3/dist-packages/openplotterI2c/openplotterI2cRead.py.bak 2. Editar el archivo sudo nano /usr/lib/python3/dist-packages/openplotterI2c/openplotterI2cRead.py Buscar la línea: conf2.set('I2C', 'sensors', str(i2c_sensors)) Justo antes agregar: for sensor in i2c_sensors: if 'data' in i2c_sensors[sensor]: for d in i2c_sensors[sensor]['data']: if isinstance(d, dict) and 'object' in d: del d['object'] Debe quedar así: for sensor in i2c_sensors: if 'data' in i2c_sensors[sensor]: for d in i2c_sensors[sensor]['data']: if isinstance(d, dict) and 'object' in d: del d['object'] conf2.set('I2C', 'sensors', str(i2c_sensors)) Guardar y salir. 3. Reiniciar el servicio sudo systemctl restart openplotter-i2c-read.service 4. Verificar grep "object at 0x" ~/.openplotter/openplotter.conf No debería devolver ningún resultado. 5. Agregar los dispositivos Resultado Después de aplicar el parche:
Versiones afectadas Detectado en:
Nota final Este problema fue identificado analizando los cambios automáticos que realizaba openplotter-i2c-read sobre openplotter.conf después de cada reinicio. El origen resultó ser la escritura accidental de objetos Python temporales dentro del archivo de configuración permanente. |