Commit Graph

60 Commits

Author SHA1 Message Date
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 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
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 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
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
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 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
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 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
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
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
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
Tatiana Leon 5c9b4f752e connectcore-demo-example: use local javascripts and css resources
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>
2022-06-03 13:57:02 +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 2bfc4d728d connectcore-demo-example: multimedia: add multimedia section
While on it remove 'History data' section.

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

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