Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Communication method between mobile phone and Raspberry Pi based on cloud database

A communication method, Raspberry Pi technology, applied in the field of communication, can solve the problems of consuming server computing and storage resources, inconvenient software upgrades, poor stability, etc., to save computing and storage resources, realize real-time modification, and strong stability Effect

Active Publication Date: 2019-08-09
DALIAN UNIV
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The obvious disadvantages of this technical solution are: 1. Short transmission distance: Bluetooth is a wireless technology standard, which belongs to the local area network, and the transmission data has a range limit. When the distance between the Raspberry Pi and the mobile phone exceeds this range, data transmission become unstable or even unable to connect
2. Unable to achieve multi-user data sharing: the mobile app and Raspberry Pi communicate through point-to-point mode. Since the databases are all personal databases, multiple user data sharing cannot be achieved
3. Inconvenient software upgrade in the later stage: because the operating program is encapsulated in the product, product users cannot maintain and upgrade the product
The obvious disadvantages of this technical solution are: high cost, poor stability, consumption of computing and storage resources on the server side, etc.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Communication method between mobile phone and Raspberry Pi based on cloud database
  • Communication method between mobile phone and Raspberry Pi based on cloud database
  • Communication method between mobile phone and Raspberry Pi based on cloud database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments: taking this as an example to further describe and illustrate the present application.

[0057] This embodiment provides a communication method between a mobile phone and a Raspberry Pi based on a cloud database, which specifically includes the following steps:

[0058] Step 1. The python script program on the Raspberry Pi controls the hardware device by calling the GPIO port, and controls the high and low levels of the GPIO port through the Python program to realize the light on and off.

[0059] Step 2. The mobile phone and Raspberry Pi under the same wifi access each other through ajax, and call the program on the server side through php to realize the interaction, so as to realize the synchronization of data.

[0060] Step 2 is further detailed as follows:

[0061] 2.1 Configure the Raspberry Pi server and database

[0062] 2.2 Data ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a communication method between a mobile phone and a Raspberry Pi based on a cloud database. The method specifically comprises the following steps that 1, a Python script program on the Raspberry Pi controls the hardware equipment by calling a GPIO port, and the Python program controls the high level and the low level of the GPIO port to achieve on-off of a lamp; step 2, themobile phone and the raspberry pi access mutually through ajax under the same wifi, and a program is called at a server side through php to realize interaction, thereby realizing data synchronization; step 3, the cloud server accesses the Raspberry Pi control terminal and the mobile phone app through the ajax based on the http and websocket protocols; and step 4, a background program of the cloudserver to add, delete, modify and check the cloud database. The Raspberry Pi and the mobile phone serve as terminals, the important data and programs are uploaded to the server side, and the server side stores the data in the cloud server through the background program, so that the data sharing and the program real-time modification are achieved.

Description

technical field [0001] The invention relates to a communication method, in particular to a communication method between a mobile phone and a raspberry pie based on a cloud database. Background technique [0002] In the prior art, the mobile app and the Raspberry Pi can communicate through Bluetooth. The mobile app generates instructions to send data to the Raspberry Pi through Bluetooth, and the Raspberry Pi receives the data through Bluetooth; otherwise, the Raspberry Pi sends data to the mobile app, and the mobile app receives it through Bluetooth. The obvious disadvantages of this technical solution are: 1. Short transmission distance: Bluetooth is a wireless technology standard, which belongs to the local area network, and the transmission data has a range limit. When the distance between the Raspberry Pi and the mobile phone exceeds this range, data transmission It will be unstable or even unable to connect. 2. Unable to realize multi-user data sharing: The mobile app...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08H04L29/06H04M1/725G06F16/25G06F16/27H04M1/72409
CPCH04L67/141H04L67/1095H04L67/146H04L67/02H04L69/162G06F16/25G06F16/27H04M1/72409H04L67/133
Inventor 邹启杰黄超牛浩青许敏赵昌艳杨一帆
Owner DALIAN UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products