Commit Graph

187 Commits

Author SHA1 Message Date
Javier Viguera 876b1d55fc connectcore-demo-example: use is_local_access for local run detection
According to the API, navigator.platform is unreliable and not recommended
for runtime detection. As our platforms are ARM based, we were using it
to get the platform and grep for a literal arm. That fails for example
when using chromium browser on the ConnectCore devices, as it is reporting
'Linux x86_64' even running on an arm64 device.

Instead use the already implemented is_local_access function to detect
whether the browser is running locally in the target.

https://onedigi.atlassian.net/browse/DEL-9838

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-11-12 17:29:44 +01:00
Javier Viguera 79bd5559bf connectcore-demo-example: add support for ccimx95-dvk
https://onedigi.atlassian.net/browse/DEL-9809

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-11-11 17:56:54 +01:00
Javier Viguera 420bed0ba3 connectcore-demo-example: fix ccimx8x-sbc audio component position
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-11-11 17:50:04 +01:00
Javier Viguera 90ffa6a9c8 connectcore-demo-example: fix shown ethernet MAC address format
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-11-11 17:50:04 +01:00
Arturo Buzarra 22fb60f07d Merge tag 'dey-5.0-r2.2'
Digi Embedded Yocto 5.0-r2.2

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-07-21 13:57:22 +02:00
Isaac Hermida 4250a5e098 connectcore-demo-example: preserve "swu" file in update_firmware
Avoid deleting the original "swu" firmware file during the update process,
especially in dual-boot systems.
Previously, the file could be removed from the source path even
in the event of an exception. This change ensures the original file
remains intact regardless of update outcome.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-07-14 15:50:42 +02:00
Isaac Hermida 14911565e8 connectcore-demo-example: improve is_dual_system()
Fix an issue where the fw_printenv command output includes a trailing newline,
which could lead to incorrect string comparisons. The output is now stripped to
ensure consistent and accurate evaluation.

Example before fix:

>>> res = exec_cmd("fw_printenv -n dualboot")
>>> res
(0, 'yes\n')

https://onedigi.atlassian.net/browse/DEL-9718

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-07-14 15:48:33 +02:00
Isaac Hermida 2a9f9933cf connectcore-demo-example: update the root home path to DEY-5.0 default
Home root path changed to '/root' on DEY-5.0.

https://onedigi.atlassian.net/browse/DEL-9718

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-07-14 15:47:39 +02:00
Arturo Buzarra f1849282b0 Merge branch 'master' into dey-5.0/maint
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-07-02 11:29:26 +02:00
Javier Viguera 413a30b9c1 apix-spi-example: fix memory leak
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-06-18 18:07:11 +02:00
Javier Viguera 67b6d9ed60 apix-gpio-example: fix invalid NULL check for controller names
Replace incorrect NULL pointer checks on button_ctrl and led_ctrl with
string emptiness checks, since these are fixed-size character arrays and
never NULL.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-06-18 18:07:11 +02:00
Javier Viguera 85480c9f26 apix-can-examples: fix static analyzer warnings
* Initialize 'iface' and validate it before use to avoid undefined
  behavior.
* Move 'deffilter' to global static scope in can-recv-example to prevent
  stack address escape.
* Fix incorrect retry count in failure message in can-send-example.

No functional changes.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-06-18 18:03:49 +02:00
Javier Viguera 2e2aac99f1 can-recv-example: fix printf format for timeval with _TIME_BITS=64
With _TIME_BITS=64, tv_sec and tv_usec are long long integer types,
so update %ld to %llu and cast to (unsigned long long) to fix timestamp
formatting.

https://onedigi.atlassian.net/browse/DEL-9638

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-06-18 14:47:35 +02:00
Arturo Buzarra e6b2ef0fbf connectcore-demo-example: fix build info filename from "build" to "buildinfo"
Commit 99f1425340 ("image-buildinfo: Improve and extend to SDK coverage too")
in the Poky layer changes the name of the default build information file from
"build" to "buildinfo", so this commit reflects this change by adapting the
path to obtain the build information.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-04-29 16:53:10 +02:00
Gabriel Valcazar 453479e548 connectcore-demo-example: remove "#top" href from sidebar "collapse" button
This href causes issues when running the demo on a target with WebKit's
non-HTTP(S) process swap enabled. When clicking the "collapse" button, the
sidebar collapses, but the page is loaded again due to WebKit's process swap,
and the sidebar reverts back to its original state.

Removing the href fixes this, and the sidebar collapse functionality still
works as expected.

https://onedigi.atlassian.net/browse/DEL-9498

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-04-08 12:25:46 +02:00
David Escalona 46100efac4 connectcore-demo-example: improve npu demos launch mechanism
- When launching an NPU demo, display a black screen below the loading spin to avoid
  the transparent window of some demos to display part of the ConnectCore application
  in the background.
- Create a polling mechanism after an NPU demo is launched to check when the demo is
  closed in order to hide the black screen and the loading spin.

Signed-off-by: David Escalona <david.escalona@digi.com>
2024-09-19 16:50:04 +02:00
David Escalona 893bd689c0 connectcore-demo-example: avoid pjax to cache npu page and force redraw
This is required so that we can show an overlay black screen over the full application
when an NPU demo is launched.

Signed-off-by: David Escalona <david.escalona@digi.com>
2024-09-19 16:49:34 +02:00
David Escalona 09d0f7d178 connectcore-demo-example: update NPU demos links for CCMP25
https://onedigi.atlassian.net/browse/CCS-10

Signed-off-by: David Escalona <david.escalona@digi.com>
2024-09-18 10:43:50 +02:00
David Escalona 5113d8e340 connectcore-demo-example: add NPU section to display and run NPU demos
https://onedigi.atlassian.net/browse/CCS-10

Signed-off-by: David Escalona <david.escalona@digi.com>
2024-09-10 18:11:29 +02:00
David Escalona b71aa2e72b connectcore-demo-example: generalize code to read platform ID
Signed-off-by: David Escalona <david.escalona@digi.com>
2024-09-06 09:59:58 +02:00
David Escalona a1ecbfb119 connectcore-demo-example: add support for the ConnectCore 91
While on it, add a missing entry for the cc93 in the 'network.html' file.

https://onedigi.atlassian.net/browse/CCS-8

Signed-off-by: David Escalona <david.escalona@digi.com>
2024-08-26 10:22:58 +02:00
Gabriel Valcazar 44351d357d ccmp25-dvk: fix LED area position
The position of the LED on the dashboard wasn't matching the real position of
the LED on the DVK

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-08-01 11:31:49 +02:00
Francisco Gil 28932ae553 ccmp2-dvk: update libdigiapix.conf for ccmp2-dvk
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2024-07-30 11:56:29 +02:00
Francisco Gil e65ba8d69f ccmp91: add support for the ConnectCore 91 platform
Add missing entries in the readme for ConnectCore 93

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2024-07-30 11:52:58 +02:00
Francisco Gil 0b1f362a8d ccdemo: update links and fix a typo
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2024-07-30 11:28:41 +02:00
Arturo Buzarra 37a0ef6664 connectcore-demo-example: enable audio support to ccimx8x-sbc-pro
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-07-25 12:18:07 +02:00
Arturo Buzarra 10570b5ebc connectcore-demo-example: network: remove duplicate entries for eth1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-07-25 12:18:07 +02:00
Arturo Buzarra 5d801b0386 connectcore-demo-example: add support to a third ethernet interface
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-07-25 12:18:07 +02:00
Arturo Buzarra a326832902 ccmp25: add support for the ConnectCore MP2 platform
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-07-22 23:09:55 +02:00
Mike Engel 81354f402f can: cosmetic change the data receive dump
This commit only will print the data received on the
CAN interface.

https://onedigi.atlassian.net/browse/DEL-8708

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2024-01-18 15:50:04 +01:00
Tatiana Leon c7241a9076 cccs: add ConnectCore Cloud Services maintenance state example
https://onedigi.atlassian.net/browse/DEL-8698

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-12-18 18:22:59 +01:00
Tatiana Leon 1ca37f3016 cosmetics: samples-manifest: sort platforms alphabetically
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-12-18 18:22:24 +01:00
David Escalona 3aa9894251 connectcore-demo-example: fix set volume command for CC6 devices
https://onedigi.atlassian.net/browse/DEL-8719

Signed-off-by: David Escalona <david.escalona@digi.com>
2023-11-09 12:03:34 +01:00
David Escalona 0d599e8de9 connectcore-demo-example: add support for 'ccimx6sbc' and 'ccimx6qpsbc' platforms
https://onedigi.atlassian.net/browse/DEL-8719

Signed-off-by: David Escalona <david.escalona@digi.com>
2023-11-09 12:03:30 +01:00
David Escalona cf8b2b0412 connectcore-demo-example: dashboard: add a mechanism to determine the color of the panels
Most of device boards have blue PCBs, but there are some products with green PCBs. In these cases,
the green panels have very poor contrast, so the color needs to be changed dynamically. This commit
adds a mechanism to automatically change the color of the dashboard panels based on the new device
property "PCB_COLOR".

https://onedigi.atlassian.net/browse/DEL-8719

Signed-off-by: David Escalona <david.escalona@digi.com>
2023-11-09 12:03:25 +01:00
Tatiana Leon b17458c8b7 cccs: add ConnectCore Cloud Services upload binary file example
https://onedigi.atlassian.net/browse/DEL-8628

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-10-11 18:21:06 +02:00
Tatiana Leon a3435686c3 cccs-upload-data-points-example: increase the seconds between samples
This commit increases the number of seconds between incremental values so, the
sample uploads 10 samples per minute.

While on it, fix a typo.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-10-11 18:21:06 +02:00
Tatiana Leon ddc4623f0b data-request-example: free memory before exiting after a target register failure
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-10-11 18:21:06 +02:00
Arturo Buzarra 03f2e3dd7f Merge tag 'dey-4.0-r4.1'
Digi Embedded Yocto 4.0-r4.1

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-10-09 16:42:42 +02:00
Arturo Buzarra 6d5d1e8837 Merge branch 'master' into dey-4.0/maint
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-09-07 12:16:10 +02:00
Tatiana Leon 82ee13f97e cccs: add ConnectCore Cloud Services examples
https://onedigi.atlassian.net/browse/DEL-8628

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-09-06 18:35:55 +02:00
Tatiana Leon 79aa8410c2 makefile: pm: add missing power management example to the makefile
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-09-06 12:25:57 +02:00
Tatiana Leon fa3f38f698 readmes: update toolchain environment name for ConnectCore 6UL
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-09-06 12:25:57 +02:00
Francisco Gil cbdb94face caam: fix compilation error for 64 bit systems
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-07-06 08:57:11 +02:00
Arturo Buzarra 2d1af89436 Merge tag 'dey-4.0-r3.2'
Digi Embedded Yocto 4.0-r3.2

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-05-30 10:30:19 +02:00
Tatiana Leon 26f613f2e4 ccimx93: add support for the ccimx93 platform
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-05-15 19:07:07 +02:00
Tatiana Leon fb73c40419 samples-manifest: fix typo
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-05-15 19:06:47 +02:00
Tatiana Leon 323f53cf56 connectcore-demo-example: update dashboard refresh timeout
Increase the dashboard refresh timeout to be 15s.
Uploading every 5s is too much for some platforms, ConnectCore MP15, with really
high CPU load.

https://onedigi.atlassian.net/browse/DEL-8508
https://onedigi.atlassian.net/browse/DEL-8509

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-05-15 15:06:44 +02:00
Arturo Buzarra 20ddfddc69 Merge branch 'master' into dey-4.0/maint 2023-05-11 13:40:04 +02:00
David Escalona 148f0dc99c connectcore-demo-example: limit demo to use only native BT adapter
By default, when retrieving the Bluetooth interface to use in the demo, the service
first tries with the native Bluetooth adapter and, in the case it fails, it looks
for connected XBee devices with Bluetooth capabilities. This is causing the demo to
lock the XBee port if the native Bluetooth interface is not present or fails to
initialize. Avoid this behavior by limiting the Bluetooth service to use only
the native Bluetooth interface for this demo.

Signed-off-by: David Escalona <david.escalona@digi.com>
2023-03-27 14:05:06 +02:00