btorres
07-06-2010, 12:19 PM
Hi. I am a student working on a research. I am working with an application, trying to connect an RFID device that supports I2C interfacing to the GPIO17 and GPIO18 of the SN171 Proto Board device. The RFID device receive commands on hexadecimal.
I am sending the commands using the I2C functions provided for the SNAPpy scripts. Here is a code snippet of what I am trying to do:
cmd = ""
cmd += chr(0x60)
cmd += chr(0x01)
cmd += chr(0x93)
cmd += chr(0x94)
bytesReturned = i2cWrite(cmd, 3, False)
The thing is, that the i2cWrite return value is 0, which means it is not writing any byte on the slave RFID device. Also when I call the getI2cResult function it returns 2, as if it were busy; or 4, as if it were stuck.
I would like to know if the voltages levels have something to do, because when I measure the voltage levels on the I2C pins of my slave device it measures 5V. Any other suggestions would be appreciated. Thanks!
I am sending the commands using the I2C functions provided for the SNAPpy scripts. Here is a code snippet of what I am trying to do:
cmd = ""
cmd += chr(0x60)
cmd += chr(0x01)
cmd += chr(0x93)
cmd += chr(0x94)
bytesReturned = i2cWrite(cmd, 3, False)
The thing is, that the i2cWrite return value is 0, which means it is not writing any byte on the slave RFID device. Also when I call the getI2cResult function it returns 2, as if it were busy; or 4, as if it were stuck.
I would like to know if the voltages levels have something to do, because when I measure the voltage levels on the I2C pins of my slave device it measures 5V. Any other suggestions would be appreciated. Thanks!