Skip to content

Instantly share code, notes, and snippets.

#define MAX_BUF (64) // What is the longest message Arduino can store?
static char buffer[MAX_BUF]; // where we store the message until we get a ';'
static int sofar; // how much is in the buffer
int inByte = 0; // incoming serial byte
void setup()
{
// start serial port at 9600 bps:
Serial1.begin(9600);
1、先用ap模式連到linkit7688,設定密碼
2、把config檔,crane-machine.tar.gz檔,fw.hex檔放入otg碟的根目錄下
3、插入otg碟,putty登入,執行下面指令
cd /root/
tar -zxvf /Media/USB-A1/crane-machine.tar.gz -C /root/
cp ./setting/rc.local /etc/rc.local
chmod 755 /etc/rc.local
node config.js
loader init
fota: TMP is empty, skip upgrade
jump to (0x10079000)
[T: 36 M: websocket_example C: info F: main L: 95]: start to create task.
[T: 197 M: websocket_example C: info F: app_entry L: 70]: app_entry.
/*
* Copyright (c) 2014 - 2016 Kulykov Oleh <info@resident.name>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
Helloworld!
[General Setting]
Base_Directory=.\_Load\mt7697
[N9 bin]
File=WIFI_RAM_CODE_MT76X7_in_flash.bin
Start_Address=0x10000
Partition_Size=0x69000
Is_Compressed=true
[CM4 bin]
<table style="width: 600px;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="width: 42px;" colspan="6"><img style="height: 28px; width: 608px;" src="https://github.com/pc0808f/gochilllogo/blob/main/TOP.jpg?raw=true" /></td>
</tr>
<tr>
<td style="width: 42px;" colspan="1" rowspan="3"><img style="height: 76px; width: 23px;" src="https://github.com/pc0808f/gochilllogo/blob/main/left.png?raw=true" /></td>
<td style="text-align: center; width: 508px;" rowspan="2"><a href="www.gochill.com.tw"><img style="height: 163px; width: 200px;" src="https://github.com/pc0808f/gochilllogo/blob/main/kb_logo-06.png?raw=true" alt="" /></a></td>
<td style="text-align: center; width: 508px;" colspan="3">
<p><strong><span style="font-size: 20px;"><span style="font-family: 黑體-繁,微軟正黑體;">陳甯&nbsp;| Deneen</span></span></strong><br /><span style="color: #eb6d6c; font-family: 黑體-繁, 微軟正黑體;"><span style="font-size: 16px;"><strong>公關經理</strong></span></span></p>
2024-01-25T04:40:34.141+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2024-01-25T04:40:34.146+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=mongodb
2024-01-25T04:40:34.147+0000 I CONTROL [initandlisten] db version v4.0.20
2024-01-25T04:40:34.147+0000 I CONTROL [initandlisten] git version: e2416422da84a0b63cde2397d60b521758b56d1b
2024-01-25T04:40:34.147+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
2024-01-25T04:40:34.147+0000 I CONTROL [initandlisten] allocator: tcmalloc
2024-01-25T04:40:34.147+0000 I CONTROL [initandlisten] modules: none
2024-01-25T04:40:34.147+0000 I CONTROL [initandlisten] build environment:
2024-01-25T04:40:34.147+0000 I CONTROL [initandlisten] distmod: ubuntu1604
2024-01-25T04:40:34.147+0000 I CONTROL [initandlisten] distarch: x86_64
MongoNetworkError: failed to connect to server [mongodb:27017] on first connect [Error: getaddrinfo ENOTFOUND mongodb
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26) {
name: 'MongoNetworkError'
}]
at Pool.<anonymous> (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/core/topologies/server.js:438:11)
at Pool.emit (events.js:314:20)
at Pool.EventEmitter.emit (domain.js:483:12)
at /built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/core/connection/pool.js:562:14
at /built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/core/connection/pool.js:1009:9
at /built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/core/connection/connect.js:32:7