Sunday 17 June 2018

Linkit Getting Started


Step 1: Wiring
I am using a cp2102 ttl to usb converter. And this is the connection from the official website.


Very interestingly, there is no power line listed. So I tried connecting 3.3V from the cp2102 to the 3.3V on Linkit. But the system just keeps booting again and again for some reason.

This is what I did:
    -  keep the above three connections but no power;
    -  use a usb cable to supply power. Connect it to "pwr" port (not "host").

Step 2:
screen /dev/ttyUSB0 57600

Step 3: Blink
python /IoT/examples/blink-gpio44.py

ref:
http://wiki.seeedstudio.com/LinkIt_Smart_7688/

Thursday 14 June 2018

Nutstore problem: SSL failed to connect

备份并移除老的cacerts
sudo mv /etc/ssl/certs/java/cacerts{,.backup}


生成新的cacerts
sudo keytool -importkeystore -destkeystore /etc/ssl/certs/java/cacerts -deststoretype jks -deststorepass changeit -srckeystore /etc/ssl/certs/java/cacerts.backup -srcstoretype pkcs12 -srcstorepass changeit


询问官方后官方提供的临时解决方案

ref:
http://tieba.baidu.com/p/5680448441
I got the following error when installing matplotlib:

sudo python -mpip install -U matplotlib

Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-t_g0M1/subprocess32/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-YcuLqR/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-t_g0M1/subprocess32/

I fixed it by installing python-dev:
sudo apt-get install python-dev

ref:
https://github.com/google/python-subprocess32/issues/38