2017年11月14日 星期二
2017年9月14日 星期四
2017年9月12日 星期二
AT Command
https://kunyichen.wordpress.com/2005/09/09/%E5%BB%BA%E7%AB%8B-tcpip-over-gprsegprs-%E7%9A%84%E6%96%B9%E6%B3%95-part-i/
必須由系統服務業者(Operator)提供一個 APN(Access Point Node or Access Point Name)
在台灣的系統業者 APN 設定如下
[Dialer Defaults]
Modem = /dev/ttyUSB3
Baud = 230400
Username = 'username'
Password = 'password'
Phone = *99#
[Dialer PIN]
Init1 = AT+CPIN?
[Dialer CHT]
APN = emome
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init5 = AT+CGDCONT=1,"ip","internet"
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Auto Reconnect = on
Dial Command = ATDT
必須由系統服務業者(Operator)提供一個 APN(Access Point Node or Access Point Name)
在台灣的系統業者 APN 設定如下
- 台灣大哥大(TCC):internet
- 中華電信(CHT):emome
- 和信電訊(KGT):wap
- 遠傳(FET):fetnet01
- 泛亞電信:hank
- 東信:gprs2, username:gprs password:gprs
其餘各家業者 User name與Password則皆為空白
當設定完成 APN 後,倘若系統業者有提供 WAP 且 STK(Sim card Tool kits)內有開啟WAP&GPRS 業務功能,這時可以試著透過使用WAP來連接上網
當由另一設備想要透過一個 GPRS Modem 撥接上網,則需透過 AT Commad來控制 GPRS Modem - 設定PDP內容 AT+CGDCONT=1,"IP","ARN for Operator", "", 0,0
- 用ATD*99# 撥上 GPRS 網路,(*99# or *99***N#,N為順位一般直接設定為1,即*99***1# 根據不同廠牌的行動電話有所不同),採用MTK Solution 的行動電話為*99#, Nokia 為*99***N#)
- 使用PPP(Point to Point Protocol)與業者的PPP Server 連線,進行TCP/IP over GPRS的實際動作。事實上是採用TCP/IP over PPP來達成目的。
[Dialer Defaults]
Modem = /dev/ttyUSB3
Baud = 230400
Username = 'username'
Password = 'password'
Phone = *99#
[Dialer PIN]
Init1 = AT+CPIN?
[Dialer CHT]
APN = emome
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init5 = AT+CGDCONT=1,"ip","internet"
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Auto Reconnect = on
Dial Command = ATDT
2017年7月16日 星期日
建立新Server
[建立home新帳號]
sudo useradd felicia
sudo passwd felicia
sudo ls -l /home
sudo mkdir /home/felicia
sudo chown felicia:felicia/home/felicia
ls -l /home
sudo /etc/init.d/apache2 restart
sudo htpasswd /etc/subversion/passwd felicia
sudo htpasswd /etc/subversion/passwd felicia
[建立SVN new Project]
sudo svnadmin create /home/svn/TG202
sudo chmod -R g+rwx /home/svn /TG202
sudo chown -R svn:svngroup /home/svn/TG202
=====================================================================
[建立samba] windows 10
[安裝]
sudo apt-get install samba
sudo smbpasswd -a <user_name>
sudo apt-get install samba
sudo smbpasswd -a <user_name>
[修改config]
sudo vi /etc/samba/smb.conf.
[global]
workgroup = WORKGROUP
client min protocol = smb2
client min protocol = smb3
#server min protocol = SMB3
security= user
[指定公用路徑]
[opt]
path = /opt/
browseable = yes
writable = yes
create mode = 0664
directory mode = 0775
browseable = yes
writable = yes
create mode = 0664
directory mode = 0775
[指定個人路徑]
[homes]
comment = Home Directories
browseable = yes
read only = no
create mask = 0700
directory mask = 0700
valid users = %S
[測試所編輯的config有沒有錯誤]
testparm
[防火牆:允許samba]
sudo ufw status
sudo ufw allow samba
[啟動服務]
sudo /etc/init.d/smbd start
[Windows開啟網路芳鄰]
\\<IP_addr>\opt\
2017年6月18日 星期日
Yocto Build Server
Working with Yocto to Build Linux:
https://www.embeddedartists.com/sites/default/files/support/com/iMX6_Working_with_Yocto.pdf
https://community.nxp.com/thread/452294
https://www.embeddedartists.com/sites/default/files/support/com/iMX6_Working_with_Yocto.pdf
https://community.nxp.com/thread/452294
2017年5月12日 星期五
Bitbake
https://www.yoctoproject.org/docs/1.6/bitbake-user-manual/bitbake-user-manual.html
使用下面命令來查看目前repo 有哪些package:
bitbake-layers show-recipes
-c listtasks
ex . bitbake linux-imx -c listtasks
使用下面命令來查看目前repo 有哪些package:
bitbake-layers show-recipes
![]() |
使用下面命令來查看目前repo 有哪些package: bitbake-layers show-recipes |
使用下面命令來查看一個包都有哪些可執行的task:
bitbake ex . bitbake linux-imx -c listtasks
2017年5月9日 星期二
2017年5月8日 星期一
2017年4月15日 星期六
git
git clone https://github.com/feliciapei/mphone.git -recursive
http://gogojimmy.net/2012/02/29/git-scenario/
http://gogojimmy.net/2012/02/29/git-scenario/
2017年4月6日 星期四
Build Linphone
http://askubuntu.com/questions/610291/how-to-install-cmake-3-2-on-ubuntu-14-04
wget https://cmake.org/files/v3.7/cmake-3.7.0-Linux-x86_64.tar.gz
wget https://cmake.org/files/v3.7/cmake-3.7.0-Linux-x86_64.sh
wget https://cmake.org/files/v3.7/cmake-3.7.2.tar.gz
tar -xvf cmake-3.7.2.tar.gz
cd cmake-3.7.2/
./configure
make
sudo make install
exit
cmake --version
git clone git://git.linphone.org/linphone-android.git --recursive
http://ubuntuhandbook.org/index.php/2015/01/install-openjdk-8-ubuntu-14-04-12-04-lts/
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
sudo update-alternatives --config java
select [2] java8
http://askubuntu.com/questions/710426/android-sdk-on-ubuntu-32bit
http://nongnu.13855.n7.nabble.com/Linphone-Compile-error-for-android-td172317.html
http://www.qisanfen.com/?p=493
-- Could NOT find Git: Found unsuitable version "1.7.9.5", but required is at least "1.7.10" (found /usr/bin/git)
http://askubuntu.com/questions/571549/git-1-7-9-5-upgrade-to-current-release-of-git-2-x-on-ubuntu-12-04
HAVE_POLARSSL_SSL_H)
http://nongnu.13855.n7.nabble.com/bctoolbox-compiling-errors-td214891.html
wget https://cmake.org/files/v3.7/cmake-3.7.0-Linux-x86_64.tar.gz
wget https://cmake.org/files/v3.7/cmake-3.7.0-Linux-x86_64.sh
wget https://cmake.org/files/v3.7/cmake-3.7.2.tar.gz
tar -xvf cmake-3.7.2.tar.gz
cd cmake-3.7.2/
./configure
make
sudo make install
exit
cmake --version
git clone git://git.linphone.org/linphone-android.git --recursive
http://ubuntuhandbook.org/index.php/2015/01/install-openjdk-8-ubuntu-14-04-12-04-lts/
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
sudo update-alternatives --config java
select [2] java8
http://askubuntu.com/questions/710426/android-sdk-on-ubuntu-32bit
http://nongnu.13855.n7.nabble.com/Linphone-Compile-error-for-android-td172317.html
http://www.qisanfen.com/?p=493
-- Could NOT find Git: Found unsuitable version "1.7.9.5", but required is at least "1.7.10" (found /usr/bin/git)
http://askubuntu.com/questions/571549/git-1-7-9-5-upgrade-to-current-release-of-git-2-x-on-ubuntu-12-04
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
git --version
sudo apt-get install android-tools-adb
Could NOT find PolarSSL (missing: POLARSSL_INCLUDE_DIRSHAVE_POLARSSL_SSL_H)
http://nongnu.13855.n7.nabble.com/bctoolbox-compiling-errors-td214891.html
sudo apt-get install libpolarssl-dev
2017年4月3日 星期一
https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7
https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7
2017年3月31日 星期五
git
git clone git://git.linphone.org/linphone-android.git --recursive
git clone https://github.com/Kitware/CMake.git
http://www.aichengxu.com/linux/4496358.htm
git clone https://github.com/Kitware/CMake.git
http://www.aichengxu.com/linux/4496358.htm
2017年1月19日 星期四
訂閱:
文章 (Atom)