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>
Remove the multimedia section when the demo is being rendered in a computer using the
LAN connection. In this scenario, the computer browser will be the one doing all the 3D
and video rendering and not the device, so this section has no sense in this case.
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>
The stdint header is needed by the library to work.
Removed from here and added in the spi.h.
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
Ethernet and Wi-Fi IPs may not be assigned when the demo is launched.
Ask for its values everytime the status is requested until they are initialized.
https://onedigi.atlassian.net/browse/DEL-7742
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
Download all required javascript and stylesheets not to need Internet access
to properly run the demo locally.
https://onedigi.atlassian.net/browse/DEL-7742
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
When running this example on an LED-connected GPIO, the delay
of 1 second is too large, and the selected values not very good
to notice the difference in brightness.
Use a ramp array of values with a more visual difference when
running on an LED and shorten the wait between changes.
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
It was believed that the CAAM was able to create blobs from files of up to
1 MiB, because in some cases, encrypting and decrypting a large file would
result in a file identical to the original one. In reality, the CAAM's job
descriptors use 16 bits to store input/output sizes, so any size that takes up
more than 16 bits either causes the operation to fail or makes the CAAM
continue with the operation, but truncating the size to its 16 least
significant bits.
Encryption and decryption cycles that seem to work with large files are
actually encrypting and decrypting part of the original file and storing the
output in the memory address where the original file was stored, making it seem
like the process was successful when it really isn't. It's also possible that,
even if both operations work fine, the final decrypted file will differ from the
original one because it contains the decrypted truncated blob plus whatever
comes after it in memory.
Fix the size limit, dynamically alter it during runtime depending on the
operation and exit if the limit is surpassed to avoid including unrelated
memory contents in the output.
https://jira.digi.com/browse/DEL-7378
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
The newest version of cryptoauthlib provides a new test application to validate
and lock the cryptochip configuration.
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit will remove the call to stop the CAN controller,
because freeing the CAN will stop the CAN interface already.
Calling stop twice will producing the following error message:
DIGIAPIX[824]: [ERROR] ldx_can_process_tx_socket: CAN network is down
DIGIAPIX[824]: [ERROR] ldx_can_stop: Unexpected state 0, in can0 interface
DIGIAPIX[824]: [ERROR] can0|ldx_can_thr: select error (-27|100)
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
- The <stropts.h> header is no longer available.
- The <sys/ioctl.h> is required.
Reported-by: Paolo Chiarlone <paolo.chiarlone@digi.com>
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
https://jira.digi.com/browse/DEL-7207