I have just received the Ublox M8N, connected the I2C and UART, but I can’t get the Ublox UCenter app to read the data from I2C… did the Android 6 we have has support for I2C?
UpdateThanks to @BPI_Justin Justin Chen from BPI, Answer found and solved!
as shown in the pic above, the Ublox M8N GPS is detected as built-in GPS.
to get the UART working for PB0(pin 8, TX) and PB1(pin 10, RX) must modify the sys_config.fex and change the uart2_used = 0 to become 1 as shown below:
[uart2] uart2_used = 1 uart2_port = 2 uart2_type = 2 uart2_tx = port:PB0<2><1>< default>< default> uart2_rx = port:PB1<2><1>< default>< default> uart2_rts = port:PB2<2><1>< default>< default> uart2_cts = port:PB3<2><1>< default>< default>
put the GPS driver source to the device folder: android/device/softwinner/bpi-m64-hdmi
then add the following line to bpi-m64-hdmi.mk
#gps $(call inherit-product, device/softwinner/bpi-m64-hdmi/gps/gps.mk
and then rebuilt and repack.
after flashed into the eMMC and booted up, then do the following
adb devices adb root adb remount adb shell
after inside the shell type the following and press enter: setenforce 0
then reboot the device again, it will be detected.