Commit Graph

33 Commits

Author SHA1 Message Date
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
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 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
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 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
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
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 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
Tatiana Leon aaf09f4a9c connectcore-demo-example: fix get storage size in demo server
File '/proc/mtd' may exist in the file system although with no data. So, first
check the emmc file '/sys/class/mmc_host/mmc0/mmc0:0001/block/mmcblk0/size'.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-10 14:19:43 +01:00
David Escalona cf5383ab3b connectcore-demo-example: adjust BLE payload size
Remove the sleep time between write operations in the BLE service. The communication
problems observed are more related with the size of the payload written rather than
the timing between frames.

Signed-off-by: David Escalona <david.escalona@digi.com>
2023-02-08 18:07:03 +01:00
Tatiana Leon 8a81829e7b connectcore-demo-example: add BLE support to the demo
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
Signed-off-by: David Escalona <david.escalona@digi.com>
2023-02-08 11:02:04 +01:00
Tatiana Leon d9e0146e41 connectcore-demo-example: fix firmware update from local web
Use the same command independently of the boot system.
Fix the way dual boot is detected to use 'dualboot' U-Boot variable.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-11-24 16:55:21 +01:00
Tatiana Leon cab26c39e7 connectcore-demo-example: fix possible exception if video file is empty
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-11-24 16:55:21 +01:00
David Escalona 4f9717a2d3 connectcore-demo-example: add network configuration section
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-10-19 18:12:38 +02:00
David Escalona 14f849fb8d connectcore-demo-example: use 'libdigiapix' API for network and bluetooth
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-10-19 13:48:26 +02:00
David Escalona a8f6d228e6 connectcore-demo-example: add play and stop music feature
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-10-06 09:45:19 +02:00
David Escalona 58c06b00e7 connectcore-demo-example: fix signal handling for DEY-4.0
With the update to DEY-4.0, the signal handling in the "demoserver.py" Python script
stopped working. The call to "event.wait()" caused the application to stop receiving
signals. This commit fixes the issue by replacing the event lock mechanism with the
"signal.sigwait()" call, which stops the thread execution until any specified signal
is received.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-10-06 09:45:01 +02:00
David Escalona 0e931c1826 connectcore-demo-example: general fixes
- Improve error messages.
- Fix resizing issues with dashboard image.
- Add generic message when video resolution cannot be read.
- Fix change volume action and include a confirmation message.
- Add confirmation message when LED state is changed.
- Remove execution bit from images.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-10-05 11:32:29 +02:00
David Escalona be0c37a04e connectcore-demo-example: fix HDMI video resolution read for ccmp devices
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-07-26 11:42:48 +02:00
David Escalona d275ad225f connectcore-demo-example: fix video resolution read for ccmp devices
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-07-11 13:27:37 +02:00
David Escalona 597e940bf1 connectcore-demo-example: add mechanism to remove available demo sections
While on it, remove multimedia section for the 'ccimx6ulsbc'.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-07-06 10:29:13 +02:00
David Escalona 9e5eb27132 connectcore-demo-example: general fixes and tweaks
- Removed CPU core sections from 'index.html'
- Fixed missing div in 'index.html'
- Added missing 'errno' import in 'demoserver.py'
- Reposition components when new data is received in 'dashboard.js'
- Improved display resolution read for multiline files.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-07-06 10:29:13 +02:00
David Escalona ee254b7613 connectcore-demo-example: add get storage size support for NAND memories
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-07-06 10:29:13 +02:00
David Escalona 3babd87902 connectcore-demo-example: add dual ethernet support
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-07-05 10:30:21 +02:00
Tatiana Leon f9853cf8e1 connectcore-demo-example: management: implement management section
Reboot and firmware update operations.

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-06-03 13:57:02 +02:00
Tatiana Leon 226a64285d connectcore-demo-example: dashboard: implement get video resolution
https://onedigi.atlassian.net/browse/DEL-7742

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-06-03 13:57:02 +02:00
Tatiana Leon 02c160b34b connectcore-demo-example: dashboard: implement set audio volume
https://onedigi.atlassian.net/browse/DEL-7742

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-06-03 13:57:02 +02:00
Tatiana Leon 04400289cc connectcore-demo-example: dashboard: implement set led status
https://onedigi.atlassian.net/browse/DEL-7742

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-06-03 13:57:02 +02:00
Tatiana Leon e34b7c2c43 connectcore-demo-example: dashboard: implement file system calls
https://onedigi.atlassian.net/browse/DEL-7742

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-06-03 13:57:02 +02:00
Tatiana Leon 0943812956 connectcore-demo-example: dashboard: implement get device status and info
https://onedigi.atlassian.net/browse/DEL-7742

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-06-03 13:57:02 +02:00