Git Product home page Git Product logo

pschen / ai-thinker-open-tg7100c_sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ai-thinker-open/ai-thinker-open-tg7100c_sdk

0.0 0.0 0.0 576.19 MB

安信可模组量产发布SDK

License: Apache License 2.0

Shell 1.34% JavaScript 0.01% C++ 0.01% Python 17.18% Perl 0.14% C 79.50% Tcl 0.01% Assembly 0.47% CSS 0.04% Makefile 0.95% HTML 0.01% Smarty 0.10% CMake 0.19% Batchfile 0.01% M4 0.04% GDB 0.01% SmPL 0.01%

ai-thinker-open-tg7100c_sdk's Introduction

安信可 TG-12F 模组二次开发SDK

编译方法: ./build.sh example smart_outlet tg7100cevb SINGAPORE ONLINE 0

第一个参数为help时,输出build.sh当前默认编译参数. 第一个参数为clean时,执行SDK目录下example目录删除,并从仓库恢复,下次编译时,会重新完整编译整个SDK及应用. 第一个参数在Products目录下找不到对应的文件夹时,会继续从Living_SDK/example目录下找,如能找到,则执行编译,成功后,复制编译结果到out目录。

要实现不输入参数,执行./build.sh编译输出需要的应用固件,可更改以下默认参数: default_type="example" default_app="smart_outlet" default_board="uno-91h" default_region=SINGAPORE default_env=ONLINE default_debug=0 default_args="" 以上参数分别对应: 产品类型、应用名称、模组型号、连云区域、连云环境、debug、其他参数(可不填,需要时把参数加到双引号内)。

当前已支持的board: tg7100c: tg7100cevb RDA5981A: hf-lpb130 hf-lpb135 hf-lpt230 hf-lpt130 uno-91h rtl8710bn: mk3080 mk3092 asr5502: mx1270

注意

由于安信可统一了三元组烧录指令,当用需要使用读取三元组时需要将读取API的KEY值统一更换为安信可规定的KEY值,修改如下

获取productKey:

aos_kv_get(KV_KEY_PK, product_key, &pk_len);

获取ProduceSecret:

aos_kv_get(KV_KEY_PS, product_secret, &ps_len);

获取DeviceName:

aos_kv_get(KV_KEY_DN, device_name, &dn_len);

获取DeviceSecret:

aos_kv_get(KV_KEY_DS, device_secret, &ds_len);

获取ProductID:

aos_kv_get(KV_KEY_PD, pidStr, &len);

安信可烧录三元组AT指令格式:

AT+LINKKEYCONFIG="ProductID","DeviceName","DeviceSecret","ProduceSecret","ProductID"

查询三元组指令格式 AT+LINKKEYCONFIG?

ai-thinker-open-tg7100c_sdk's People

Contributors

shijguo avatar xuhongv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.