20160309_jeffrey - silenceuncrio/diary GitHub Wiki
Index
- 0840 - Serial Programming
- 1420 - DigiComm DSR-111-U Com port redirector
- 1620 - git 下來的 LinkIt 7688 source build 不過
- 1740 - build 過了
0840
1420
幫忙 morris verify 一下 DigiComm DSR-111-U 所謂的 Com port redirector
到底是啥?
是不是有標準要遵守?
Linux 上要怎麼實作?
Linux 上是否已經有現成的套件可供使用?
跟 Modbus 有沒有關係?
DSR-111-U 上面的 Com port redirector
功能在 web page 的描述如下
2.2.4.1. COM1 Properties
· Application: Application the port is used with.
· Work as: Configure this end as server or client.
· Server address: Destination IP address or name.
· TCP redirector port: Port to listen on.
· Bits per second: Choose the speed to use.
· Data bits: Choose the data bits.
· Parity: Choose the parity.
· Stop bits: Choose the stop bits.
· Flow control: Choose the flow control.
google linux serial tcp redirection
會有一堆現成的答案給你用
這一篇就列出了不少答案
不過需要花時間研究才能挑出適合 DigiComm 的 Solution
1620
Brook 今天 git 下來的 LinkIt 7688 source 也是 build 不過
不過錯誤訊息略有不同
mkdir -p /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips/stamp /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips/tmp-cgi-io
install -d -m0755 /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips/tmp-cgi-io/usr/libexec /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips/tmp-cgi-io/www/cgi-bin/
install -m0755 /home/brook/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/cgi-io/cgi-io /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips/tmp-cgi-io/usr/libexec
ln -sf ../../usr/libexec/cgi-io /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips/tmp-cgi-io/www/cgi-bin/cgi-upload
ln -sf ../../usr/libexec/cgi-io /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips/tmp-cgi-io/www/cgi-bin/cgi-download
SHELL= /home/brook/openwrt/staging_dir/host/bin/flock /home/brook/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips/tmp-cgi-io/. /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips/'
rm -rf /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips/tmp-cgi-io
touch /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips/stamp/.cgi-io_installed
if [ -f /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/pkginfo/cgi-io.default.install.clean ]; then rm -f /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/pkginfo/cgi-io.default.install /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/pkginfo/cgi-io.default.install.clean; fi; echo "cgi-io" >> /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/pkginfo/cgi-io.default.install
rm -rf /home/brook/openwrt/tmp/stage-cgi-io
mkdir -p /home/brook/openwrt/tmp/stage-cgi-io/host /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/packages /home/brook/openwrt/staging_dir/host/packages
find /home/brook/openwrt/tmp/stage-cgi-io -name '*.la' | xargs -r rm -f;
if [ -f /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/packages/cgi-io.list ]; then /home/brook/openwrt/scripts/clean-package.sh "/home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/packages/cgi-io.list" "/home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2"; fi
if [ -d /home/brook/openwrt/tmp/stage-cgi-io ]; then (cd /home/brook/openwrt/tmp/stage-cgi-io; find ./ > /home/brook/openwrt/tmp/stage-cgi-io.files); SHELL= /home/brook/openwrt/staging_dir/host/bin/flock /home/brook/openwrt/tmp/.staging-dir.flock -c ' mv /home/brook/openwrt/tmp/stage-cgi-io.files /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/packages/cgi-io.list && cp -fpR /home/brook/openwrt/tmp/stage-cgi-io/* /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/; '; fi
rm -rf /home/brook/openwrt/tmp/stage-cgi-io
touch /home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.cgi-io_installed
make[3]: Leaving directory '/home/brook/openwrt/feeds/packages/net/cgi-io'
make[3]: Entering directory '/home/brook/openwrt/feeds/packages/utils/attr'
mkdir -p /home/brook/openwrt/dl
echo "Checking out files from the git repository..."; mkdir -p /home/brook/openwrt/tmp/dl && cd /home/brook/openwrt/tmp/dl && rm -rf attr-20150220 && [ \! -d attr-20150220 ] && git clone git://git.sv.gnu.org/attr.git attr-20150220 --recursive && (cd attr-20150220 && git checkout c252ef434219891f616d891b46aad6b06efdd185 && git submodule update) && echo "Packing checkout..." && rm -rf attr-20150220/.git && tar czf /home/brook/openwrt/tmp/dl/attr-20150220.tar.gz attr-20150220 && mv /home/brook/openwrt/tmp/dl/attr-20150220.tar.gz /home/brook/openwrt/dl/ && rm -rf attr-20150220;
Checking out files from the git repository...
Cloning into 'attr-20150220'...
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Makefile:92: recipe for target '/home/brook/openwrt/dl/attr-20150220.tar.gz' failed
make[3]: *** [/home/brook/openwrt/dl/attr-20150220.tar.gz] Error 128
make[3]: Leaving directory '/home/brook/openwrt/feeds/packages/utils/attr'
package/Makefile:191: recipe for target 'package/feeds/packages/attr/compile' failed
make[2]: *** [package/feeds/packages/attr/compile] Error 2
make[2]: Leaving directory '/home/brook/openwrt'
package/Makefile:188: recipe for target '/home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile' failed
make[1]: *** [/home/brook/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/brook/openwrt'
/home/brook/openwrt/include/toplevel.mk:181: recipe for target 'world' failed
make: *** [world] Error 2
brook@ubuntu:~/openwrt$
看起來是在 build /home/brook/openwrt/feeds/packages/utils/attr
時出了錯
似乎是下載該 package 的 tar ball 時失敗了
將 fcgi, nginx, spawn-cgi 取消勾選再試一次
1740
build 過了
再把 fcgi, nginx, spawn-cgi 勾選再試一次
過了... 太好了