顯示具有 嵌入式系統 標籤的文章。 顯示所有文章
顯示具有 嵌入式系統 標籤的文章。 顯示所有文章

2025年5月28日 星期三

LEAF Bering-uClibc 7.4.0 安裝 accelppp

編輯 /etc/modules 載入相關模組,reboot
# Modules needed for PPP connection                                     
slhc                                                                   
ppp_generic                                                             
ppp_async                                                               
# The three following modules are not always needed                     
zlib_inflate                                                           
zlib_deflate                                                           
ppp_deflate                                                                                                                                   

# Modules needed for PPP/PPPOE connection
slhc                                                   
pppoe                                                                                                         

# Modules needed for PPTP connection                   
pptp                                                                            

# Modules needed for L2TP connection                                   
slhc                                                                   
pppol2tp                                                               
ppp_mppe                                                                                                                                       

# Modules needed for PPPOA connection                                 
# An ATM adapter module must be loaded for this to work                 
# (e.g. unicorn_pci_atm or unicorn_usb_atm)                             
slhc                                                                   
ppp_generic                                                             
pppoatm                                          

安裝 accelppp  accelppp  pppscrpt  libpcre  libsnmp 

編輯 /etc/accel-ppp.conf
chap-secrets
[chap-secrets]
chap-secrets=/etc/ppp/chap-secrets 

編輯 /etc/ppp/chap-secrets 
帳號密碼設定檔 共四欄
# 第一欄為連線帳號,
# 第二欄要設定成/etc/accel-ppp.conf 中的name
# 第三欄為密碼
# 第四欄為連線IP

設定 shorewall
編輯 /etc/shorewall/rules加入
ACCEPT  net     fw      tcp     1723
ACCEPT  net     fw      udp     1701
Ping(ACCEPT)  vpn         fw

編輯 /etc/shorewall/zones  加入
vpn     ipv4

編輯 /etc/shorewall/interfaces 加入
vpn             ppp+

編輯 /etc/shorewall/policy 加入
vpn     loc    ACCEPT

編輯/etc/shorewall/masq
eth0               192.168.2.0/24

參考文件
https://docs.accel-ppp.org/configuration/configuration.html

相關 module
nf_nat_pptp

2018年6月12日 星期二

NTI ENVIROMUX-SEMS-16 Object Identifiers (OIDs)

External Sensor / Device Values
Port 1: Device 1: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.1
 Device 2: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.2
Port 2: Device 1: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.3
 Device 2: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.4
Port 3: Device 1: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.5
 Device 2: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.6
Port 4: Device 1: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.7
 Device 2: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.8
Port 5: Device 1: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.9
 Device 2: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.10
Port 6: Device 1: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.11
 Device 2: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.12
Port 7: Device 1: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.13
 Device 2: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.14
Port 8: Device 1: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.15
 Device 2: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.16
Port 9: Device 1: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.17
 Device 2: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.18
Port 10:Device 1: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.19
 Device 2: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.20
Port 11:Device 1: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.21
 Device 2: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.22
Port 12:Device 1: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.23
 Device 2: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.24
Port 13:Device 1: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.25
 Device 2: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.26
Port 14:Device 1: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.27
 Device 2: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.28
Port 15:Device 1: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.29
 Device 2: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.30
Port 16:Device 1: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.31
 Device 2: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.32

Internal Sensor Values:
Temperature: .1.3.6.1.4.1.3699.1.1.2.1.4.1.1.6.1
Humidity: .1.3.6.1.4.1.3699.1.1.2.1.4.1.1.6.2
Battery: .1.3.6.1.4.1.3699.1.1.2.1.4.1.1.6.3

Digital Input Value:
Note: closed=0 open=1
Digital Input #1: .1.3.6.1.4.1.3699.1.1.2.1.6.1.1.5.1
Digital Input #2: .1.3.6.1.4.1.3699.1.1.2.1.6.1.1.5.2
Digital Input #3: .1.3.6.1.4.1.3699.1.1.2.1.6.1.1.5.3
Digital Input #4: .1.3.6.1.4.1.3699.1.1.2.1.6.1.1.5.4
Digital Input #5: .1.3.6.1.4.1.3699.1.1.2.1.6.1.1.5.5
Digital Input #6: .1.3.6.1.4.1.3699.1.1.2.1.6.1.1.5.6
Digital Input #7: .1.3.6.1.4.1.3699.1.1.2.1.6.1.1.5.7
Digital Input #8: .1.3.6.1.4.1.3699.1.1.2.1.6.1.1.5.8

Relay Output Value:
Note: Status syntax: closed=0 open=1
Relay Output #1: .1.3.6.1.4.1.3699.1.1.2.1.7.1.1.5.1
Relay Output #2: .1.3.6.1.4.1.3699.1.1.2.1.7.1.1.5.2
Relay Output #3: .1.3.6.1.4.1.3699.1.1.2.1.7.1.1.5.3
Relay Output #4: .1.3.6.1.4.1.3699.1.1.2.1.7.1.1.5.4

IP Device Status:
Note: Status syntax: closed=0 open=1
IP Device #1: .1.3.6.1.4.1.3699.1.1.2.1.8.1.1.8.1
IP Device #2: .1.3.6.1.4.1.3699.1.1.2.1.8.1.1.8.2
IP Device #3: .1.3.6.1.4.1.3699.1.1.2.1.8.1.1.8.3
IP Device #4: .1.3.6.1.4.1.3699.1.1.2.1.8.1.1.8.4
IP Device #5: .1.3.6.1.4.1.3699.1.1.2.1.8.1.1.8.5
IP Device #6: .1.3.6.1.4.1.3699.1.1.2.1.8.1.1.8.6
IP Device #7: .1.3.6.1.4.1.3699.1.1.2.1.8.1.1.8.7
IP Device #8: .1.3.6.1.4.1.3699.1.1.2.1.8.1.1.8.8

參考資料
http://www.networktechinc.com/enviro-sems-oid.html

2018年4月26日 星期四

Dlink dns323 fun_plug 設定 OpenSSH Secure Shell Server

1.安裝 fun_plug

2.sh /ffp/start/sshd.sh start

chsh -s /ffp/bin/bash root
chsh -s /ffp/bin/bash admin

store-passwd.sh

chmod a+wx /mnt/HD_a2/ffp/start/sshd.sh
chmod a+w /mnt/HD_a2/ffp/start/telnetd.sh
chmod -x /mnt/HD_a2/ffp/start/telnetd.sh

2017年9月20日 星期三

簡易 uClibc 開發環境

1.下載 https://www.uclibc.org/downloads/binaries/0.9.30.1/system-image-x86_64.tar.bz2

2.解開 system-image-x86_64.tar.bz2

3.mount -o loop image-x86_64.ext2 /mnt2

4.mount --bind src /mnt2/src

5.chroot /mnt2 /bin/sh

2017年8月23日 星期三

INEO I-NA312N1 NAS 開啟 telnet 服務

INEO  I-NA312N1
http://<ip address>/cgi/telnet/telnet.cgi

2016年7月2日 星期六

2015年11月6日 星期五

AKiTiO 迷你私有雲安裝 rsync, wget

取得 root 權限後,下載相關 rpm
http://ftp.linux.org.uk/pub/linux/arm/fedora/pub/fedora/linux/releases/12/Everything/arm/os/Packages/

相關下載
http://silverstone-usa.com/download/DC01_source_code/NAS_AP_Team_NAND_SDK_20110801.tar.bz2

2015年11月3日 星期二

AKiTiO 迷你私有雲 MyCloud Mini 取得 root 權限

1.安裝 2.5" 硬碟,登入 web 管理界面,依指示格式化後,掛載至 /home

2.登入 web 管理界面,新增一帳號 admin2

3.admin telnet 進入系統,執行以下指令 cp $(which vi) /home/admin/vi2

4.關機,移除 2.5" 硬碟

5.將上述 2.5" 硬碟移至另一台 Linux 系統安裝

6.找到上述所複製程式 vi2,執行以下指令
  chown root.root vi2;chmod a+s vi2

7.將上述 2.5" 硬碟接回 MyCloud Mini 開機,確認硬碟有掛載成功。

8. telnet 進入系統,使用 /home/admin/vi2 修改 /etc/passwd,內容如下
  admin2:x:0:0::/home/admin2:/bin/bash

9.使用 admin2 登入,即可取得 root 權限

2015年10月30日 星期五

Cubietruck led 控制 for linux

修改 /sys/class/leds/ 下檔案值即可變更狀態

brightness  開關 0-255
trigger        驅動方式 (none 取消)

修改預設開機設定
修改 script.bin 內容 [leds_para]設定
#mount /dev/第一分割區  /mnt
cd /mnt; bin2fex script.bin script.fex;
編輯 [leds_para]
fex2bin script.fex script.bin ; cd /;umount /mnt; reboot

預設燈號
green LED is indicating if there is any read write with the SD Card   [mmc0]
blue LED is heartbeating     [heartbeat]
orange LED is CPU0 load  [cpu0]
white LED is CPU1 load     [cpu1]

相關資源
https://defendtheplanet.net/tag/led/
http://linux-sunxi.org/Cubieboard/Programming/StatusLEDs

2015年10月27日 星期二

Cubietruck Nand Android 及 SD Linux 共存

1.安裝 Linux 至 SD,使用 root 登入系統

2.修改 script.bin
#mount /dev/第一分割區  /mnt
cd /mnt; bin2fex script.bin script.fex;

編輯 script.fex 修改
'nand_used=1' ==> 'nand_used=0'

fex2bin script.fex script.bin ; cd /;umount /mnt; reboot

3.重刷 nand Android

Cubietruck 重刷 nand Android

1.安裝 PhoneixSuit 軟體及 usb device (VID_1f3a_PID_efe8)

2.開啟 PhoneixSuit 軟體,選擇固件

3.按 fel 接上 mini USB,強制刷機

2015年4月14日 星期二

QNAP TS-879U 安裝 dropbear

原 ssh server 無法提供 admin 以外帳號登入,可安裝 dropbear 提供相關服務
另一種解法是在 /opt /opt/etc/init.d/ 目錄下 使用另一個 openssh 設定檔

1.安裝 ipkg dropbear 套件

2.修改 dropbear 設定檔
/opt/etc/default/dropbear

3.修改欲登入帳號設定
/etc/passwd

2014年7月9日 星期三

Android 手機資訊

IMI碼:*#06#
工程模式:*#*#4636#*#*

2014年7月1日 星期二

NetTV 2 筆記

reset動作:將所有線材拔除,重接上電源線,待燈號停止閃爍,恆亮綠燈後,
再重新壓下reset,約5秒(綠燈閃爍)後即可放開,接著燈號熄滅,稍後燈號會在
重新亮起,即完成。

預設 IP:192.168.1.100
密碼:admin

2014年6月19日 星期四

Digizon 211B 使用筆記

reset 10 秒
預設網路:192.168.1.2/24
預設密碼:空白

相關資源
http://ip-of-the-digizon:8000
rtsp://ip-of-the-digizon:40001/kcs
rtsp://ip-of-the-digizon:7070/hmc3
rtsp://ip-of-the-digizon:8001/hmc3

2014年6月18日 星期三

MsnSwitch 使用筆記

設定網址: http://msnswitch
預設帳號/密碼:admin / blank
預設網路:dhcp / 192.168.0.254/24 (無dhcp server 3 分後)

AnyX IP TV 使用筆記

預設帳號密碼
admin/admin

預設網路設定
dhcp

強迫關機
按住不放電源開關3秒鐘以上

主機藍色顯示燈(傳輸)不閃爍
無資料傳輸時藍色顯示燈不會閃爍。

設定網頁
http://固定IP/index.asp

行動裝置
http://固定IP/m/index.asp

防火牆相關設定
TCP 80 (http)
TCP 554 (rtsp)

Android系統
安裝 MX Player

2011年7月6日 星期三

FON TTL 位置

FON TTL 位置 ,位於 hnnix 晶片左邊腳座,圖示如下

|  GND
|  |   - --------------------
|  TX  |  hnnix 630 A    c |
|  RX  | HY57V281620ETP-H |
|  |   -----------------------

Packard Bell NetStore 3500摘要

預設連接方式
http://169.254.01 (與設備對接) 或 dhcp 取得 ip 或 http://STORAGE-0E56
帳號 /密碼 admin / admin

CON2 TTL 連接資訊
1 – 3.3V
2 – TX
3 – RX
4 – GND
連接埠設定:115200-8N1

參考資訊
http://www.station-drivers.com/page/landisk.htm
http://www.aroundmyroom.com/landisk/nas-basic48/

2010年5月11日 星期二

Hello World.Simple

第一個 Android Simple 程式-Hello World

編輯 C:\simple\HelloWorld\simpleproject\simpleproject 內容如下
main=com.mydomain.HelloWorld.HelloWorld
name=HelloWorld
assets=../assets
source=../src
build=../build

編輯 C:\simple\HelloWorld\src\com\mydomain\HelloWorld\HelloWorld.simple 內容如下
Event HelloWorld.Initialize()

End Event

$Properties
$Source $Form
$Define HelloWorld $As Form
Layout = 1
Layout.Orientation = 1
Title = "HelloWorld"
$Define StatusPanel $As Panel
Layout = 1
Layout.Orientation = 0
BackgroundColor = &HFF444444
Width = -2
$Define ScoreLabel $As Label
BackgroundColor = &HFF444444
FontSize = 16.0
FontTypeface = 3
Text = "HelloWorld"
TextColor = &HFFFFFFFF
$End $Define
$End $Define
$End $Define
$End $Properties

執行以下指令
C:\simple>simplec HelloWorld/simpleproject/project.properties
C:\simple>C:\android-sdk-windows\tools\adb install -r HelloWorld/build/deploy/HelloWorld.apk

執行結果