How to test agl-service-gps using afb-client
Description
Environment
Activity
At this point it all on you to get valid results... 1) do you have the GPS antenna connected to the Kingfisher board? 2) if so is the antenna outside or at least near a non-metalized window?
Hello Matt,
After integrating the patch, I am able to start the GPS service .
----------------------------------------------------logs-----------------------
m3ulcb:/var/local/lib/systemd/system# systemctl status afm-service-agl-service-gps--1.0-bac7bfa--main@0.service
��● afm-service-agl-service-gps--1.0-bac7bfa--main@0.service - Binding for handling NMEA signalisation of GPS
Loaded: loaded (/usr/local/lib/systemd/system/afm-service-agl-service-gps--1.0-bac7bfa--main@.service; static; vendor preset: enabled)
Active: active (running) since Thu 2018-12-13 06:12:18 UTC; 7s ago
Process: 4594 ExecStartPre=/bin/mkdir -p /home/0/app-data/agl-service-gps (code=exited, status=0/SUCCESS)
Main PID: 4595 (afbd-agl-servic)
Tasks: 2 (limit: 4915)
Memory: 1.2M
CPU: 25ms
CGroup: /user.slice/user-0.slice/afm-service-agl-service-gps--1.0-bac7bfa--main@0.service
��└��─4595 afbd-agl-service-gps@1.0-bac7bfa
Dec 13 06:12:18 m3ulcb afbd-agl-service-gps@1.0-bac7bfa[4595]: INFO: Scanning dir=/usr/lib/afb for bindings [/usr/src/debug/af-binder/flound
Dec 13 06:12:18 m3ulcb afbd-agl-service-gps@1.0-bac7bfa[4595]: INFO: Scanning dir=/usr/lib/afb/monitoring for bindings [/usr/src/debug/af-bi
Dec 13 06:12:18 m3ulcb afbd-agl-service-gps@1.0-bac7bfa[4595]: INFO: API gps starting... [/usr/src/debug/af-binder/flounder+gitAUTOINC+6279e58
Dec 13 06:12:18 m3ulcb afbd-agl-service-gps@1.0-bac7bfa[4595]: NOTICE: API gps started [/usr/src/debug/af-binder/flounder+gitAUTOINC+6279e587b
Dec 13 06:12:18 m3ulcb afbd-agl-service-gps@1.0-bac7bfa[4595]: INFO: API monitor starting... [/usr/src/debug/af-binder/flounder+gitAUTOINC+627
Dec 13 06:12:18 m3ulcb afbd-agl-service-gps@1.0-bac7bfa[4595]: NOTICE: API monitor started [/usr/src/debug/af-binder/flounder+gitAUTOINC+6279e
Dec 13 06:12:18 m3ulcb afbd-agl-service-gps@1.0-bac7bfa[4595]: INFO: Alias for url=/monitoring to path=/usr/lib/afb/monitoring [/usr/src/debug
Dec 13 06:12:18 m3ulcb afbd-agl-service-gps@1.0-bac7bfa[4595]: NOTICE: Waiting port=1033 rootdir=/var/local/lib/afm/applications/agl-service-g
Dec 13 06:12:18 m3ulcb afbd-agl-service-gps@1.0-bac7bfa[4595]: NOTICE: Browser URL= http://localhost:1033 [/usr/src/debug/af-binder/flounder+g
Dec 13 06:12:18 m3ulcb systemd[1]: Started Binding for handling NMEA signalisation of GPS.
---------------------------------------------------------------------------------
I have binded agl-gps-service with afb-daemon on one terminal and started executing afb-client-demo on other terminal, I got following logs:
Binding with afb-daemon:
afb-daemon --binding /var/local/lib/afm/applications/agl-service-gps/1.0-bac7bfa/lib/libafm-gps-binding.so --port 8000 --tracereq=common --token='' --verbose
//Executing afb-client-demo:
m3ulcb:~# afb-client-demo -H 127.0.0.1:8000/api?token='' gps location
ON-REPLY 1:gps/location: ERROR
{
"jtype":"afb-reply",
"request":{
"status":"failed",
"info":"No 3D GNSS fix",
"uuid":"0fd27f0e-133f-48c3-91a1-923f464debf8"
}
}
Please let me know the solution to work gps service properly and test it with afb-client-demo
Regards,
Ashvini Deshmukh
merged. tnx!
@ronan Le Martret @Jan-Simon Moeller Slight typo in the original changeset... please review https://gerrit.automotivelinux.org/gerrit/#/c/19591/
Hello Matt,
I have tried to start the gps service. but still it is not active. Please find below logs for the same.
LOGS:
--------------------------------------------------------------------------------------------
m3ulcb:/var/local/lib/systemd/system# systemctl status afm-service-agl-service-gps-1.0-bac7bfa-main@0.service
â— afm-service-agl-service-gps--1.0-bac7bfa--main@0.service - Binding for handling NMEA signalisation of GPS
Loaded: loaded (/usr/local/lib/systemd/system/afm-service-agl-service-gps--1.0-bac7bfa--main@.service; static; vendor preset: enabled)
Active: inactive (dead) since Thu 2018-12-13 08:34:18 UTC; 2min 48s ago
Process: 4994 ExecStart=/usr/bin/afb-daemon --name afbd-agl-service-gps@1.0-bac7bfa --rootdir=/var/local/lib/afm/applications/agl-service-gps
Process: 4993 ExecStartPre=/bin/mkdir -p /home/0/app-data/agl-service-gps (code=exited, status=0/SUCCESS)
Main PID: 4994 (code=exited, status=0/SUCCESS)
CPU: 25ms
Dec 13 08:34:16 m3ulcb afbd-agl-service-gps@1.0-bac7bfa[4994]: INFO: API gps starting... [/usr/src/debug/af-binder/flounder+gitAUTOINC+6279e58
Dec 13 08:34:16 m3ulcb afbd-agl-service-gps@1.0-bac7bfa[4994]: NOTICE: API gps started [/usr/src/debug/af-binder/flounder+gitAUTOINC+6279e587b
Dec 13 08:34:16 m3ulcb afbd-agl-service-gps@1.0-bac7bfa[4994]: INFO: API monitor starting... [/usr/src/debug/af-binder/flounder+gitAUTOINC+627
Dec 13 08:34:16 m3ulcb afbd-agl-service-gps@1.0-bac7bfa[4994]: NOTICE: API monitor started [/usr/src/debug/af-binder/flounder+gitAUTOINC+6279e
Dec 13 08:34:16 m3ulcb afbd-agl-service-gps@1.0-bac7bfa[4994]: INFO: Alias for url=/monitoring to path=/usr/lib/afb/monitoring [/usr/src/debug
Dec 13 08:34:16 m3ulcb afbd-agl-service-gps@1.0-bac7bfa[4994]: NOTICE: Waiting port=1033 rootdir=/var/local/lib/afm/applications/agl-service-g
Dec 13 08:34:16 m3ulcb afbd-agl-service-gps@1.0-bac7bfa[4994]: NOTICE: Browser URL= http://localhost:1033 [/usr/src/debug/af-binder/flounder+g
Dec 13 08:34:16 m3ulcb systemd[1]: Started Binding for handling NMEA signalisation of GPS.
Dec 13 08:34:18 m3ulcb afbd-agl-service-gps@1.0-bac7bfa[4994]: INFO: [API gps] Closing GPS daemon connection.
Dec 13 08:34:18 m3ulcb afbd-agl-service-gps@1.0-bac7bfa[4994]: [/usr/src/debug/agl-service-gps/1.0+gitAUTOINC+4225d53a4f-r0/git/binding/afm-gp
-------------------------------------------------------------------------------------------
Please let me know how to start the gps service properly in active mode.
Regards,
Ashvini Deshmukh
Hello All,
I have to test agl-service-gps on M3ULCB+Kingfisher board using FF_6.0.0 version.
It is found that when I install agl-service-gps on board using afm-util, it gives null id fpr websocket. Directory /run/user/0/appis/ws does not contain websocket for gps.
I have to test gps functionality on board.
Needed following information:
1. Please suggest a way to install the gps websocket at /run/user/0/appis/ws.
2. It is found that there are many services for which websockets are not available.
Also suggest what changes are needed for creating the wget files if not created while cross compiling.
Thanks & Regards,
Ashvini Deshmukh