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>
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>
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>
- 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>
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>
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>
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>
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>
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>
- 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>
- 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>