down vote
favorite
I bought two XBee S2C and a RPi3. I can send data from my RPi3-Xbee to the computer-Xbee but i cannot receive. I have followed the below steps:
1- change uart from bluetooth to pins:
a- core_freq=250
b- force_turbo=0
c- dtoverlay=pi3-disable-bt
d- enable_uart=1
2- my pytho program is
!usr/bin/python
from xbee import XBee
import serial
ser=serial(‘/dev/ttyAMA0’,9600)
while True:
ser.write(‘i’)
response=ser.readline().strip()
print(serial)
ser.close()
Did I miss somthing ? I am trying to solve it since yesterday :s
PS: when using the XCTu the two xbee communicates without any problem