Jim Flynn
/
aws-iot-device-sdk-mbed-c
Changes to enabled on-line compiler
platform/ezconnect/wnc14a2a-driver/README.md@0:082731ede69f, 2018-05-30 (annotated)
- Committer:
- JMF
- Date:
- Wed May 30 20:59:51 2018 +0000
- Revision:
- 0:082731ede69f
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JMF | 0:082731ede69f | 1 | |
JMF | 0:082731ede69f | 2 | # Easy Connect with the wnc14a2a-library |
JMF | 0:082731ede69f | 3 | |
JMF | 0:082731ede69f | 4 | ## Specifying the connectivity method |
JMF | 0:082731ede69f | 5 | |
JMF | 0:082731ede69f | 6 | Add the following to your `mbed_app.json` file: |
JMF | 0:082731ede69f | 7 | |
JMF | 0:082731ede69f | 8 | ```json |
JMF | 0:082731ede69f | 9 | { |
JMF | 0:082731ede69f | 10 | "config": { |
JMF | 0:082731ede69f | 11 | "network-interface":{ |
JMF | 0:082731ede69f | 12 | "help": "options are ETHERNET, WIFI_ESP8266, WIFI_IDW0XX1, WIFI_ODIN, WIFI_RTW, WIFI_WIZFI310, WIFI_ISM43362, MESH_LOWPAN_ND, MESH_THREAD, CELLULAR_ONBOARD, CELLULAR_WNC14A2A", |
JMF | 0:082731ede69f | 13 | "value": "CELLULAR_WNC14A2A" |
JMF | 0:082731ede69f | 14 | } |
JMF | 0:082731ede69f | 15 | }, |
JMF | 0:082731ede69f | 16 | } |
JMF | 0:082731ede69f | 17 | } |
JMF | 0:082731ede69f | 18 | ``` |
JMF | 0:082731ede69f | 19 | |
JMF | 0:082731ede69f | 20 | ## Debug settings |
JMF | 0:082731ede69f | 21 | You may also want to specify the following to obtain debug output. This is added to the "config" section: |
JMF | 0:082731ede69f | 22 | |
JMF | 0:082731ede69f | 23 | ```json |
JMF | 0:082731ede69f | 24 | "config": { |
JMF | 0:082731ede69f | 25 | "wnc_debug": { |
JMF | 0:082731ede69f | 26 | "help" : "enable or disable WNC debug messages.", |
JMF | 0:082731ede69f | 27 | "value": 0 |
JMF | 0:082731ede69f | 28 | }, |
JMF | 0:082731ede69f | 29 | "wnc_debug_setting": { |
JMF | 0:082731ede69f | 30 | "help" : "bit value 1 and/or 2 enable WncController debug output, bit value 4 enables mbed driver debug output.", |
JMF | 0:082731ede69f | 31 | "value": "4" |
JMF | 0:082731ede69f | 32 | } |
JMF | 0:082731ede69f | 33 | } |
JMF | 0:082731ede69f | 34 | ``` |
JMF | 0:082731ede69f | 35 | |
JMF | 0:082731ede69f | 36 | where the wnc_debug is either 'true' or 'false' to enable or disable debug output and the `wnc_debug_setting` variable is a |
JMF | 0:082731ede69f | 37 | bit-field with the following settings: |
JMF | 0:082731ede69f | 38 | 0x01 - Basic WNC driver debug output |
JMF | 0:082731ede69f | 39 | 0x02 - Comprehensive WNC driver debug output |
JMF | 0:082731ede69f | 40 | 0x04 - Driver Enter/Exit debug information |
JMF | 0:082731ede69f | 41 | 0x08 - Driver Event Queue debug information |
JMF | 0:082731ede69f | 42 | 0x10 - SMS debug information |
JMF | 0:082731ede69f | 43 | 0x20 - Dump Driver Arrays |
JMF | 0:082731ede69f | 44 | |
JMF | 0:082731ede69f | 45 | ## Overriding settings |
JMF | 0:082731ede69f | 46 | You need to increase the size of the Tx and Rx buffers used when communicating to the WNC device by adding (increas the buffer |
JMF | 0:082731ede69f | 47 | size to 4KB from 256 Bytes): |
JMF | 0:082731ede69f | 48 | |
JMF | 0:082731ede69f | 49 | |
JMF | 0:082731ede69f | 50 | ```json |
JMF | 0:082731ede69f | 51 | "target_overrides": { |
JMF | 0:082731ede69f | 52 | "*": { |
JMF | 0:082731ede69f | 53 | "drivers.uart-serial-txbuf-size": 4096, |
JMF | 0:082731ede69f | 54 | "drivers.uart-serial-rxbuf-size": 4096 |
JMF | 0:082731ede69f | 55 | } |
JMF | 0:082731ede69f | 56 | ``` |
JMF | 0:082731ede69f | 57 |