Commit Graph

190 Commits

Author SHA1 Message Date
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
Arturo Buzarra 4bb2a81a46 Merge tag 'dey-4.0-r2.2'
Digi Embedded Yocto 4.0-r2.2

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-21 09:00:39 +01:00
David Escalona 352fabc24d connectcore-demo-example: enable audio in ccimx8m-mini and ccimx8m-nano
Signed-off-by: David Escalona <david.escalona@digi.com>
2023-03-08 11:14:22 +01:00
Tatiana Leon 81a057207e connectcore-demo-example: add support for ccmp133-dvk in the network page
ConnectCore MP13 DVK was not added to the network page when it was created
(commit 4f9717a2d3)

This commit is similar to 252c3544cb.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-03-08 11:14:22 +01:00
Tatiana Leon 548cefaf7d connectcore-demo-example: add support for ccmp133-dvk in the network page
ConnectCore MP13 DVK was not added to the network page when it was created
(commit 4f9717a2d3)

This commit is similar to 252c3544cb.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-27 17:14:21 +01:00
Arturo Buzarra aaae83101d Merge branch 'master' into dey-4.0/maint 2023-02-27 10:38:29 +01:00
Tatiana Leon 17ec656b71 connectcore-demo-example: reduce the text in the dashboard labels
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-15 13:10:16 +01: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 6ff808bc80 connectcore-demo-example: add support for ccimx93-dvk board
Signed-off-by: David Escalona <david.escalona@digi.com>
2023-02-08 18:07:20 +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 2b39907ddf connectcore-demo-example: ccmp1: remove multimedia section
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-06 18:25:28 +01:00
Tatiana Leon 1bb220793e connectcore-demo-example: set Digi logo link to 'index.html'
The original destination ('/') opens the root of the file system to browse.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-06 18:24:30 +01:00
Arturo Buzarra f6585852ae connectcore-demo-example: reduce sample audio file size
This commit replaces the sample audio file for a short version with a lowest
bitrate to reduce the size.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-02-01 16:25:42 +01:00
Arturo Buzarra 3a8f512859 connectcore-demo-example: reduce image size for ccmp1 platforms
This commit reduce the size of the ccmp1 platform images to save space on disk.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-01-31 15:38:54 +01:00
Arturo Buzarra 5234e455c4 connectcore-demo-example: rename platform image names
This commit renames the platform image files to match with the yocto machine
names, so non-platform image files can be removed and the root file system size
is reduced.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-01-31 15:38:17 +01:00
Francisco Gil 7b617dc12a ccmp13: add support for the ccmp13 platform
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-12-21 18:08:16 +01:00
Arturo Buzarra 2f81628e24 Merge tag 'dey-4.0-r1.2'
Digi Embedded Yocto 4.0-r1.2
2022-12-02 12:19:29 +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
Francisco Gil ce4c1f55d6 gpio: update readme with the new gpio used in the example
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-11-08 16:22:07 +01:00
Francisco Gil 230c3ad038 ccmp15: add support for the ccmp15 platform
https://onedigi.atlassian.net/browse/DEL-8151

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-11-08 16:20:51 +01:00
Francisco Gil 20118a0f71 ble: dey-example: update example to match with latest bluez version
Now the bt_att_set_debug requires a new parameter to set the
debug level.
This is caused by the update of the bluez library.

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

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-11-08 12:37:36 +01:00
Isaac Hermida 0e15c8833d Merge branch 'master' into dey-4.0/maint 2022-11-03 17:24:55 +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 fe23aafc92 connectcore-demo-example: generalize constants and styles for configuration
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-10-18 10:24:29 +02:00
David Escalona 4db2bb783b connectcore-demo-example: ccmp157: enable audio panel
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-10-11 17:02:35 +02:00
David Escalona eca31deca4 connectcore-demo-example: ccimx6ulsbc: enable audio panel
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-10-06 09:45:19 +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 252c3544cb connectcore-demo-example: add support for ccmp133-dvk board
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-09-29 11:40:40 +02:00
Javier Viguera be0e3b0831 Merge branch 'master' into dey-4.0/maint
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-02 14:21:30 +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 4e2f032267 connectcore-demo-example: add support for ccmp157-dvk board
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-07-13 16:53:25 +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
Javier Viguera 3c6caabcdf Merge branch 'dey-3.2/maint'
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-07 13:44:21 +02:00
David Escalona c0382f19b8 connectcore-demo-example: remove multimedia section when viewing from computer
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>
2022-07-06 16:37:00 +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 ab0be5c698 connectcore-demo-example: add support for ccimx6ulsbcpro board
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
Javier Viguera df1d1b70ec Merge tag 'dey-3.2-r3.1' into master
Digi Embedded Yocto 3.2-r3.1

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-01 10:02:43 +02:00
Francisco Gil 8176b68510 spi: remove header from example
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>
2022-06-10 11:10:01 +02:00
Tatiana Leon 2b2b584825 connectcore-demo-example: add readme file
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 a391b209e3 connectcore-demo-example: dashboard: get device info until everything is initialized
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>
2022-06-03 13:57:02 +02:00