發表文章

目前顯示的是 9月, 2014的文章

文章總列表

I bought my 1st Raspberry Pi

圖片
The "compiler" below is named  Raspberry Pi Model B+ , which is my new toy, the adult's LEGO. The story goes back to last weekend. As been a weekend electrical engineer, I wanted to buy a board of  Intel Galileo . However, for some reasons, I turn to Raspberry Pi The user base seems to be larger in Raspberry Pi, which is all over the world I can always find answers through google. With such large user-base, the SW upgrading is not a problem within 3~5 years. Although I really want to have a enhanced Pentium 133, I bought RPi eventually. Connect with my mobile power pack, and follow the  slide  to install the system. The hardware support is quite good. I didn't encounter any difficult to use my wireless keyboard/mouse, Wifi dongle. I soon connect RPi with my TV via HDMI and watch video in Youtube. RPi runs the Linux within. So I wrote "Hello World" in C naturally. I felt weird when I see it works! It's so marvelous that th...

假日藍芽工程師, 架設環境

圖片
因為運動的關係,我迷上用藍芽4.0低功率規格(BLE)。 我把小米手機刷了Android 4.4好支援這個規格,還買了藍芽心跳帶。我發現這個心跳帶剛開始都不準,想知道藍芽是怎麼回事。研究的平台選用最近買的玩具,Raspberry Pi (RPi),究竟這東西是有趣又好玩還是折磨自己,等等就知道了... ---- 環境架設 Linux的藍芽堆疊棧是bluez,這是Qualcomm贊助的一個計畫,還是官方的Linux Kernel driver。不過有趣的是,Google和Broadcom合作的Bluedroid從Android 4.2開始取代了bluez。假日工程師選擇成熟的方案,bluez。 Raspbian內建的bluez在2014/9/28依然很舊,所以 網路文章 建議到官網抓新版的 bluez 。我抓的是5.23板,雖然RPi能跑gcc讓我驚豔,不過拿它來編譯程式,那個速度終究是原形畢露了(笑)。不管怎樣,我還是把bluez裝好,而且愉快的把環境準備好,準備開始做實驗。 Command list of get bluez     mkdir blue     cd blue     wget https://www.kernel.org/pub/linux/bluetooth/bluez-5.23.tar.xz     xz -d bluez-5.23.tar.xz     tar xvf bluez-5.23.tar Command list of compile & install bluez     cd bluez-5.2.3     ./configure --disable-systemd     make     make install Install gatttool to the system     cp bluez-5.23/attrib/gatttool /usr/local/bin/ ---- 火力展示 ...

我買了第一片Raspberry Pi

圖片
下面這台"電腦"叫 Raspberry Pi Model B+ , 是我的新玩具, 大人的樂高積木 故事先回到這個週末, 身為假日電機工程師的我, 本來想買 Intel Galileo . 不過Raspberry Pi的使用者遍佈全世界, 有問題大多都找得到答案, 而且軟體更新大概3~5年內不是問題. 雖然我很想擁有Pentium 133加強版, 最後我還是買了Raspberry Pi. 接上行動電源, 照著 投影片 安裝 , 無線鍵盤一開機就通, 無線網路設定也很簡單, 沒多久我就接上電視看youtube了. 上頭跑得是Linux, 所以我很自然的寫了Hello World, 看他執行起來反而有種違和感, 該怎麼說呢, 這東西也可以編譯程式耶... 另一個面向是當8051用, 一般嵌入式開發環境都很困苦, CPU跑不快, 記憶體也不多. 平常是先寫個C or Assembly來點亮LED, 打通和世界溝通的環境. 這回用高速CPU (700Mhz), 很多記憶體 (512MB), 高階語言(Python), 然後只拿來控制GPIO, 只能說太過癮了 (笑) 對我來說, Raspberry Pi連接了兩個世界(電腦 & 嵌入式開發), 大砲打小鳥無疑很浪費, 不過拿來做各種有趣的事似乎變得簡單又有趣. 我開始可以理解為什麼這東西會在全世界盛行起來了.

Intel Galileo

圖片
今天颱風天, 不知道為什麼手很癢, 到了良興電子去採購 目標是是想買Intel Galileo這片板子 上頭的CPU是 Intel Quark SoC X1000 (16K Cache, 400Mhz) 為什麼突然想買呢? 這顆core很接近小時候的Pentium 133 (P54C) 那時候的P133使用600nm (0.6um)的製程, 賣得真是不便宜 (>5000) 最後因為預算, 就買了Cyrix的CPU回來裝, 想想是好久以前的事了... Intel Quark就是P54C的core, 搭配現在的32nm製程 600nm -> 32nm, 真是驚人的微縮幅度, 速度也上了400Mhz 我想買的原因, 大概是想一圓小時候買不起的P133吧 (笑) 不過最後結賬時, 我拿了Raspberry Pi, 這又是另外一個故事了 XD ---- It was typhoon day and I was forced to stay at home. I don't know why, but I just wanna buy something. So I went to 良興 electronics in Hsinchu NOVA. The target was a electronic board "Intel Galileo". It equipped Intel Quark SoC X1000 (16K cache @ 400 Mhz). Why did I want to buy the board? Because the CPU-core is similar to Pentium 133 (P54C) as I was junior high school student @ 1995. The processor was made with BiCMOS node at 0.6um (600nm). The price was too high (>5000NTD) for me to afford. I want to a new computer badly at the time. Eventually, I bou...