Open eagleDiego opened 2 years ago
After a day of fiddling (don't tell my wife) I managed to get it to work, and figured out the issue.
in balena.yml the applicationConfigVariables
are completely ignored.
These however contain the precious settings that disable BlueTooth and free up GPIO14 and GPIO15 for UART. It also contains the definition for the PPS pin and enables UART, so basically nothing would work without these.
I modified these values directly from Balena Cloud and in the time of a restart everything works as intended!
Now on to figuring out why the configurations are ignored...
In my project gpsTime is not the only service I'm running and another service uses an applicationConfigVariables
which instead of starting with BALENA_HOST
starts with RESIN_HOST
. I wonder if the two cannot be mixed, or if they have any difference in behaviour.
I will report if I figure out more. Hopefully this is useful to someone stuck some time.
@eagleDiego I'm seeing the same issues, are you able to confirm what you changed in balena please to ensure the applicationConfigVariables
are used correctly.
Many thanks.
@Tissy I didn't manage to get Balena to read the configVariables from the YML file, so I added them manually as fleet-wide configurations in https://dashboard.balena-cloud.com/fleets/{fleet-id}/config
.
Thank you @eagleDiego, much appreciated. I think I am getting somwehere with the config. Does your fleetwide configuration look like this please? I don't think I have the variables quite right as still getting this as an error.
Hello, I fiddled a bit with this and I cannot seem to be able to get to anything usable.
My board is a RPi4B and I'm using a GPS board with an u-blox NEO-6M-0-001 and UART+PPS pinout. All pins are connected with the relative GPIOs as per instructions.
I tried using the debug commands provided in the documentation but I don't get similar results to those shown:
and running
gpsmon -n
shows something completely differentThis is the output from the Balena Cloud logs:
It doesn't look like there's anything major going wrong, at least from the logs.
The GPS module has a fix, and the PPS led on the board is flashing to indicate that PPS is provided. Connecting the board with uBlox Center doesn't show any particular issue and boud rate is correct as default
9600
.I tried digging deeper in how UART ports are addressed, but from the documentation I just cannot understand if in RPi4
dev/ttyAMA0
is the right port or if it is attached to the Bluetooth module.Has anyone else found similar issues with RPi4?