PX30 Android8.1 + PN7150

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PX30 Android8.1 + PN7150

24,536 Views
chaoxiandandan
Contributor I

Dear,

I tried to port PN7150 to PX30 Android8.1, but something happened outside of the documentation
Currently, pn544 is generated under dev/, but after entering the setting, the NFC state is gray and unavailable, and the log prompts an error

Kernel log:
chaoxiandandan_0-1724290974504.pngchaoxiandandan_0-1724290974504.png
init: Parsing file /system/etc/init/[email protected]...
init: starting service 'nxpnfc_hal_svc'...
init: property_set("ro.nfc.port", "I2C") failed: property already set
init: Service 'nxpnfc_hal_svc' (pid 221) killed by signal 6
init: Sending signal 9 to service 'nxpnfc_hal_svc' (pid 221) process group...
init: starting service 'nxpnfc_hal_svc'...
 
 
The logcat log message is as follows:
 
08-21 11:53:35.184 941 1075 W com.android.nfc: Waited one second for [email protected]::INfc/default. Waiting another...
08-21 11:53:38.186 941 1075 W com.android.nfc: Waited one second for [email protected]::INfc/default. Waiting another...
08-21 11:53:38.571 1420 1420 E [email protected]: hw_get_module nfc_nci failed: -2
08-21 11:53:38.572 1420 1420 E [email protected]: Passthrough failed to load legacy HAL.
08-21 11:53:38.572 1420 1420 E [email protected]: Could not get passthrough implementation for [email protected]::INfc/default.
08-21 11:53:38.572 1420 1420 F [email protected]: Error while registering nfc AOSP service: 1
chaoxiandandan_1-1724291147859.pngchaoxiandandan_1-1724291147859.png

In this case, what is the problem?

0 Kudos
Reply
17 Replies

24,517 Views
chaoxiandandan
Contributor I

日志如下

0 Kudos
Reply

24,487 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi  @chaoxiandandan :

 

I would suggest check the I2C connection.  It seems not work.

 

 

Regards

Daniel

0 Kudos
Reply

24,480 Views
chaoxiandandan
Contributor I

我们现在就是通过i2c1连接

chaoxiandandan_0-1724311455062.pngchaoxiandandan_0-1724311455062.png

0 Kudos
Reply

24,212 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Dear @chaoxiandandan ,

 

Sorry! I didn't notice your dmesg logs has been attached in the post.

I checked the log, and found NFC reader driver was not correctly loaded due to I2C issue.

Then I checked your device tree:

weidong_sun_0-1724811196681.pngweidong_sun_0-1724811196681.png

(1) interrupt-gpios

gpio1 should be No.1 gpio group of your platform, but the concrete GPIO pin was not give here.

for example, assume you are using GPIO1's pin 21 to be interrupt gpio, the line should be like this:

interrupt-gpios = <&gpio1 21 0>;

(2) enable-gpios

Similarly, assume you are using GPIO1's pin 20 to be enable GPIOs.

enable-gpios = <&gpio1 20 0>;

 

Change your dts, then try!

Thanks!

Regards,

weidong

0 Kudos
Reply

24,011 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @chaoxiandandan :

 

 please send the schematics (include the connection between pn7150 and host), device tree to us for further analyzing.  You can attach them here,  or you can send to us via a new ticket. Thanks

 

Regards

Daniel

0 Kudos
Reply

24,471 Views
danielchen
NXP TechSupport
NXP TechSupport

可以用示波器看I2C 引脚上是否有波形

0 Kudos
Reply

24,457 Views
chaoxiandandan
Contributor I

这边测试波形结果:I2C一直保持高电平起始状态,没有找到从机地址。

chaoxiandandan_0-1724316294947.pngchaoxiandandan_0-1724316294947.png

 

0 Kudos
Reply

24,446 Views
chaoxiandandan
Contributor I

这是我们nfc的原理图

chaoxiandandan_0-1724318091788.pngchaoxiandandan_0-1724318091788.png

 

0 Kudos
Reply

24,240 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Dear @chaoxiandandan ,

 

Could you give me the following information?

- Using adb tool to log in your android board, and run dmesg to get boot logs, then share it with us.

I would like to check if NFC reader driver has been loaded successfully.

 

Thanks!

Regards,

weidong

0 Kudos
Reply

24,194 Views
chaoxiandandan
Contributor I

There are two logs as follows

dmesg_202408281442.txt

logcat_202408281442.txt

 

0 Kudos
Reply

24,145 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @chaoxiandandan :

 

Could you please let me know the status after you modified the device tree?

 

Regards

Daniel

0 Kudos
Reply

24,118 Views
chaoxiandandan
Contributor I

Now enter the Settings app and check that nfc is gray and unclickable

The document I use is:AN11690.pdf

0 Kudos
Reply

24,113 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @chaoxiandandan 

 

Please send the latest DMESG LOG to us for further analyzing.

 

Regards

Daniel

0 Kudos
Reply

24,109 Views
chaoxiandandan
Contributor I

The demsg log is almost identical to the one uploaded a few days ago

0 Kudos
Reply

24,014 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @chaoxiandandan 

please check why the service "nxpnfc_hal_svc" is killed by signal 6

danielchen_0-1725245202827.pngdanielchen_0-1725245202827.png

 

Regards

Daniel

0 Kudos
Reply

24,003 Views
chaoxiandandan
Contributor I

My first question is about the service "nxpnfc_hal_svc", why is this problem and is there something missing

chaoxiandandan_0-1725255669349.pngchaoxiandandan_0-1725255669349.png

Because the service "nxpnfc_hal_svc" is in your drive, I'm asking you

0 Kudos
Reply

23,878 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @chaoxiandandan :

 

For this error,  "    [ 14.750091] init: Service 'nxpnfc_hal_svc' (pid 482) killed by signal 6 "

NFC service is killed by Signal 6 in your android system.

Signal 6 is commonly used by libc and other libraries to abort the program in case of critical errors.  Since Android 8.1 is quite old,  I suspect if there is a mismatch issue in your environment. like the compile tools or other.   But I don't have the board to test this issue, sorry.

 

Regards

Daniel

 

 

0 Kudos
Reply