Commit Graph

166 Commits

Author SHA1 Message Date
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
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
Tatiana Leon 226a64285d connectcore-demo-example: dashboard: implement get video resolution
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 02c160b34b connectcore-demo-example: dashboard: implement set audio volume
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 04400289cc connectcore-demo-example: dashboard: implement set led status
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 0e6d64b499 connectcore-demo-example: dashboard: remove console access
Console is not going to be supported at this moment.

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 28319f0988 connectcore-demo-example: remove csrftoken cookie
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
Hector Palacios 7681c2f100 README: fix cc6ul sbc i2c port index
Reported-by: Leonid Makhnovskiy <leonid.makhnovskiy@digi.com>
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-7896
2022-04-20 12:16:55 +02:00
Gabriel Valcazar cf3e39fdc4 Merge tag 'dey-3.2-r2.2'
Digi Embedded Yocto 3.2-r2.2

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-03 13:29:55 +01:00
Hector Palacios f799c8125a Merge branch 'master' into dey-3.2/maint
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-11-12 12:13:30 +01:00
Tatiana Leon 644023bc66 ble-gatt-server-example: remove mainloop_set_signal and use mainloop_run_with_signal
See bluez commits:

   * 5202ea57a8fda7b298bb920a05c349897377abc1
   * b597afa45a40ed2720659649e77dd25b45383fc0
   * 5bdc09bb3a9e1e15aaff10ada0eddad21a2915fa
   * 0aa6516a154b1ce02bd99c2dda6a4f305e3854c0

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
(cherry picked from commit 7fd22392de)
2021-07-29 09:58:45 +02:00
Tatiana Leon b67f0eaba1 ble-gatt-server-example: add support for notify multiple
See bluez commit b8b59af4e88069cb2f67b0168113aa489f6e1fe9.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
(cherry picked from commit f0d0e84ef4)
2021-07-29 09:58:25 +02:00
Hector Bujanda de9db29af7 adc: detect error when sampling
Avoid sample conversion after sampling error.

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

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
(cherry picked from commit 6e7e975754)
2021-07-26 11:49:22 +02:00
Mike Engel f7a41d073c Merge tag 'dey-3.2-r1.2'
Digi Embedded Yocto 3.2-r1.2

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2021-07-26 11:47:53 +02:00
Tatiana Leon 7fd22392de ble-gatt-server-example: remove mainloop_set_signal and use mainloop_run_with_signal
See bluez commits:

   * 5202ea57a8fda7b298bb920a05c349897377abc1
   * b597afa45a40ed2720659649e77dd25b45383fc0
   * 5bdc09bb3a9e1e15aaff10ada0eddad21a2915fa
   * 0aa6516a154b1ce02bd99c2dda6a4f305e3854c0

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2021-07-20 16:21:39 +02:00
Tatiana Leon f0d0e84ef4 ble-gatt-server-example: add support for notify multiple
See bluez commit b8b59af4e88069cb2f67b0168113aa489f6e1fe9.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2021-07-20 16:21:03 +02:00
Hector Bujanda 6e7e975754 adc: detect error when sampling
Avoid sample conversion after sampling error.

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

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2021-07-19 15:20:00 +02:00
Hector Palacios c8257ea56e apix-pwm-example: make a more visual PWM change on LED
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>
2021-06-08 16:23:51 +02:00