2016年7月26日 星期二

Ref : http://www.raspberrypiblog.com/2012/10/how-to-setup-remote-desktop-from.html



  windows pc 用遠端桌面來遙控rpi...

 rpi 只需要安裝 sudo apt-get install xrdp



advanced ip scaner  

http://filehippo.com/zh/download_advanced_ip_scanner/?utm_source=ft&utm_medium=redirect&utm_campaign=ais

2016年6月23日 星期四

build openkincet in raspberry


sudo apt-get install git-core cmake freeglut3-dev pkg-config build-essential libxmu-dev libxi-dev libusb-1.0-0-dev
git clone git://github.com/OpenKinect/libfreenect.git
cd libfreenect
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig /usr/local/lib64/
sudo freenect-glview


core.c
#include "libfreenect.h"
FREENECTAPI int freenect_init(freenext_context **ctx, freenect_usb_context *usb_ctx);

#include "libfreenect.h"
FREENECTAPI int freenect_shutdown(freenect_context *ctx);

#include "libfreenect.h"
FREENECTAPI int freenect_process_events(freenect_context *ctx);

#include "libfreenect.h"
FREENECTAPI int freenect_num_devices(freenect_context *ctx);

#include "libfreenect.h"
FREENECTAPI int freenect_open_device(freenect_context *ctx,
                                     freenect_device **dev,
                                     int index);

#include "libfreenect.h"
FREENECTAPI int freenect_close_device(freenect_device *dev);

#include "libfreenect.h"
FREENECTAPI void freenect_set_user(freenect_device *dev, void *user);

#include "libfreenect.h"
FREENECTAPI void *freenect_get_user(freenect_device *dev);

#include "libfreenect.h"
FREENECTAPI void freenect_set_log_level(freenect_context *ctx, freenect_loglevel level);

#include "libfreenect.h"
FREENECTAPI void freenect_set_log_callback(freenect_context *ctx, freenect_log_cb cb);

fn_log()
tilt.c
freenect_get_tilt_state()
freenect_update_tilt_state()
freenect_set_tilt_degs()
freenect_set_led()
freenect_get_tilt_degs()
freenect_get_tilt_status()
freenect_get_mks_accel()
cameras.c
stream_process()
stream_init()
stream_freebufs()
stream_setbuf()
convert_packed_to_16bit()
convert_packed_to_8bit()
convert_packed11_to_16bit()
depth_process()
convert_uyuy_to_rgb()
convert_bayer_to_rgb()
video_process()
send_cmd()
write_register()
freenect_start_depth()
freenect_start_video()
freenect_stop_depth()
freenect_stop_video()
freenect_set_depth_callback()
freenect_set_video_callback()
freenect_get_video_mode_count()
freenect_get_video_mode()
freenect_get_current_video_mode()
freenect_find_video_mode()
freenect_set_video_mode()
freenect_get_depth_mode_count()
freenect_get_depth_mode()
freenect_get_current_depth_mode()
freenect_find_depth_mode()
freenect_set_depth_mode()
freenect_set_depth_buffer()
freenect_set_video_buffer()


Ref : https://openkinect.org/wiki/Getting_Started

Ref : https://github.com/OpenKinect/libfreenect

Ref : https://openkinect.org/wiki/Protocol_Documentation

ref : https://openkinect.org/wiki/Low_Level

Node-RED 三輪車, 就是要來玩物聯網應用的




Ref : http://gogoprivateryan.blogspot.tw/2016/06/node-red-ibm-watson-iot-platform-node.html

2016年4月16日 星期六

install visual studio code on raspberry



COMPILING VISUAL STUDIO CODE ON A RASPBERRY PI 3

From the VS Code GitHub, you need Node, npm, and Python. The Pi has Python but it has an old node, so needed a newer node that ran on ARM processors.
get http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
There are some NPM native modules like node-native-keymap that didn't work when I built the first time, so you'll need some supporting libraries first:
sudo apt-get install libx11-dev
Then, from my Raspberry Pi, I did this to build my own instance of VS Code.
git clone https://github.com/microsoft/vscode
cd vscode
./scripts/npm.sh install --arch=armhf
This took the Raspberry Pi 3 about 20 minutes so be patient.
Then, run your instance with ./scripts/code.sh from that same folder.


Ref http://www.hanselman.com/blog/BuildingVisualStudioCodeOnARaspberryPi3.aspx