Coder Social home page Coder Social logo

python-bytearray-read-and-socketio-on-web-server's Introduction

python bytearray serial reading example and integration with flask socketio on web server

*There are 2 programs.

*The task of the Arduino side is to generate random data, place them in a certain array(gonData) and send this data over the serial.

*The task of the Python side is to read the random data and transfer it to an empty array. Elements placed in this array are printed on the web server with using socketio.

*You must install the relevant libraries to run the programs

Process of the program

[English]

This program has been written with using threading, socketio, serial reading, flask pyhton libraries.

The flow of the program is hierarchically given below.

1)Defining libraries

2)Starting async mode

3)setuping web server

4)Installing socket on the web server

5)starting threading

6)Reading data from serial port and converting to list and transfering into empty array

7)Decoding and transferring data which is transferred into array.

8)Sending the data to web server

9)showing data on web interface(I used html-css-js)

Programın akışı

[Türkçe]

Bu program python programlama dilinin threading, socketio, serial port okuma,flask, kütüphanelerinin kullanımını öğretmek amacıyla yazılmıştır.

Programın çalışması hiyerarşik olarak aşağıda verilmiştir.

1)Kütüphanelerin tanıtılması

2)Asyn modun açılması- serial read, web server, socketionun eş zamanlı çalışmasını sağlar.

3)Web server kurulumu

4)Socketionun web server üzerine kurulması

5)Threadingin açılması(paralel işlem yapma)

6)Seri porttan gelen verilerin okunması daha sonra liste dönüştürülüp arraye aktarılması

7)Arraye aktarılmış byte yapısındaki verilerin çözümlenmesi(decode edilmesi) ve değişkenlere aktarılması

8)Değişkenlere aktarılan verilerin socketio ile web server üzerine gönderilmesi

9)Web serverin gelen verileri arayüzde görünür hale getirilmesi

program screenshot

python-bytearray-read-and-socketio-on-web-server's People

Contributors

ertugrulkusva avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.