Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i2c issues #84

Open
LTrainExpress opened this issue Nov 17, 2024 · 1 comment
Open

i2c issues #84

LTrainExpress opened this issue Nov 17, 2024 · 1 comment

Comments

@LTrainExpress
Copy link

Setting up REM on a new board. Scanning bus 1 does not produce any results. Manually adding gives me errors

i2cdetect -y 1 gives this result
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- 21 -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- 62 -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

[17/11/2024, 17:11:06] info: [17:11:06] 192.168.1.82 PUT /config/i2c/bus {"busNumber":1,"isActive":true}
[17/11/2024, 17:11:10] info: [17:11:10] 192.168.1.82 PUT /config/i2c/bus {"busNumber":2,"isActive":false}
[17/11/2024, 17:11:12] info: [17:11:12] 192.168.1.82 GET /config/options/i2c/1?null {}
[17/11/2024, 17:11:14] info: [17:11:14] 192.168.1.82 PUT /config/i2c/scanBus {"busNumber":1}
[17/11/2024, 17:15:50] info: [17:15:50] 192.168.1.82 PUT /config/i2c/scanBus {"busNumber":1}
[17/11/2024, 17:15:52] info: [17:15:52] 192.168.1.82 GET /config/options/general?null {}
[17/11/2024, 17:15:54] info: [17:15:54] 192.168.1.82 GET /config/options/i2c/2?null {}
[17/11/2024, 17:15:55] info: [17:15:55] 192.168.1.82 DELETE /config/i2c/bus/ {"id":2,"isActive":false,"devices":[],"busNumber":2,"detected":{"driver":"bcm2835 (i2c@7e805000)","path":"/sys/class/i2c-dev/i2c-2","name":"i2c-2","busNumber":2}}
[17/11/2024, 17:15:56] info: [17:15:56] 192.168.1.82 GET /config/options/i2c/1?null {}
[17/11/2024, 17:15:56] info: [17:15:56] 192.168.1.82 DELETE /config/i2c/bus/ {"id":1,"isActive":true,"devices":[],"busNumber":1,"detected":{"driver":"bcm2835 (i2c@7e804000)","path":"/sys/class/i2c-dev/i2c-1","name":"i2c-1","busNumber":1}}
[17/11/2024, 17:16:03] info: [17:16:03] 192.168.1.82 PUT /config/i2c/bus {"busNumber":1,"isActive":true}
[17/11/2024, 17:16:05] info: [17:16:05] 192.168.1.82 GET /config/options/i2c/1?null {}
[17/11/2024, 17:16:07] info: [17:16:07] 192.168.1.82 PUT /config/general {"controllerType":"raspi","spi0":{"isActive":true},"spi1":{"isActive":true}}
[17/11/2024, 17:16:08] info: [17:16:08] 192.168.1.82 GET /config/options/i2c/1?null {}
[17/11/2024, 17:16:10] info: [17:16:10] 192.168.1.82 PUT /config/i2c/scanBus {"busNumber":1}
[17/11/2024, 17:16:28] info: [17:16:28] 192.168.1.82 PUT /config/i2c/addAddress {"newAddress":33,"busNumber":1}
[17/11/2024, 17:16:28] error: Cannot add address bus 1 is not initialized.
[17/11/2024, 17:16:56] info: [17:16:56] 192.168.1.82 PUT /config/i2c/addAddress {"newAddress":72,"busNumber":1}
[17/11/2024, 17:16:56] error: Cannot add address bus 1 is not initialized.

error
image

@tagyoureit
Copy link
Collaborator

Cannot add address bus 1 is not initialized. You need to restart the server with the button on the main page after adding the bus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants