Taking photo using GR-LYCHEE through Pelion Device Management.

This firmware project works for GR-LYCHEE and GR-PEACH.

Steps to build this firmware with Mbed CLI

Import project

$ mbed import http://os.mbed.com/users/coisme/code/Pelion-GR-LYCHEE-camera-firmware/

Setting

  • Ethernet (GR-PEACH only)
    • Change the file name mbed_app.RZ_A1H_Ethernet.json to mbed_app.json
  • Wi-Fi
    • Change the Wi-Fi setting in mbed_app.json, i.e. nsapi.default-wifi-ssid and nsapi.default-wifi-password

If you haven't set your Pelion API key, run the following command.

$ mbed config -G CLOUD_SDK_API_KEY <API_KEY>

Setting for Pelion Device Management

$ mbed dm init -d "example.com" --model-name "PELION_DEMO" -q --force

Compile

For GR-LYCHEE:

$ mbed compile -t GCC_ARM -m GR_LYCHEE

For GR-PEACH:

$ mbed compile -t GCC_ARM -m RZ_A1H

Write the created .bin file to your GR-LYCHEE/PEACH.

That's it! :-)

LED Status Indicator

LEDs next to UB0 show the status of your GR-LYCHEE/PEACH.

LED#GR-LYCHEEGR-PEACHStatusDescription
LED1greenredNormalTurned on after the device is registered to Pelion Device Management successfully.
LED2yellowgreenErrorTurned on when the network initialization failed. Check your Wi-Fi setting.
LED3orangeblueErrorTurned on when the Pelion Device Management Client initialization failed. Check your SD card.
LED4redredErrorTurned on when the network is disconnected. Check your Wi-Fi network status.

Clear device identity

If you want to clear the device's identity, connect to the device via serial terminal. Then input r command. The device flushes the identity storage, then reboot.

Known Issues

  • client_error(6) -> Client in reconnection mode NetworkError appears when connecting to network, but eventually connection will be established.
  • Warning message "MBEDTLS_TEST_NULL_ENTROPY has been enabled. This configuration is not secure and is not suitable for production use" appears when compiling the project for GR-PEACH. This can be ignored in development stage.

Changes

RevisionDateWhoCommit message
29:ed5e9b78ed40 2019-10-17 Osamu Koizumi Added tag v1.3 for changeset 7c220e487ae6 default tip
28:7c220e487ae6 2019-10-17 Osamu Koizumi Remove Wi-Fi setting v1.3
27:cafd85d3818d 2019-10-17 Osamu Koizumi Run event queue in seprate thread.
26:cb1bb0872318 2019-10-17 Osamu Koizumi Add help message to led-on config parameter
25:c9d2e747379f 2019-10-17 Osamu Koizumi Removed.
24:c5412f9149fe 2019-10-16 Osamu Koizumi Updated for Mbed OS 5.14.0 and PDMC 4.0.0
23:e5580bfcc414 2019-10-16 Osamu Koizumi Clean up
22:4d927fcd97e1 2019-10-16 Osamu Koizumi Update Mbed OS and PDMC
21:73d38425cc0b 2019-07-12 Osamu Koizumi Initial commit
20:c846613d9e3b 2019-06-27 Osamu Koizumi Added tag v1.2 for changeset bdc69891952a
19:bdc69891952a 2019-06-27 Osamu Koizumi Changed LED references to enable GR-PEACH v1.2
18:d1429faa7c87 2019-06-27 Osamu Koizumi Modified setting to enable GR-PEACH
17:07576dd58e8c 2019-04-10 Osamu Koizumi Added tag v1.1.1 for changeset e0cf507dcd5d
16:e0cf507dcd5d 2019-04-10 Osamu Koizumi Correct GREEN LED behavior. v1.1.1
15:09a192353257 2019-04-10 Osamu Koizumi Added tag v1.1 for changeset 0480150782c8
14:0480150782c8 2019-04-10 Osamu Koizumi Use LEDs as error indicator. v1.1
13:bc31cb1602de 2019-04-10 Osamu Koizumi Resolved dupliate config section.
12:74dc037445ce 2019-03-08 Osamu Koizumi Added tag v1.0.0 for changeset 414b4a4ebbc6
11:414b4a4ebbc6 2019-02-22 Osamu Koizumi Added default photo data. v1.0.0
10:29d334f90c99 2019-02-21 Osamu Koizumi Changed camera trigger and cleaned up code.
9:eac9e0c9effd 2019-02-20 dkato Add camera function
8:5f1c0849001c 2019-02-19 Osamu Koizumi Added dummy camera trigger.
7:826cdcc3c8ec 2019-02-19 Osamu Koizumi Set default photo.
6:2fd7aeac8aeb 2019-02-19 Osamu Koizumi Changed photo data to smaller size.
5:8fb79d596b27 2019-02-15 Osamu Koizumi Jpeg data.
4:7c58c47eca55 2019-02-15 Osamu Koizumi Added camera resource, currently sending static photo data.
3:c8de11b0ce7c 2018-12-26 MACRUM Update library
2:a5b5f3df19e8 2018-12-26 MACRUM Add GR-PEACH support
1:c74d05affb1b 2018-12-15 MACRUM remove README.md
0:6d2053b84a92 2018-12-15 MACRUM initial commit