five

database Analises

收藏
DataCite Commons2021-10-19 更新2024-07-28 收录
下载链接:
https://figshare.com/articles/dataset/KnobbyClubrush_Analises/16652260/4
下载链接
链接失效反馈
官方服务:
资源简介:
DATA RETRIEVED USING THE ABOVE BASH ON LINUX<br>#!/bin/bash# Data Slam Script v0.1# User define Function (UDF)LogLine(){ echo -E "`date +%s`,${line}" sqlite3 arduino.db3 "insert into arduino_data(time_stamp,wind,bending,growing) values (`date +%s`,${line})"}### Main script stars here #### Store file nameFILE=""<br># Make sure we get file name as command line argument# Else read it from standard input devicestty -F /dev/ttyUSB0 cs8 9600 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtsctsif [ "$1" == "" ]; then FILE="/dev/ttyACM0"else FILE="$1" # make sure file (serial device) exist and is readable if [ ! -f $FILE ]; then echo "$FILE : does not exists" exit 1 elif [ ! -r $FILE ]; then echo "$FILE: can not read" exit 2 fifi# Create Database if it does not exist<br>if [ ! -f "arduino.db3" ]; then echo "Creating database" sqlite3 arduino.db3 "CREATE TABLE arduino_data (time_stamp integer, wind integer ,bending integer, growing integer);"fiexec 3exec 0while truedo<br> # use $line variable to process line in processLine() function while read -r line do LogLine $line done sleep 1 # This delay can be changed to match the delay of the Arduinodoneexec 0exit 0
提供机构:
figshare
创建时间:
2021-10-19
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作