發表文章

目前顯示的是 1月, 2016的文章

MS SQL for Beaglebone black Debian

圖片
sudo apt - get -- assume - yes update sudo apt - get -- assume - yes install freetds - dev freetds - bin it would take some time on processing triggers for man-db ... sudo apt - get -- assume - yes install python - dev python - pip sudo pip install pymssql gcc take some times...be patient.... imported with no error when using MSSQL account I got error: Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "pymssql.pyx", line 641, in pymssql.connect (pymssql.c:10788) pymssql.OperationalError: (40615, "Cannot open server 'tiked' requested by the login. Client                                        with IP address '123.50.61.133' is not allowed to access the server.  To enable access, use                                        the Windows Azure Management Portal or run sp_set_firewall_rule on the master database to c        

Raspberry Pi start for my IOT uart and PyBBIO server(also on PC)

圖片
After several time of pushing, there is still no BBB... now need to get a Pi for testing my IOT set. Installed Dabian for Raspberry Pi, when frist run up it would bring up raspi- config    for configuration, I expand file system to full sd card, and changed password, then  need to change thekeyboard lay out.... we can also execute raspi-config to change anything should log in as : pi It comes with DHCP, so obtain IP automatic SCP server is also installed, winSCP can work it seems broadcom uart is shown as ttyAMA0 Python is version 2.7.3 start with a python uart testing: import serial import array ser=serial.Serial('/dev/ttyAMA0',115200,timeout=1) LedOn=[0xFF,0xFF,0x00,0x01,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x0D] Test=[0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x50,0x51,0x0D] ser.write(array.array('B',LedOn).tostring()) ser.write("test on pi uart ttyAMA0") ser.close() the program need to execute as r