BMI160 Spi read chip_id

I want to communicate spi with pigpio library, but I'm stuck on the simplest thing. I want to read BMI 160 chip id. The code I wrote is below. Before I run the program, I run pigpiod, there is no problem with my connections.
import pigpio
import time

pi=pigpio.pi()
h=pi.spi_open(0,50000,0)
# chip id register adress=0x00
# read register adress msb bit 1 0x80
(xx,data)=pi.spi_xref(h,[0x00 | 0x80 ])
print(data)
# not print data=0xD1 ,print data =0xff
 
1 reply