Commit Graph

103 Commits

Author SHA1 Message Date
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
Francisco Gil Martinez 8d41c0b7ee Merge tag 'dey-3.0-r4.1'
Digi Embedded Yocto 3.0-r4.1

Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2021-05-04 13:15:31 +02:00
Francisco Gil ada1185ac6 cc8mm: add support for cc8mm in the examples
https://jira.digi.com/browse/DEL-7463

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2021-03-08 12:53:18 +01:00
Gabriel Valcazar 35b859e87a caam-blob-example: fix the maximum input size to match the one in the driver
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>
2021-01-18 11:26:38 +01:00
Arturo Buzarra f397c85183 cryptochip-gen-random: refresh the warning to use the new library application
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>
2021-01-15 08:50:43 +01:00
Mike Engel ff6869f690 apix-can: remove CAN stop from cleanup()
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>
2021-01-12 12:05:31 +01:00
Hector Palacios 1317384494 caam-blob-example: fix build errors
- 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
2020-08-07 12:54:16 +02:00
Hector Bujanda a2412edf38 apix-gpio-example: make use of libgpiod
From the user point of view the the main change is the addition of function
ldx_gpio_request_by_controller() which selects the gpio to use using following
arguments:
   - controller: The controller name or alias of the GPIO to request.
   - line: The line number of the GPIO to request.
   - request_mode argument has been removed since that argument only has
     sense for sysfs related functions as it controls the way the line is
     exported and unexported.

The configuration file entries change to following format:
   - USER_LED = mca-gpio,12
   - USER_BUTTON = mca-gpio,10

Also improved argument parsing and help

https://jira.digi.com/browse/DEL-6425

Signed-off-by: Hector Bujanda hector.bujanda@digi.com
2020-04-27 11:00:22 +02:00
Hector Bujanda dfa1e51519 apix-pwm-example: apix-adc-example: improve arguments parsing
In previous implementation, if alias wanted to be used, it had to be passed twice.

https://jira.digi.com/browse/DEL-6425

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2020-04-02 12:39:21 -07:00
Mike Engel 870a6073c0 Merge tag 'dey-2.6-r3.1' Digi Embedded Yocto 2.6-r3.1
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-02-20 15:00:55 +01:00
Arturo Buzarra af624592e6 README.md: Update CCIMX8X readme file to match with the new PWM and GPIO settings
https://jira.digi.com/browse/DEL-6807

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-02-11 13:15:26 +01:00
Francisco Gil 69455d0b51 readme: reorganize the platform from newest to eldest
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2020-02-06 16:35:20 +01:00
Francisco Gil e340d9be3e cc8m: add support for the cc8m platform
https://jira.digi.com/browse/DEL-6955

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2020-02-06 16:35:14 +01:00
Gabriel Valcazar ff20d8c0a9 cryptochip-gen-random: remove --static flag from LDLIBS
The newest version of cryptoauthlib is built as a shared library instead of a
static one.

https://jira.digi.com/browse/DEL-6835

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-11-05 15:42:18 +01:00