본문 바로가기

IoT

(5)
Node-RED 에서 Esp32 커스텀 제작보드와 통신 스마트팜 제품을 개발중인데 하루종일 시간경과에 따른 제어나 데이터 수집 관련 테스트가 어렵다. 그래서 강제로 시간정보를 mqtt 를 이용하여 json 형태로 보내고 통신을 한다. Node-RED 에서 컨트롤러 보드에 특정시간을 보낸다.var myGlobalVar = global.get("device_id");msg.topic = 'balconyfarm/'+ myGlobalVar +'/virtual/time';var timestamp = global.get("date");var hour = global.get("hour");var min = global.get("min");var sec = 50// timestamp를 Date 객체로 변환var dateObj = new Date(timestamp);// D..
mongodb2 insertMany find.toarray Node-RED Mongodb config 속성 mongodb2 server 정보 function 노드 수정 Debug MongoDB 확인 참조 MongoError: docs parameter must be an array of documents (mongodb3) https://discourse.nodered.org/t/mongoerror-docs-parameter-must-be-an-array-of-documents-mongodb3/18191 토양센서 리스트 토양센서 리스트 Node-RED Node 내보내기 [{"id":"eca97310c7323217","type":"ui_table","z":"4037d292a5a4d2cb","group":"6c043ee02c40eb0a","name":"토양센서 리스..
중앙 제어 시스템 sMilkController 프로젝트 sMilkController 리액트네이브(하이브리드 네이티브) 개발 안드로이드 박스에 설치 환경 설정 TV monitor + android box android box adb 연결 앱 실행 원격으로 디바이스 제어 command 컨트롤 시스템 Make an app run automatically on boot https://stackoverflow.com/questions/60017126/how-to-auto-run-react-native-app-on-device-starup Apk 제작 devleopment ready adb connect 192.168.96.5 bundle file create react-native bundle --platform android --dev false --ent..
Thingsboard 데이터 업로드 From 아두이노 Arduino 아두이노 메가로 스마트팜 필드 보드를 구성합니다. 보드에서 데이터를 업로드 하는 방법은 하나씩 올리는 방법과 여러 데이터를 묶어서 올리는 방식이 있습니다. 하나씩 올리는 방법 tb.sendTelemetryFloat("ntc1", temperature[0]); tb.sendTelemetryFloat("ntc2", temperature[1]); tb.sendTelemetryFloat("ntc3", temperature[2]); tb.sendTelemetryFloat("ntc4", temperature[3]); tb.sendTelemetryFloat("ntc5", temperature[4]); tb.sendTelemetryFloat("ntc6", temperature[5]); 배열로 올리는 방법 8개를 묶어서..
Thingsboard 셋업 / 대쉬보드 설정 디바이스 추가 대쉬보드에 추가할 센서 데이터를 추가합니다. 교통시설물 데이터를 보드로부터 수신을 받습니다. Thingsboard 서버 설정 보드에서 Thingsboard 서버를 설정합니다. 유저 서버 설정에 맞게 디바이스토큰 과 서버주소를 변경합니다. 데이터 업로드 확인 완료되면 서버데이터가 정상적으로 업로드 되는것을 확인 할 수 있습니다.