CN105744491A - Communication management system and method between different android devices - Google Patents

Communication management system and method between different android devices Download PDF

Info

Publication number
CN105744491A
CN105744491A CN201610062260.0A CN201610062260A CN105744491A CN 105744491 A CN105744491 A CN 105744491A CN 201610062260 A CN201610062260 A CN 201610062260A CN 105744491 A CN105744491 A CN 105744491A
Authority
CN
China
Prior art keywords
equipment
management system
socket
module
wifidirect
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610062260.0A
Other languages
Chinese (zh)
Other versions
CN105744491B (en
Inventor
李蒙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HENAN JIEBU ELECTRONIC TECHNOLOGY Co Ltd
Original Assignee
HENAN JIEBU ELECTRONIC TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by HENAN JIEBU ELECTRONIC TECHNOLOGY Co Ltd filed Critical HENAN JIEBU ELECTRONIC TECHNOLOGY Co Ltd
Priority to CN201610062260.0A priority Critical patent/CN105744491B/en
Publication of CN105744491A publication Critical patent/CN105744491A/en
Application granted granted Critical
Publication of CN105744491B publication Critical patent/CN105744491B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The invention relates to a communication management system and method between different android devices. The communication management system is included. The communication management system comprises a WiFi Direct module, a Socket communication module, a file sharing module and an instant communication module; the Socket communication module comprises a server and a client side; the instant communication module comprises a sender and a receiver; and the output end of the sender obtains the content of an editing box. The method for communicating between a device A and a device B specifically comprises the following steps of: judging whether the WiFi Direct functions of the WiFi Direct modules of the device A and the device B are opened or not, entering the next step, opening the device finding function of the device A, applying for connecting the device, sending information whether the connection application is accepted or not to the device B, accepting the connection application of the device A by the device A, and establishing a group. The communication management system and method disclosed by the invention have the advantages of being layered in design, long in working distance, wide in application prospect, convenient to use and high in generalization performance.

Description

Communications management system between a kind of different Android device and method
Technical field
The invention belongs to electronic technology field, be specifically related to the communications management system between a kind of different Android device and method.
Background technology
Android4.0 introduces the support to WiFiDirect.WiFiDirect is a kind of communication protocol, and it is that the direct peer to peer connection between intelligent electronic device provides a kind of means, can be interconnected by the electronic equipment of oneself anywhere or anytime by WiFiDirect user;WiFi developer considers the popularity rate of tradition Wi-Fi equipment, when the WiFiDirect equipment of development of new specially backward compatible, since so, on the basis that ensure that safety, as long as there being a method, apparatus to support Wi-FiDirect, even if so the other side is traditional Wi-Fi equipment, it is also possible to well use expanded function by peer to peer connection, for instance for the point-to-point communication of moderate distance, high bandwidth;Compared with Bluetooth technology, WiFiDirect is fast and reliable more, and operating distance is farther, this is just greatly expanded the application direction of WiFiDirect, between the good friend told about in addition to the content above, the resource such as picture, video shares, outside the functions such as the social communication of nearby users, it is also possible to be applied to the car-mounted terminal in car networking, wireless remote control etc. aspect.Scape aspect before application, application developer can realize innovation and application in conjunction with powerful Android application and development storehouse, and this also brings immeasurable following opportunity for WiFiDirect development;Therefore research and develop a kind of Hierarchical Design, operating distance is remote, have a extensive future, communications management system between the different Android device that easy to use, generalization is strong and method have great importance.
Summary of the invention
The invention aims to overcome the deficiencies in the prior art, and provide that a kind of Hierarchical Design, operating distance are remote, have a extensive future, communications management system between the different Android device that easy to use, generalization is strong and method.
nullThe object of the present invention is achieved like this: the communications management system between a kind of different Android device,It includes communications management system,Described communications management system includes: WiFiDirect module、Socket communication module、File sharing module、Instant messaging module,Described Socket communication module includes server and client side,Described server can create two ServerSocket objects,Two described ServerSocket objects are respectively as follows: FileServerSocket、ChatServerSocket,The outfan of described FileServerSocket obtains corresponding iostream,Described client can create two Socket objects binding server IP and port,Two described Socket objects are respectively as follows: FileSocket、ChatSocket,Described instant messaging module includes sender、Recipient,The outfan of described sender obtains edit box content,For character is written to OutPutStream after described outfan acquisition edit box content,Described character is written to OutPutStream after will show information in ListView by Adapter,Described recipient is by reading InputStream and is encapsulated in Message object,Described recipient is by reading InputStream and is encapsulated in Message object and afterwards Message object is passed to Handler.
Described WiFiDirect module is arranged on the bottom of communications management system.
The described OutPutStream that is written to by character is read InputStream by data transmission and is encapsulated in Message object.
Described Socket communication module can create Socket socket.
Described Socket communication module can create two to TCP socket.
A kind of communication management method between different Android device, user, when the system of use, first can touch UI interface, and described UI interface includes device A for operating interface and equipment B for operating interface, utilize the method communicated between device A and equipment B, specifically comprise the following steps that
1): whether the WiFiDirect function of the WiFiDirect module of device A and equipment B all opens, without unlatching, carrying out network settings, become opening, if all opened, entering next step;
2): open the equipment discovery feature of device A, apply for connection equipment, send whether accept connection application to equipment B;
3): equipment B does not accept connection application, equipment connection failure;
4): the connection application of equipment B accepting device A, group is set up, in device A and equipment B, it is determined that one is team management person's equipment, and another is customer equipment.
Beneficial effects of the present invention: the WiFiDirect module of the present invention, complete the discovery of equipment and service, two mobile equipment are attached by WiFiDirect and create group, and wherein a side is as team management person, is responsible for controlling startup or the termination of the addition of other equipment and management group;The opposing party is customer equipment, forms WiFiDirect group with management equipment;Socket communication module, it is provided that basic communication function, creates Socket socket, and the realization for file-sharing below and instant messaging provides network communication interface;File sharing module, after group creates, can carry out sharing of the file resources such as picture, music, video between group member;Instant messaging module, it is allowed to user utilizes WiFiDirect to find neighbouring user, can carry out PUSH message or issue bulletin, it is achieved the function of Communication between user;Total present invention has Hierarchical Design, operating distance is remote, have a extensive future, the advantage that easy to use, generalization is strong.
Accompanying drawing explanation
Fig. 1 is the structural representation of the system of the present invention.
Fig. 2 is the structural representation of the Socket communication module of the system of the present invention.
Fig. 3 is the structural representation of the instant messaging module of the system of the present invention.
Fig. 4 is the structural representation of the method for the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, the present invention is described further.
Embodiment 1
nullAs Figure 1-4,A kind of communications management system between different Android device,It includes communications management system,Described communications management system includes: WiFiDirect module、Socket communication module、File sharing module、Instant messaging module,Described Socket communication module includes server and client side,Described server can create two ServerSocket objects,Two described ServerSocket objects are respectively as follows: FileServerSocket、ChatServerSocket,The outfan of described FileServerSocket obtains corresponding iostream,Described client can create two Socket objects binding server IP and port,Two described Socket objects are respectively as follows: FileSocket、ChatSocket,Described instant messaging module includes sender、Recipient,The outfan of described sender obtains edit box content,For character is written to OutPutStream after described outfan acquisition edit box content,Described character is written to OutPutStream after will show information in ListView by Adapter,Described recipient is by reading InputStream and is encapsulated in Message object,Described recipient is by reading InputStream and is encapsulated in Message object and afterwards Message object is passed to Handler.
Described UI interface includes device A for operating interface and equipment B for operating interface, utilizes the method communicated between device A and equipment B, specifically comprises the following steps that
1): whether the WiFiDirect function of the WiFiDirect module of device A and equipment B all opens, without unlatching, carrying out network settings, become opening, if all opened, entering next step;
2): open the equipment discovery feature of device A, apply for connection equipment, send whether accept connection application to equipment B;
3): equipment B does not accept connection application, equipment connection failure;
4): the connection application of equipment B accepting device A, group is set up, in device A and equipment B, it is determined that one is team management person's equipment, and another is customer equipment.
When the present invention is embodied as: the WiFiDirect module of the present invention, complete the discovery of equipment and service, two mobile equipment are attached by WiFiDirect and create group, and wherein a side is as team management person, is responsible for controlling startup or the termination of the addition of other equipment and management group;The opposing party is customer equipment, forms WiFiDirect group with management equipment;Socket communication module, it is provided that basic communication function, creates Socket socket, and the realization for file-sharing below and instant messaging provides network communication interface;File sharing module, after group creates, can carry out sharing of the file resources such as picture, music, video between group member;Instant messaging module, it is allowed to user utilizes WiFiDirect to find neighbouring user, can carry out PUSH message or issue bulletin, it is achieved the function of Communication between user;Total present invention has Hierarchical Design, operating distance is remote, have a extensive future, the advantage that easy to use, generalization is strong.
Embodiment 2
nullAs Figure 1-4,A kind of communications management system between different Android device,It includes communications management system,Described communications management system includes: WiFiDirect module、Socket communication module、File sharing module、Instant messaging module,Described Socket communication module includes server and client side,Described server can create two ServerSocket objects,Two described ServerSocket objects are respectively as follows: FileServerSocket、ChatServerSocket,The outfan of described FileServerSocket obtains corresponding iostream,Described client can create two Socket objects binding server IP and port,Two described Socket objects are respectively as follows: FileSocket、ChatSocket,Described instant messaging module includes sender、Recipient,The outfan of described sender obtains edit box content,For character is written to OutPutStream after described outfan acquisition edit box content,Described character is written to OutPutStream after will show information in ListView by Adapter,Described recipient is by reading InputStream and is encapsulated in Message object,Described recipient is by reading InputStream and is encapsulated in Message object and afterwards Message object is passed to Handler.
Described WiFiDirect module is arranged on the bottom of communications management system.
The described OutPutStream that is written to by character is read InputStream by data transmission and is encapsulated in Message object.
Described Socket communication module can create Socket socket.
Described Socket communication module can create two to TCP socket.
Described UI interface includes device A for operating interface and equipment B for operating interface, utilizes the method communicated between device A and equipment B, specifically comprises the following steps that
1): whether the WiFiDirect function of the WiFiDirect module of device A and equipment B all opens, without unlatching, carrying out network settings, become opening, if all opened, entering next step;
2): open the equipment discovery feature of device A, apply for connection equipment, send whether accept connection application to equipment B;
3): equipment B does not accept connection application, equipment connection failure;
4): the connection application of equipment B accepting device A, group is set up, in device A and equipment B, it is determined that one is team management person's equipment, and another is customer equipment.
When the present invention is embodied as: the WiFiDirect module of the present invention, complete the discovery of equipment and service, two mobile equipment are attached by WiFiDirect and create group, and wherein a side is as team management person, is responsible for controlling startup or the termination of the addition of other equipment and management group;The opposing party is customer equipment, forms WiFiDirect group with management equipment;Socket communication module, it is provided that basic communication function, creates Socket socket, and the realization for file-sharing below and instant messaging provides network communication interface;File sharing module, after group creates, can carry out sharing of the file resources such as picture, music, video between group member;Instant messaging module, it is allowed to user utilizes WiFiDirect to find neighbouring user, can carry out PUSH message or issue bulletin, it is achieved the function of Communication between user;The connection application of equipment B accepting device A, set up group, in device A and equipment B, determine that one for team management person's equipment, another is customer equipment, determine that one of them is after team management person's equipment, it is possible to carry out the interpolation of this team management equipment, deletion etc. are operated, say, that the communication connection of one-to-many can be realized;Total present invention has Hierarchical Design, operating distance is remote, have a extensive future, the advantage that easy to use, generalization is strong.

Claims (6)

  1. null1. the communications management system between different Android device,It includes communications management system,It is characterized in that: described communications management system includes: WiFiDirect module、Socket communication module、File sharing module、Instant messaging module,Described Socket communication module includes server and client side,Described server can create two ServerSocket objects,Two described ServerSocket objects are respectively as follows: FileServerSocket、ChatServerSocket,The outfan of described FileServerSocket obtains corresponding iostream,Described client can create two Socket objects binding server IP and port,Two described Socket objects are respectively as follows: FileSocket、ChatSocket,Described instant messaging module includes sender、Recipient,The outfan of described sender obtains edit box content,For character is written to OutPutStream after described outfan acquisition edit box content,Described character is written to OutPutStream after will show information in ListView by Adapter,Described recipient is by reading InputStream and is encapsulated in Message object,Described recipient is by reading InputStream and is encapsulated in Message object and afterwards Message object is passed to Handler.
  2. 2. the communications management system between a kind of different Android device as claimed in claim 1, it is characterised in that: described WiFiDirect module is arranged on the bottom of communications management system.
  3. 3. the communications management system between a kind of different Android device as claimed in claim 1, it is characterised in that: the described OutPutStream that is written to by character is read InputStream by data transmission and is encapsulated in Message object.
  4. 4. the communications management system between a kind of different Android device as claimed in claim 1, it is characterised in that: described Socket communication module can create Socket socket.
  5. 5. the communications management system between a kind of different Android device as claimed in claim 1, it is characterised in that: described Socket communication module can create two to TCP socket.
  6. 6. the communication management method between different Android device, user is when the system of use, first UI interface can be touched, it is characterized in that: described UI interface includes device A for operating interface and equipment B for operating interface, utilize the method communicated between device A and equipment B, specifically comprise the following steps that
    1): whether the WiFiDirect function of the WiFiDirect module of device A and equipment B all opens, without unlatching, carrying out network settings, become opening, if all opened, entering next step;
    2): open the equipment discovery feature of device A, apply for connection equipment, send whether accept connection application to equipment B;
    3): equipment B does not accept connection application, equipment connection failure;
    4): the connection application of equipment B accepting device A, group is set up, in device A and equipment B, it is determined that one is team management person's equipment, and another is customer equipment.
CN201610062260.0A 2016-01-29 2016-01-29 It is a kind of difference Android device between communications management system and method Expired - Fee Related CN105744491B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610062260.0A CN105744491B (en) 2016-01-29 2016-01-29 It is a kind of difference Android device between communications management system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610062260.0A CN105744491B (en) 2016-01-29 2016-01-29 It is a kind of difference Android device between communications management system and method

Publications (2)

Publication Number Publication Date
CN105744491A true CN105744491A (en) 2016-07-06
CN105744491B CN105744491B (en) 2019-03-08

Family

ID=56247001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610062260.0A Expired - Fee Related CN105744491B (en) 2016-01-29 2016-01-29 It is a kind of difference Android device between communications management system and method

Country Status (1)

Country Link
CN (1) CN105744491B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454766A (en) * 2016-09-27 2017-02-22 盐城工学院 Real-time cooperation data sharing system based on Android system and Wi-Fi Direct
WO2018107593A1 (en) * 2016-12-12 2018-06-21 华为技术有限公司 Method and device for sharing file between different terminals
CN110111790A (en) * 2019-05-09 2019-08-09 青岛海信电器股份有限公司 Processing method, device and the equipment of the external equipment access of smart machine
CN110177345A (en) * 2019-05-31 2019-08-27 东北大学 A kind of file transmission, chat system and method for no cellular network signals region

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713964A (en) * 2012-09-29 2014-04-09 联想(北京)有限公司 Data backup and recovery method and electronic equipment
WO2014055166A1 (en) * 2012-10-05 2014-04-10 Open Garden, Inc. Discovering and connecting wireless devices without discoverability
CN104394515A (en) * 2014-11-26 2015-03-04 王海 Android WI-FI (Wireless Fidelity) direct mode based long-life-cycle broadcast tree establishment method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713964A (en) * 2012-09-29 2014-04-09 联想(北京)有限公司 Data backup and recovery method and electronic equipment
WO2014055166A1 (en) * 2012-10-05 2014-04-10 Open Garden, Inc. Discovering and connecting wireless devices without discoverability
CN104394515A (en) * 2014-11-26 2015-03-04 王海 Android WI-FI (Wireless Fidelity) direct mode based long-life-cycle broadcast tree establishment method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454766A (en) * 2016-09-27 2017-02-22 盐城工学院 Real-time cooperation data sharing system based on Android system and Wi-Fi Direct
WO2018107593A1 (en) * 2016-12-12 2018-06-21 华为技术有限公司 Method and device for sharing file between different terminals
US10887745B2 (en) 2016-12-12 2021-01-05 Huawei Technologies Co., Ltd. Method and device for sharing file between different terminals
CN110111790A (en) * 2019-05-09 2019-08-09 青岛海信电器股份有限公司 Processing method, device and the equipment of the external equipment access of smart machine
CN110177345A (en) * 2019-05-31 2019-08-27 东北大学 A kind of file transmission, chat system and method for no cellular network signals region

Also Published As

Publication number Publication date
CN105744491B (en) 2019-03-08

Similar Documents

Publication Publication Date Title
EP3300311B1 (en) Method and smart watch for interacting with a wechat platform
CN110912789B (en) Intelligent household Internet of things communication method based on Alicloud IoT Hub platform
WO2017045276A1 (en) Terminal interconnecting method, device, and storage medium
WO2016145797A1 (en) Smart home control method, device and system
WO2015158114A1 (en) Intelligent communication method, terminal and system
CN105744491A (en) Communication management system and method between different android devices
US9119020B2 (en) Method and apparatus for discovering wireless devices
WO2014059813A1 (en) Data transmission method and terminal device
CN104821909A (en) Peer-to-peer data transmission method and system
WO2019080222A1 (en) Data transmission method and device for mobile terminal and mobile terminal
CN103023751B (en) Multimedia information intercommunicating system and intercommunicating method
CN102006192A (en) Control system and control method for digital family network equipment
CN104754514B (en) A kind of file push method and device, document receiving method and device
CN101442524A (en) Method for data communication with national electric network marketing system server
CN102065389B (en) Method for receiving and transmitting short messages by mobile terminal and software for implementing same
JP2013153438A (en) Method for establishing communication connection over internet between mobile terminals, computer program, and storage medium
CN109831404A (en) A kind of instant communicating system and method for compatible multiple terminals
CN102665193A (en) Mobile terminal, and method for address book remote sharing based on mobile terminal
CN204887029U (en) Novel configuration system of router is connected to WIFI chip
WO2023125242A1 (en) Data transmission method and related device
CN104158954A (en) Method and system for controlling mobile terminals
CN205193914U (en) Video access control system based on bluetooth
CN105681289A (en) SIP-based intelligent terminal cluster intercom system
CN202587117U (en) Mobile terminal
CN104902447A (en) Information transmission method and system and information interaction method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190308

Termination date: 20200129