Commit Graph

189 Commits

Author SHA1 Message Date
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
Francisco Gil 7413e47d8c ble: add ble gatt server example
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2019-09-10 13:54:59 +02:00
Francisco Gil 88ba78cfd2 caam: add the caam blob example
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2019-09-05 15:38:23 +02:00
Francisco Gil 34f2c9d305 pm_example: fix compilation error
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2019-09-05 12:58:40 +02:00
Francisco Gil e32bbc12bf manifest: add the power management application
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2019-09-05 12:55:04 +02:00
Francisco Gil 0e94c71cfb pm: add two examples for the power management API
https://jira.digi.com/browse/DEL-6659

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2019-08-20 14:16:36 +02:00
Arturo Buzarra 844d13fec0 ble-gatt-server-example: add sample application to create a BLE GATT server
https://jira.digi.com/browse/DEL-6649

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-07-11 10:58:12 +02:00
Jose Diaz de Grenu a821bc2f7c README.md: standarize prompts
Use the same prompts that we use in the online documentation:
* For the target: "~#"
* For the host:   "~$"

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2019-06-12 13:14:28 +02:00
Jose Diaz de Grenu 9286799d5c README.md: minor fixes
Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2019-06-12 13:14:18 +02:00
Jose Diaz de Grenu ab38a1e6c9 caam-blob-example: add example demostrating CAAM blob usage
CAAM blobs can be used to secure data with the OTPMK. More information
is available in the online documentation.

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2019-06-12 13:14:18 +02:00
Mike Engel 41289be92e apix_can_example: Add CANFD support to configure data bitrate
This commit adds CANFD support to configure the data bitrate and
to enable the CANFD feature.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-6588
2019-06-05 11:50:05 +02:00
Arturo Buzarra 953f10971c Merge tag 'dey-2.6-r1.3'
Digi Embedded Yocto 2.6-r1.3

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-04-24 15:37:33 +02:00
Gonzalo Ruiz e8baba6de8 README: add CC8X boards interfaces to README files
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2019-04-12 17:31:06 +02:00
Hector Palacios 67a10c2d19 Merge branch 'dey-2.4/maint'
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-03-26 12:47:15 +01:00
Arturo Buzarra 3f507e3116 can: fix Makefile to attend the different targets
General Makefile calls each API source without any specific target,
this commit fixes the CAN Makefile to build without errors.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-03-12 16:05:47 +01:00