• Title/Summary/Keyword: Socket.IO

Search Result 21, Processing Time 0.032 seconds

Design and Implementation of Realtime Things Control System Using MQTT and WebSocket in IoT Environment (IoT환경에서 MQTT와 WebSocket을 활용한 실시간 사물제어 시스템 설계 및 구현)

  • Seo, Jun-Oh;Kim, Chul-Won
    • The Journal of the Korea institute of electronic communication sciences
    • /
    • v.13 no.3
    • /
    • pp.517-524
    • /
    • 2018
  • This Paper presents the real time things control method through Web browser that has no limited by time and place. To design and realize the system that not only makes it possible to communicate with other protocols but also reinforces the advantages of each protocol, the real time communication environment, based on the WebSocket technology of HTML5 whose international standardization has recently been completed, is realized. Also, the message communication environment in the low electricity and limited communication environment is realized using MQTT(Message Queue Telemetry Transport) protocol which is in the spotlight as the optimum protocol in the IoT environment. And by designing intuitive and simple hardware and realizing the responsive web interface which is not limited by the user's contact devices, the interactive system in which the user receives real time data from the hardware and reversely the user controls the things is designed and realized.

Large scale real-time drawing technology on web using socket.io and HTML5 canvas (socket.io와 HTML5 canvas를 활용한 대규모 실시간 웹 작화 기술)

  • Kang, Ju-Ho;Kim, Ji-Hong;Park, Ju-Hwan;Lee, Ho-Sang;Choi, Se-Jong
    • Proceedings of the Korea Information Processing Society Conference
    • /
    • 2017.11a
    • /
    • pp.368-370
    • /
    • 2017
  • 대규모 실시간 작화 기술은 그림판 기능이 중심인 새로운 SNS를 개발하는데 있어 필수적인 기술이다. 기존 Flash나 HTML의 canvas로 구현된 기술에는 빠르게 실시간으로 표현할 수 없는 한계점을 가지고 있다. 이를 해결하기 위해 본 논문에서는 socket.io와 fabricjs를 활용하여 빠르게 실시간으로 소통 가능한 대규모의 실시간 작화 기술을 구현하였으며, 기술에 대한 소개와 해당 기술을 프로젝트 빅 픽쳐에서 어떻게 적용했는지 기술 했다.

Design and Implementation of MEARN Stack-based Real-time Digital Signage System

  • Khue, Trinh Duy;Nguyen, Thanh Binh;Jang, UkJIn;Kim, Chanbin;Chung, Sun-Tae
    • Journal of Korea Multimedia Society
    • /
    • v.20 no.5
    • /
    • pp.808-826
    • /
    • 2017
  • Most of conventional DSS's(Digital Signage Systems) have been built based on LAMP framework. Recent researches have shown that MEAN or MERN stack framework is simpler, more flexible, faster and more suitable for web-based application than LAMP stack framework. In this paper, we propose a design and implementation of MEARN (ME(A+R)N) stack-based real-time digital signage system, MR-DSS, which supports handing real-time tasks like urgent/instant messaging, system status monitoring and so on, efficiently in addition to conventional digital signage CMS service tasks. MR-DSCMS, CMS of MR-DSS, is designed to provide most of its normal services by REST APIs and real-time services like urgent/instant messaging by Socket.IO base under MEARN stack environment. In addition to architecture description of components composing MR-DSS, design and implementation issues are clarified in more detail. Through experimental testing, it is shown that 1) MR-DSS works functionally well, 2) the networking load performance of MR-DSCMS's REST APIs is better compared to a well-known open source Xibo CMS, and 3) real-time messaging via Socket.IO works much faster than REST APIs.

Study on Web Services Middleware for Real-Time Monitoring in the IoT Environment

  • Shin, Seung-Hyeok
    • Journal of the Korea Society of Computer and Information
    • /
    • v.20 no.9
    • /
    • pp.97-104
    • /
    • 2015
  • Recently, the need for real-time systems which are providing various types of information that occur in large quantities in IoT environment is increasing. In this paper, we propose a middleware system which can monitor in real time on a web environment. The proposed system is designed to be integrated by using communication functions provided by a network operating system and external sensors. The proposed system is compared with an existing system and analysed by the server performance testing tool.

Design of IoT-based Energy Monitoring System for Residential Building (IoT 기반 주택형 건물 에너지 모니터링 시스템 설계)

  • Lee, Min-Goo;Jung, Kyung-Kwon
    • The Journal of the Korea institute of electronic communication sciences
    • /
    • v.16 no.6
    • /
    • pp.1223-1230
    • /
    • 2021
  • Recently, energy resource management is a major concern around the world. Energy management activities minimize environmental impacts of the energy production. This paper presents design and prototyping of a home electric energy monitoring system that provides residential consumers with real time information about their electricity use. The developed system is composed of an in-house sensing system and a server system. The in-home sensing system is a set of wireless smart plug which have an AC power socket, a relay to switch the socket ON/OFF, a CT sensor to sense current of load appliance and a Kmote. The Kmote is a wireless communication interface based on TinyOS. Each sensing node sends its detection signal to a home gateway via wireless link. The home gateway stores the received signals into a remote database. The server system is composed of a database server and a web server, which provides web-based monitoring system to residential consumers. We analyzed and presented energy consumption data from electrical appliances for 3 months in home. The experimental results show the promising possibilities to estimate the energy consumption patterns and the current status.

웹기반 3D 가시화 모듈 연구

  • Park, Ji-Su;O, Jae-Yong
    • Proceedings of the Korean Institute of Navigation and Port Research Conference
    • /
    • 2016.05a
    • /
    • pp.32-34
    • /
    • 2016
  • 웹기반 3D 가시화 모듈은 선박운항 시뮬레이터 시스템을 플랫폼 종류에 제약을 받지 않고 다양한 시스템의 요구사항을 효과적으로 반영하여 웹브라우저에서 3D 가시화 시뮬레이션을 지원하는 시스템이다. 본 연구에서는 시뮬레이션 데이터를 Socket.io 이용하여 실시간으로 업데이트를 하였으며 시각 및 기상상태, 해상 환경을 재현하였다. 또한 3D 가시화 인터페이스를 이용하여 대상 선박과 항만의 3차원 모델 데이터를 로드하고, 시뮬레이션 데이터와 연동하여 실시간으로 3차원 가시화 화면을 생성하는 연구를 진행하였다. 개발된 기술은 장비 선택에 제약이 없어 시간, 인력, 공간, 예산에 유연한 시스템 활용이 가능할 것으로 기대된다.

  • PDF

A Design and Implementation of Client-Server Structure For Web Application (웹 어플리케이션 클라이언트-서버 구조 설계 및 구현)

  • Park, Jin-yang;Noh, Youn-Hoan
    • Proceedings of the Korean Society of Computer Information Conference
    • /
    • 2017.07a
    • /
    • pp.39-40
    • /
    • 2017
  • 본 논문에서는 서버의 비동기 입출력(이하 I/O) 모델을 통해 더 많은 접속과 성능을 위한 패턴과 클라이언트 브라우저의 HTML 템플렛팅과 반응성 UI들의 메모리 관리 패턴을 제안한다. 본 연구는 다이어트 현황을 기록하는 저널(Journal) 서비스를 제공하는 웹 어플리케이션이다. 노드.js (Node.js)의 소켓.io (Socket.io)를 통한 비동기 push 패턴을 사용한 효율적인 I/O 성능, html5의 로컬 저장소 (Local Storage), tcp/ip 헤더의 쿠키 (Cookie), 상태를 저장하는 웹 토큰 (Json Web Token)을 통한 무상태 서버 구조로 구성되어 있다. 이로 인하여 서버 확장성 및 동시 처리, 빠른 질의 성능, 기본 네트워크 패킷 보안을 구축한다. 과한 CPU 처리를 요하는 일 중 템플릿팅은 클라이언트 브라우저에게 분담하도록 하고 효율적인 DOM 접근과 메모리 관리를 위한 싱글턴 패턴을 적극 활용하여 빠르고 즉각적인 반응성을 가진 웹 어플리케이션을 운용한다.

  • PDF

Visual Block Coding Tool for Artificial Intelligence IoT Physical Computing Practice (인공지능 IoT 피지컬 컴퓨팅 실습을 위한 비주얼 블록 코딩 도구)

  • Lee, Se-Hoon;Kim, Su-Min;Kim, Young-Ho
    • Proceedings of the Korean Society of Computer Information Conference
    • /
    • 2022.07a
    • /
    • pp.407-408
    • /
    • 2022
  • 본 논문에서는 AIoT를 위한 비주얼 블록 코딩 도구를 설계하였다. AI 블록 코딩이 가능한 EduB 플랫폼에 피지컬 컴퓨팅을 가능하게 하는 모듈을 추가함으로써 블록을 사용한 쉬운 피지컬컴퓨팅 코딩과 AIoT 코딩이 가능하다. 도구는 WebSocket과 Wifi를 사용해 EduB와 타겟보드인 RaspberryPi의 무선 통신을 하며, 블록으로 생성된 코드를 RaspberryPi 내부에서 실행하여 GPIO와 SenseHAT을 제어할 수 있게 하였다. 따라서, 코딩 결과를 콘솔 출력이나 그래프로만 확인할 수 있어 정적이던 AI 교육을 LED나 모터를 제어해 동적으로 결과를 확인할 수 있게 하여 흥미와 관심을 유발할 수 있도록 한다.

  • PDF

Implementation of a Classification System for Dog Behaviors using YOLI-based Object Detection and a Node.js Server (YOLO 기반 개체 검출과 Node.js 서버를 이용한 반려견 행동 분류 시스템 구현)

  • Jo, Yong-Hwa;Lee, Hyuek-Jae;Kim, Young-Hun
    • Journal of the Institute of Convergence Signal Processing
    • /
    • v.21 no.1
    • /
    • pp.29-37
    • /
    • 2020
  • This paper implements a method of extracting an object about a dog through real-time image analysis and classifying dog behaviors from the extracted images. The Darknet YOLO was used to detect dog objects, and the Teachable Machine provided by Google was used to classify behavior patterns from the extracted images. The trained Teachable Machine is saved in Google Drive and can be used by ml5.js implemented on a node.js server. By implementing an interactive web server using a socket.io module on the node.js server, the classified results are transmitted to the user's smart phone or PC in real time so that it can be checked anytime, anywhere.

Home Security System Based on IoT (IoT 기반 홈 보안 시스템)

  • Kim, Kang-Chul;Wang, Ding-Hua;Han, Seok-Bung
    • The Journal of the Korea institute of electronic communication sciences
    • /
    • v.12 no.1
    • /
    • pp.147-154
    • /
    • 2017
  • This paper aims to build a home security system based on IoT to monitor a home on a mobile phone. The system consists of data gathering sensors, camera, gateway and Xively platform. The Raspberry Pi collects data from the three sensors and sends the data to Xively, and sends the video stream of home to a client in a smart phone through a internet. The servers are composed of Xively, socket server in Raspberry Pi and E-mail server in Google. The proposed system transmits e-mail, text message, and video stream when there are motion, fire, and gas leakage, and can control the gas valve through Raspberry Pi. The experimental results show that a user gets 'emergency E-mail' and text message and watches the video stream of the home through WIFI or LTE on a smart phone.