Commit Graph

21 Commits

Author SHA1 Message Date
Javier Viguera 876b1d55fc connectcore-demo-example: use is_local_access for local run detection
According to the API, navigator.platform is unreliable and not recommended
for runtime detection. As our platforms are ARM based, we were using it
to get the platform and grep for a literal arm. That fails for example
when using chromium browser on the ConnectCore devices, as it is reporting
'Linux x86_64' even running on an arm64 device.

Instead use the already implemented is_local_access function to detect
whether the browser is running locally in the target.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-11-12 17:29:44 +01: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
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 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 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
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 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 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 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 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 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 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
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
Tatiana Leon b359ef3d43 connectcore-demo-example: remove not needed stuff for local management
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 59cb0dd752 connectcore-demo-example: set relative path for static resources
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 3a2d37f8e1 connectcore-demo-example: initial dashboard and management pages
Generated from repo https://github.com/digidotcom/digi-iot-web-apps at commit
95cb32f39f2fafd7bde7fb02c47bc966d8f75916 and directory 'connectcore'.

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

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