Jump to content
Ethan_Lin

how to reset i2cbus in software

Recommended Posts

Devices :Tinker board 2s

Sometimes, devices will block the I2C bus, but I want to resolve this issue through software without the need for a reboot or power cycling.

I have some ideas, such as altering GPIO status, but this method has proven unsuccessful.

I hope someone can provide a viable solution.

Share this post


Link to post
Share on other sites
23 minutes ago, Ethan_Lin said:

Devices :Tinker board 2s  ,  OS : Android 11 

Sometimes, devices will block the I2C bus, but I want to resolve this issue through software without the need for a reboot or power cycling.

I have some ideas, such as altering GPIO status, but this method has proven unsuccessful.

I hope someone can provide a viable solution.

 

Share this post


Link to post
Share on other sites
4 minutes ago, tooz said:

hello @Ethan_Lin

what's the os/ version and i2c bus you're using? did you connect it to other peripherals? 

thanks for reply  tooz

I have connected ADC and DAC. Initially, they functioned properly, but after frequent input and output data operations, I noticed that the returned data became incorrect.

Screenshot_20231122_155357.png

螢幕擷取畫面 2023-11-22 155753.png

Share this post


Link to post
Share on other sites

hello @Ethan_Lin

1. from what you've described i'd suggest to check the devices (the dac, adc)

2.  please collect the logs when the issue occurs, you can use adb with the command: 

adb shell su -c dmesg > dmesg.log

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...