Samsung ARTIK 530 use Arduino IDE
来源:互联网 发布:东京增大茶淘宝有吗 编辑:程序博客网 时间:2024/05/17 10:38
- Summary
- Enable Client-side Transfer
- Arduino IDE usage
- Issue on Connecting Arduino IDE to ARTIK over USB
- Reference
Summary
Tested the IDE Arduino, Network ports to load sketches to the ARTIK boardis is working properly, the Serial port has some issue.
Enable Client-side Transfer
Enable the client side transfer on ARTIK 530 use curl command.
curl downloads.arduino.cc/libArduino/install_artik_prereq.sh | sh
[root@artik ~]# curl downloads.arduino.cc/libArduino/install_artik_prereq.sh | sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 7725 100 7725 0 0 8587 0 --:--:-- --:--:-- --:--:-- 8592################################# ## Arduino for Artik Installer ## #################################The software you are going to install is alpha state.By installing it you are accepting not to disclose any part of this software before it is officialy published by Arduino LLCConfiguring servicesHardware : s5p4418mkdir: cannot create directory ‘/root/autostart’: File exists--2017-06-16 00:53:08-- http://downloads.arduino.cc/libArduino/adbdResolving downloads.arduino.cc (downloads.arduino.cc)... 158.69.86.55Connecting to downloads.arduino.cc (downloads.arduino.cc)|158.69.86.55|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 157640 (154K) [application/octet-stream]Saving to: ‘adbd.4’adbd.4 100%[==========================>] 153.95K 147KB/s in 1.1s 2017-06-16 00:53:10 (147 KB/s) - ‘adbd.4’ saved [157640/157640]# Generated by iptables-save v1.4.21 on Fri Jun 16 00:53:10 2017*nat:PREROUTING ACCEPT [2027:200104]:INPUT ACCEPT [422:50229]:OUTPUT ACCEPT [26:2539]:POSTROUTING ACCEPT [26:2539]COMMIT# Completed on Fri Jun 16 00:53:10 2017# Generated by iptables-save v1.4.21 on Fri Jun 16 00:53:10 2017*security:INPUT ACCEPT [1779:349014]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [494:50338]COMMIT# Completed on Fri Jun 16 00:53:10 2017# Generated by iptables-save v1.4.21 on Fri Jun 16 00:53:10 2017*raw:PREROUTING ACCEPT [3389:499149]:OUTPUT ACCEPT [496:50730]COMMIT# Completed on Fri Jun 16 00:53:10 2017# Generated by iptables-save v1.4.21 on Fri Jun 16 00:53:10 2017*mangle:PREROUTING ACCEPT [3389:499149]:INPUT ACCEPT [1779:349014]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [498:51142]:POSTROUTING ACCEPT [537:58443]:connman-INPUT - [0:0]:connman-POSTROUTING - [0:0]-A INPUT -j connman-INPUT-A POSTROUTING -j connman-POSTROUTING-A connman-INPUT -j CONNMARK --restore-mark --nfmask 0xffffffff --ctmask 0xffffffff-A connman-POSTROUTING -j CONNMARK --save-mark --nfmask 0xffffffff --ctmask 0xffffffffCOMMIT# Completed on Fri Jun 16 00:53:10 2017# Generated by iptables-save v1.4.21 on Fri Jun 16 00:53:10 2017*filter:INPUT ACCEPT [0:0]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [10:1980]-A INPUT -i wlan0 -p tcp -m tcp --dport 6571 -m state --state NEW,ESTABLISHED -j ACCEPT-A INPUT -i eth0 -p tcp -m tcp --dport 6571 -m state --state NEW,ESTABLISHED -j ACCEPT-A INPUT -i wlan0 -p tcp -m tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT-A INPUT -i eth0 -p tcp -m tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPTCOMMIT# Completed on Fri Jun 16 00:53:10 2017mkdir: cannot create directory ‘/lib/firmware/’: File existsDone! You can now find your board in IDE, "Network ports" menuIf no board is listed, please follow the online guide on adding additional boardsAdd the following link and install "ARM Linux Boards" from board managerhttp://downloads.arduino.cc/libArduino/package_arduino.cc_linux_index.jsonPlease use IDE version 1.6.6[root@artik ~]#
Arduino IDE usage
Copy and paste this URL into ‘Additional Boards Manager URLs’.
http://downloads.arduino.cc/packages/package_arduino.cc_linux_index.json
Install the latest “ARM Linux Boards” package.
Successful connect the network port as below,
Compile below code test on serial debugging, to show Arduino uses the serial USB debug terminal interface for error output.
#define SERIAL_ARTIK Serial1int pin = 38;void setup() { // put your setup code here, to run once: // initialize digital pin 13 as an output. pinMode(pin, OUTPUT); SERIAL_ARTIK.begin(115200);}void loop() { // put your main code here, to run repeatedly: SERIAL_ARTIK.println("Turn on LED"); digitalWrite(pin, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second SERIAL_ARTIK.println("Turn off LED"); digitalWrite(pin, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second}
Two ways to execute the code, 1st one to use the ‘Upload’ button to upload to ARTIK 530 directly and execute.
1nd way is to use ‘Export compiled Binary’ button, and copy the xxx.elf to ARTIK 530 to execute.
[root@artik ~]# chmod 755 sketch_jun15a.ino.artik530.elf [root@artik ~]# [root@artik ~]# ./sketch_jun15a.ino.artik530.elf
The result shows at the serial port print ‘Turn on LED’ and ‘Turn off LED’ continuously.
[root@artik ~]# Turn on LEDTurn off LEDTurn on LEDTurn off LEDTurn on LEDTurn off LEDTurn on LEDTurn off LEDTurn on LEDTurn off LEDTurn on LEDTurn off LEDTurn on LED...
Issue on Connecting Arduino IDE to ARTIK over USB
Alternatively Arduino can use USB to uploading sketches to the ARTIK board, for ARTIK 530 case, needs to use USB OTG. I have below issues.
First the watcher cannot be executed successful, as below,
[root@artik ~]# /root/watcher &[root@artik ~]# mkdir: cannot create directory ˉfunctions/acm.GS0ˇ: No such file or directoryln: failed to create symbolic link 'configs/c.1/acm.GS0': No such file or directoryc0040000.dwc2otg--> Press Ctrl+C to force start, Ctrl+\ to exit...............................
Secondly, follow below procedure still cannot use USB to uploading sketches.
I installed the driver through the location as below,
C:\Users\HuiLin_Xiong\AppData\Local\Arduino15\packages\arduino\tools\linuxuploader\1.3\drivers
I can change the driver between, “Samsung Artik ADB Interface” and “Samsung Artik Composite ADB interface”, but cannot find ‘USB Composite Device’, at the end, the
entry cannot appear under “Port/Serial Ports” called “Samsung
Artik 5”
Samsung Artick ADB Interface shows after execute ‘watcher’.
Change the driver,
Pick from a list of device drivers on my computer.
Change between, “Samsung Artik ADB Interface” and “Samsung Artik Composite ADB interface”
Driver installed successful
Samsung Artik Composite ADB Interface shows.
Reference
developer.artik.io–Arduino IDE
Download SamsungArtiklibArduinoInstructions-7-25.pdf
Arduino Web site to download and install the IDE package
- Samsung ARTIK 530 use Arduino IDE
- ARTIK 530 use Eclipse IDE for Windows
- Samsung ARTIK 530 Image Update
- Samsung ARTIK 530 connect ARTIK Cloud by using Node-RED
- Samsung ARTIK 530 GPIO PIN programming
- Samsung ARTIK 530 test on Node-RED
- Samsung ARTIK 530 cloud connectivity test
- Samsung ARTIK 530 Wi-Fi Access Point (AP) and Wi-Fi Direct (P2P)
- Samsung ARTIK Wi-Fi Client Configuration
- 安装Arduino IDE
- Arduino IDE 配置文件
- Arduino IDE for ESP8266
- Debian安装Arduino IDE
- 1.4 Arduino IDE
- Arduino IDE介绍 下载----记录学习Arduino
- ROS-kinetic 与Arduino-Arduino IDE 安装
- ubuntu下使用arduino IDE
- Arduino IDE in Ubuntu 12.04
- 打造一个高逼格的android开源项目——小白攻略
- (6/15)JavaScript复习
- 随手笔记
- css 框模型
- No model named deepy
- Samsung ARTIK 530 use Arduino IDE
- Android的Camera架构介绍
- 移动端常见问题
- 数据链路层
- js 中的活动对象
- 内核隐藏进程(源码)
- jsp中java代码、jsp代码、js代码执行的顺序
- CSS中的绝对定位与相对定位
- js的AMD规范