BV4627 Change I2C address on RPi
February 14, 2017 08:53AM
Is there a way to change the address via I2C? can i do it via notsmb? if so are you able to provide me with the steps?


I've been trying to setup the board via serial on the raspberry pi but as the models i have are not usb, I'm struggling to get something working over binary.
Re: BV4627 Change I2C address on RPi
February 14, 2017 08:55AM
the address is held in EEPROM and so can be changed via a command (esc(<number>i)


the data sheet (http://www.byvac.co.uk/downloads/datasheets/BV4627%20DataSheet.pdf) has details on the command.


yes it is done via notsmb or any system that talks i2c
Re: BV4627 Change I2C address on RPi
February 14, 2017 08:56AM
Just to let you know i managed to do this in the end,


took a lot of playing around but here is the short version:


sudo i2cdetect -y 1
-- gives current i2c address default is 32

python

from notsmb import notSMB
bus = notSMB(1)
bus.detect()
-- this will give current id (50 by default)
bus.i2c(50,[82,66],0)
--(82 is to set new address, 66 is new value)
bus.i2c(50,[85],0)
--(resets the board)
bus.detect()
--(this will give new id (66 gives new address of 33) -
exit

sudo i2cdetect -y 1
-- gives new i2c address which is 21 for above settings.


Just wanted to confirm, i can use any even value for the new address (i've used 66 in the above) is that correct?
Re: BV4627 Change I2C address on RPi
February 14, 2017 08:59AM
yes,
use an even number but don't use any numbers below say 10 as there are some I2C reserved addresses that the RPi may not like.
Sorry, only registered users may post in this forum.

Click here to login