Unable to Start gpsd on i.MX8: GPSD Binding Issues and CGPS Connectivity Errors

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Unable to Start gpsd on i.MX8: GPSD Binding Issues and CGPS Connectivity Errors

跳至解决方案
598 次查看
BrintoJames
Contributor II

I am using an i.MX8 board with a GPS module connected to /dev/ttyLP3. When I try to start gpsd with the command:

root@kontron-samx8x:~# sudo gpsd /dev/ttyLP3 -n -N -D 3
gpsd:INFO: launching (Version 3.19)
gpsd:ERROR: can't bind to IPv4 port gpsd, Address already in use
gpsd:ERROR: maybe gpsd is already running!
gpsd:ERROR: can't bind to IPv6 port gpsd, Address already in use
gpsd:ERROR: maybe gpsd is already running!
gpsd:INFO: command sockets creation failed, netlib errors -1, -1

However, running cgps -s command gives me a null table

Could any one please help me to solve this?

Regards

Brinto

标记 (3)
1 解答
550 次查看
BrintoJames
Contributor II

Thank you for your reply

I have added a recipe file for gpsd now I can successfully import gpsd.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
562 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Please run the following command to check if gpsd is already running:

ps aux | grep gpsd

 

If you see a gpsd process running, note its PID and stop it using:

kill <PID>


or 

systemctl stop gpsd


Best Regards,
Zhiming

551 次查看
BrintoJames
Contributor II

Thank you for your reply

I have added a recipe file for gpsd now I can successfully import gpsd.

0 项奖励
回复
577 次查看
BrintoJames
Contributor II

My requirement is that I wanted to use gpsd in my python script like

"import gpsd"

0 项奖励
回复