Git Product home page Git Product logo

iot-edge-sdk-for-iot-parser's Introduction

百度天工物联网EDGE SDK

介绍

百度天工物联网EDGE SDK包含一系列与百度天工物联网云端服务配合工作的SDK,SDK运行在客户端。目前包含三个具体的SDK:

  • modbus: modbus物解析网关。Modbus(TCP和RTU)协议数据的采集、上传,并且在云端进行解析和存储。
  • device-management: 新版物管理SDK
  • bacnet: bacnet网关。BACNET(IP)协议数据的采集、上传,并且在云端进行存储。

各个SDK的详情请参考具体的子目录。

iot-edge-sdk-for-iot-parser's People

Contributors

jimmycasey avatar ubyyj avatar zhaoboc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iot-edge-sdk-for-iot-parser's Issues

win64 编译问题

编译结束后,没有生成 exe ,不知道什么情况?

[100%] Built target paho-mqtt3a-static
x86_64-w64-mingw32-gcc -o ../../bdModbusGateway.exe ../src/.c -I /opt/iot-edge -sdk-for-iot-parser/modbus/cross-compile/deps_linux_win64/output/include -L /opt /iot-edge-sdk-for-iot-parser/modbus/cross-compile/deps_linux_win64/output/lib -W l,--no-as-needed -lm -l:libssl.a -l:libcrypto.a -l:libcjson.a -l:libmodbus.a -l:libpaho-mqtt3cs.dll -l:libssl.a -l:libcrypto.a -lws2_32
../src/business.c: In function ‘cleanup_shared_data’:
../src/business.c:168:5: warning: implicit declaration of function ‘cleanup_modb us_ctxs’ [-Wimplicit-function-declaration]
cleanup_modbus_ctxs();
^
../src/business.c: In function ‘load_slave_policy_from_cache’:
../src/business.c:282:9: warning: implicit declaration of function ‘init_modbus_ context’ [-Wimplicit-function-declaration]
init_modbus_context(policy);
^
../src/business.c: In function ‘msg_arrived’:
../src/business.c:330:16: warning: implicit declaration of function ‘handle_conf ig_msg’ [-Wimplicit-function-declaration]
return handle_config_msg(context, topicName, topicLen, message);
^
../src/business.c:333:16: warning: implicit declaration of function ‘handle_back control_msg’ [-Wimplicit-function-declaration]
return handle_back_control_msg(context, topicName, topicLen, message);
^
../src/business.c: In function ‘handle_back_control_msg’:
../src/business.c:392:13: warning: implicit declaration of function ‘write_modbu s’ [-Wimplicit-function-declaration]
write_modbus(slaveid, address, data);
^
../src/business.c: In function ‘execute_policy’:
../src/business.c:561:14: warning: implicit declaration of function ‘read_modbu ’ [-Wimplicit-function-declaration]
int rc = read_modbus(policy, payload);
^
../src/business.c: In function ‘worker_func’:
../src/business.c:617:9: warning: implicit declaration of function ‘sleep’ [-Wim plicit-function-declaration]
sleep(1);
^
../src/business.c: In function ‘init_static_data’:
../src/business.c:636:5: warning: implicit declaration of function ‘init_modbus
ctxs’ [-Wimplicit-function-declaration]
init_modbus_ctxs();
^
../src/modbuslib.c: In function ‘init_modbus_context’:
../src/modbuslib.c:46:9: warning: implicit declaration of function ‘mystrncpy’ [ -Wimplicit-function-declaration]
mystrncpy(ip, policy->ip_com_addr, ADDR_LEN);
^
../src/modbuslib.c: In function ‘read_modbus’:
../src/modbuslib.c:213:13: warning: implicit declaration of function ‘byte_arr_t o_hex’ [-Wimplicit-function-declaration]
byte_arr_to_hex(payload, (char
)tab_rq_bits, nb * sizeof(uint8_t));
^
../src/modbuslib.c:241:13: warning: implicit declaration of function ‘short_arr_ to_array’ [-Wimplicit-function-declaration]
short_arr_to_array(payload, tab_rq_registers, nb);
^
../src/modbuslib.c: In function ‘write_modbus’:
../src/modbuslib.c:457:19: warning: implicit declaration of function ‘char2uint ’ [-Wimplicit-function-declaration]
int num = char2uint8(data8, data);
^
../src/modbuslib.c:473:19: warning: implicit declaration of function ‘char2uint1 6’ [-Wimplicit-function-declaration]
int num = char2uint16(data16, data);
^
../src/mqttsender.c: In function ‘close_mqtt_sender’:
../src/mqttsender.c:338:4: warning: implicit declaration of function ‘sleep’ [-W implicit-function-declaration]
sleep(1);
^
../src/mqttsender.c: In function ‘makeMqttConnection’:
../src/mqttsender.c:468:62: warning: implicit declaration of function ‘time’ [-W implicit-function-declaration]
snprintf(clientid, MAX_LEN, "MqttSender%lld", (long long)time(NULL));
^
../src/mqttsender.c: At top level:
../src/mqttsender.c:483:8: warning: return type defaults to ‘int’ [-Wimplicit-in t]
static flushIncomingQueueToFile(MqttSender* sender)
^
../src/ringbufi.c: In function ‘putRingBuFiRecord’:
../src/ringbufi.c:105:7: warning: implicit declaration of function ‘ftruncate’ [ -Wimplicit-function-declaration]
if (ftruncate(fileno(pBuf->fp), pBuf->nomanland) != 0)
^
/opt/iot-edge-sdk-for-iot-parser/modbus/cross-compile/deps_linux_win64/output/li b/libcjson.a(cJSON.c.obj):cJSON.c:(.text+0x5b5):对‘__stack_chk_fail’未定义的引 用
/opt/iot-edge-sdk-for-iot-parser/modbus/cross-compile/deps_linux_win64/output/li b/libcjson.a(cJSON.c.obj):cJSON.c:(.text+0xaac):对‘__stack_chk_fail’未定义的引 用
/opt/iot-edge-sdk-for-iot-parser/modbus/cross-compile/deps_linux_win64/output/li b/libcjson.a(cJSON.c.obj):cJSON.c:(.text+0x1156):对‘__stack_chk_fail’未定义的引 用
/opt/iot-edge-sdk-for-iot-parser/modbus/cross-compile/deps_linux_win64/output/li b/libcjson.a(cJSON.c.obj):cJSON.c:(.text+0x16c6):对‘__stack_chk_fail’未定义的引 用
/opt/iot-edge-sdk-for-iot-parser/modbus/cross-compile/deps_linux_win64/output/li b/libcjson.a(cJSON.c.obj):cJSON.c:(.text+0x1893):对‘__stack_chk_fail’未定义的引 用
/opt/iot-edge-sdk-for-iot-parser/modbus/cross-compile/deps_linux_win64/output/li b/libcjson.a(cJSON.c.obj):cJSON.c:(.text+0x19e3): 跟着更多未定义的参考到 __stack _chk_fail
/opt/iot-edge-sdk-for-iot-parser/modbus/cross-compile/deps_linux_win64/output/li b/libcjson.a(cJSON.c.obj):cJSON.c:(.rdata$.refptr.__stack_chk_guard[.refptr.__st ack_chk_guard]+0x0):对‘__stack_chk_guard’未定义的引用
collect2: error: ld returned 1 exit status
Makefile:8: recipe for target 'bdModbusGateway.exe' failed
make: *** [bdModbusGateway.exe] Error 1
cp: 无法获取'../../bdModbusGateway.exe' 的文件状态(stat): 没有那个文件或目录

SUCCESS, executable is located at ../../bdModbusGateway.exe
image
image

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.