2016年10月9日 星期日

Set up network

1. network setting

 (1) /etc/network/interfaces

=====

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

=====

(2) /etc/wpa_supplicant/wpa_supplicant.conf

=====

network={
        ssid="mySSID"
        psk="myPASSWD"
}

=====

(3) restart network interface

$ sudo ifdown wlan0
$ sudo ifup wlan0

=====

2. useful command

(1) ifconfig

(2) iwconfig

(3) sudo dhclient

(4) route -n

ex. route add default gw 192.168.1.1

(5) /etc/init.d/networking restart

(6) sudo ifdown/ifup wlan0





REFER

https://www.raspberrypi.com.tw/2152/setting-up-wifi-with-the-command-line/

http://raspberrypi.stackexchange.com/questions/14101/connect-network-is-unreachable-on-a-working-connected-wlan0-interface


http://www.cyberciti.biz/faq/linux-setup-default-gateway-with-route-command/

2016年10月8日 星期六

Screen "Out of Range"

I use VGA adapter for HDMI port, but I got no signal on screen.
After Google for a while, I found it is caused that my screen is too old, and can not accept the frame over size.

After dd raspberr pi image from computer to SD card,
change the following config in config.txt from system files.

hdmi_group=2
hdmi_mode=16
hdmi_drive=2

hdmi_force_hotplug=1
config_hdmi_boost=4


you could also refer the wiki to have different config on various monitor resolution: http://elinux.org/RPiconfig

REFER:
http://www.arthurtoday.com/2014/05/raspberry-pi-hdmi-to-vga-how-to.html


2015年11月4日 星期三

[學習] 使用多個 servo motors 的電源問題


最近我用Arduino 做一個貓咪的玩具

使用了四個伺服馬達(servo motors)

但每次想要拔掉usb

只用9v AA電池給電的狀況下都無法運轉

我就猜測

一定是電源不足的問題!!!!




剛好被我在網路上找到了解答

回去來試看看

網址:
http://rcarduino.blogspot.tw/2012/04/servo-problems-with-arduino-part-1.html




裡面最重要的一點是

如果外接電源

『一定要把地線和Arduino 的DCC相連接才行』

2015年10月30日 星期五

[學習] 快速瞭解SSID, BSSID, and ESSID


今天看了一篇介紹無線網路分享器的

一些專業術語  SSID, BSSID, ESSID

當然還有其他更詳細的介紹

就先在這裡記錄一下摟~


網址:
http://www.juniper.net/documentation/en_US/network-director1.5/topics/concept/wireless-ssid-bssid-essid.html

2015年10月26日 星期一

[java] 收送檔案


這幾天為了這幾行程式碼

嘗試了很久

也參考了朋友的程式碼

終於發現了一個結論

在傳輸檔案時.....



「一定要先傳送檔案大小!!!!」