CN107454564A - The method for interchanging data and data exchange system of a kind of flash memory device - Google Patents

The method for interchanging data and data exchange system of a kind of flash memory device Download PDF

Info

Publication number
CN107454564A
CN107454564A CN201710822127.5A CN201710822127A CN107454564A CN 107454564 A CN107454564 A CN 107454564A CN 201710822127 A CN201710822127 A CN 201710822127A CN 107454564 A CN107454564 A CN 107454564A
Authority
CN
China
Prior art keywords
intelligent terminal
memory device
flash memory
bluetooth
password
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.)
Pending
Application number
CN201710822127.5A
Other languages
Chinese (zh)
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.)
Shenzhen Transsion Communication Co Ltd
Original Assignee
Shenzhen Transsion Communication 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 Shenzhen Transsion Communication Co Ltd filed Critical Shenzhen Transsion Communication Co Ltd
Priority to CN201710822127.5A priority Critical patent/CN107454564A/en
Publication of CN107454564A publication Critical patent/CN107454564A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/02Details of telephonic subscriber devices including a Bluetooth interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a kind of method for interchanging data of flash memory device and data exchange system, wherein, method for interchanging data comprises the following steps:The Bluetooth function of flash memory device is opened, opens the Bluetooth function for the intelligent terminal that data exchange is carried out with flash memory device;Intelligent terminal and flash memory device Bluetooth matching, based on the agreement of bluetooth 5.0, intelligent terminal accesses flash memory device, carries out data exchange.The present invention realize between flash disk and between other digital products data switched wireless;Based on the agreement of bluetooth 5.0, it is greatly improved in transmission range and speed, while the on-link mode (OLM) that bluetooth 5.0 can also change the status quo, simplify equipment matching process so that data exchange is simpler quick;The passwords of also settable flash disk, increase the security of flash disk data;The USB interface on existing flash disk can be omitted simultaneously, simplified the structure of flash disk, made its more small volume and less weight, be easy to carry.

Description

The method for interchanging data and data exchange system of a kind of flash memory device
Technical field
The present invention relates to data communication field, more particularly to a kind of method for interchanging data of flash memory device and data to hand over Change system.
Background technology
Flash disk, also known as USB flash disk, full name USB flash drive, " USB flash disk ", it is that one kind uses USB to English name The miniature high power capacity product without phisical drive of interface, it is connected by USB interface and computer etc., realization is Plug-and-play, data exchange is carried out under computer operation.The movable memory equipment sold on the market at present is various informative, its In attached most importance to flash disk for, with its it is compact be easy to carry, memory capacity is big, cheap, dependable performance the features such as deeply by big Crowd likes, and is the essential product of information age people's working and learning.
But the flash disk function of prevalence is extremely single, it is necessary to pass through data wire, USB interface and computer in the market Connection carries out data transmission, and is only limitted to exchange data storage between wired mode and computer, its concept only continues then Floppy disk function.When in use, computer is depended not only upon, can not be applied in existing smart mobile phone, IPAD, moreover, Also to attach a data line, and the data line standard difference that different manufacturers are supporting in addition in addition to a computer, run into week While can not but carry out during without in the case of computer or no data line again emergency transmission data, the use to user causes Very big inconvenience.
Bluetooth technology, it is a kind of short-distance wireless communication technology, fixed equipment, mobile device and building people domain can be achieved Short-range data between net exchanges (using the UHF radio waves of 2.4-2.485GHz ISM band).Bluetooth technology is one Kind wireless data and the open global specifications of voice communication, it is based on the near radio connection of low cost, for fixation One is established with mobile device communication environment to be especially connected.
Bluetooth technology has reached its maturity at present, with the progress of electronic industry, it is desirable to there is one kind to be widely used, with Body carries, the very convenient small-sized data storage switch for exchanging digital code information data of and can.
Therefore, the invention provides a kind of method for interchanging data of flash memory device and data exchange system, in flash disk Middle addition bluetooth module, the equipment such as notebook computer, tablet personal computer, smart mobile phone and flash disk are subjected to Bluetooth matching, so as to visit Ask flash disk, the data exchange operation such as uploaded, downloaded, edited, preserved, realize between flash disk and with other digital products it Between data transmission, exchange, storage and management, without USB interface and data wire, realize the switched wireless of flash disk data, Using simpler convenient;Based on the agreement of bluetooth 5.0, bluetooth standard of new generation has obtained greatly carrying in transmission range and speed Height, transmission range are up to 4 times of Current standards, and velocity interpolation is double, is calculated according to existing index, up to 300 meters Transmission range and 24Mbps speed are reached the standard grade, while the on-link mode (OLM) that bluetooth 5.0 can also change the status quo, and are simplified equipment and are matched Journey so that data exchange is simpler quick;The passwords of also settable flash disk, increase the security of flash disk data;Simultaneously The USB interface on existing flash disk can be omitted, simplifies the structure of flash disk, makes its more small volume and less weight, be easy to carry.
The content of the invention
In order to overcome above-mentioned technological deficiency, it is an object of the invention to provide a kind of data exchange side of flash memory device Method and data exchange system.
The invention discloses a kind of method for interchanging data of flash memory device, comprise the following steps:
The Bluetooth function of the flash memory device is opened, opens and the one of data exchange is carried out with the flash memory device The Bluetooth function of intelligent terminal;
The intelligent terminal carries out Bluetooth matching with the flash memory device, and the intelligent terminal is connected to the movement Storage device;
Based on the agreement of bluetooth 5.0, the intelligent terminal accesses the flash memory device, enters with the flash memory device Row data exchange.
Preferably, the intelligent terminal carries out Bluetooth matching with the flash memory device, and the intelligent terminal is connected to The step of flash memory device, includes:
Password is accessed in setting one in the flash memory device;
The intelligent terminal carries out Bluetooth matching with the flash memory device, and the intelligent terminal is assisted based on bluetooth 5.0 View sends an access request to the flash memory device;
The flash memory device receives the access request, prompts the intelligent terminal to input the access password;
Obtain the current password of the intelligent terminal input;
Judge whether the current password and the access password are consistent;
When the current password is consistent with the access password, it is allowed to which the intelligent terminal is connected to the mobile storage Device.
Preferably, the intelligent terminal carries out Bluetooth matching with the flash memory device, and the intelligent terminal is connected to The step of flash memory device, includes:
The intelligent terminal establishes logic link control and adapting protocol link with the flash memory device;
The intelligent terminal sends the SMB packet as access request to described based on the agreement of bluetooth 5.0 Flash memory device;
The flash memory device performs the SMB packet as access request received, and base The SMB packet as access result is sent to the intelligent terminal in the agreement of bluetooth 5.0;
The intelligent terminal shows the access result received.
Preferably, the intelligent terminal sends the SMB data as access request based on the agreement of bluetooth 5.0 Bag to the step of flash memory device, includes:
The intelligent terminal generates the SMB packet as access request;
The SMB packet as access request is converted into logic link control and adapting protocol number According to bag;
Send the logic link control and adapting protocol packet to the flash memory device.
Preferably, the flash memory device performs the SMB data as access request received The step of wrapping, and being sent based on the agreement of bluetooth 5.0 as SMB packet to the intelligent terminal for accessing result Including:
The flash memory device receives the logic link control and the adapting protocol data that the intelligent terminal is sent Bag;
The logic link control that the intelligent terminal is sent is converted to described as access with adapting protocol packet and asked The SMB packet asked;
Perform the SMB packet as access request and return as the server letter for accessing result Cease block packet;
The SMB packet as access result is converted into logic link control and adapting protocol number According to bag;
Send the logic link control and adapting protocol packet to the intelligent terminal.
The invention also discloses a kind of data exchange system of flash memory device, including starting module, link block, visit Ask module;
The starting module, opens the Bluetooth function of the flash memory device, and unlatching is entered with the flash memory device The Bluetooth function of one intelligent terminal of row data exchange;
The link block, is communicated to connect with the starting module, and the intelligent terminal enters with the flash memory device Row Bluetooth matching, the intelligent terminal are connected to the flash memory device;
The access modules, communicated to connect with the link block, based on the agreement of bluetooth 5.0, the intelligent terminal accesses The flash memory device, data exchange is carried out with the flash memory device.
Preferably, the link block obtains including password setting unit, access request unit, password prompt unit, password Take unit, password match unit, connection control unit;
The password setting unit, password is accessed in setting one in the flash memory device;
The access request unit, the intelligent terminal carry out Bluetooth matching, the intelligence with the flash memory device Terminal is based on the agreement of bluetooth 5.0 and sends an access request to the flash memory device;
The password prompt unit, it is connected with the access request unit communication, described in the flash memory device reception Access request, the intelligent terminal is prompted to input the access password;
The password acquiring unit, it is connected with the password prompt unit communication, obtains working as the intelligent terminal input Preceding password;
The password match unit, communicate to connect, judge described current with the password setting unit, password acquiring unit Whether password and the access password are consistent;
The connection control unit, it is connected with the password match unit communication, when the current password and the access When password is consistent, it is allowed to which the intelligent terminal is connected to the flash memory device.
Preferably, the link block shows including link establishment unit, request transmitting unit, result returning unit, result Show unit;
The link establishment unit, the intelligent terminal establish logic link control with being adapted to the flash memory device Protocol link;
The request transmitting unit, it is connected with the link establishment unit communication, the intelligent terminal is assisted based on bluetooth 5.0 View sends the SMB packet as access request to the flash memory device;
The result returning unit, is communicated to connect with the request transmitting unit, and the flash memory device performs reception The SMB packet as access request arrived, and sent based on the agreement of bluetooth 5.0 as access result SMB packet is to the intelligent terminal;
The result display unit, is communicated to connect with the result returning unit, and the intelligent terminal shows what is received Access result.
Preferably, the request transmitting unit, the intelligent terminal is controlled to generate the server as access request Block of information packet;
The SMB packet as access request is converted into logic link control and adapting protocol number According to bag;
Send the logic link control and adapting protocol packet to the flash memory device.
Preferably, the result returning unit, the flash memory device is controlled to receive the institute that the intelligent terminal is sent State logic link control and adapting protocol packet;
The logic link control that the intelligent terminal is sent is converted to described as access with adapting protocol packet and asked The SMB packet asked;
Perform the SMB packet as access request and return as the server letter for accessing result Cease block packet;
The SMB packet as access result is converted into logic link control and adapting protocol number According to bag;
Send the logic link control and adapting protocol packet to the intelligent terminal.
After employing above-mentioned technical proposal, compared with prior art, have the advantages that:
1. the method for interchanging data and data exchange system of flash memory device provided by the invention, added in flash disk blue Tooth module, the equipment such as notebook computer, tablet personal computer, smart mobile phone and flash disk are subjected to Bluetooth matching, so as to access flash disk, entered Row is uploaded, downloaded, editor, the data exchange operation such as preserves, and is realized between flash disk and the data between other digital products Transmit, exchange, storage and management, without USB interface and data wire, the switched wireless of flash disk data being realized, using more It is simple and convenient;
2. the method for interchanging data and data exchange system of flash memory device provided by the invention, are assisted based on bluetooth 5.0 View, bluetooth standard of new generation are greatly improved in transmission range and speed, and transmission range is up to the 4 of Current standards Times, velocity interpolation is double, is calculated according to existing index, and the speed of transmission range and 24Mbps up to 300 meters is reached the standard grade, The on-link mode (OLM) that bluetooth 5.0 can also change the status quo simultaneously, simplify equipment matching process so that data exchange is simpler quick;
3. the method for interchanging data and data exchange system of flash memory device provided by the invention, also settable flash disk Passwords, increase the security of flash disk data;
4. the method for interchanging data and data exchange system of flash memory device provided by the invention, while can omit existing There is the USB interface on flash disk, simplify the structure of flash disk, make its more small volume and less weight, be easy to carry.
Brief description of the drawings
Fig. 1 is the schematic flow sheet for the method for interchanging data for meeting one embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the Bluetooth matching step for the method for interchanging data for meeting one embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the Bluetooth matching step for the method for interchanging data for meeting one embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the transmission access request step of Fig. 3 method for interchanging data;
Fig. 5 is the schematic flow sheet of the backward reference result step of Fig. 4 method for interchanging data;
Fig. 6 is the structural representation for the data exchange system for meeting one embodiment of the present invention.
Reference:
100- data exchange systems;
11- starting modules;
12- link blocks;
13- access modules.
Embodiment
Advantages of the present invention is expanded on further below in conjunction with accompanying drawing and specific embodiment.
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
It is only merely for the purpose of description specific embodiment in terminology used in the present invention, and is not intended to be limiting the disclosure. Bag is also intended in " one " of the singulative of the invention with used in appended claims, " one kind ", " described " and "the" Most forms are included, unless context clearly shows that other implications.
In the description of the invention, unless otherwise prescribed and limit, for the ordinary skill in the art, can be with The concrete meaning of term is understood as the case may be.
In follow-up description, using the suffix of such as " module ", " unit " for representing element only for being advantageous to The explanation of the present invention, itself does not have specific meaning.Therefore, " module " can be used mixedly with " unit ".
The method for interchanging data and data exchange system 100 of the present invention, can apply to intelligent terminal, and intelligent terminal can be with Implement in a variety of manners.For example, the intelligent terminal described in the present invention can include such as mobile phone, smart phone, pen Remember this computer, PDA (personal digital assistant), PAD (tablet personal computer), PMP (portable media player), guider, intelligence The flash memory device of energy wrist-watch etc., and the fixed terminal of digital TV, desktop computer etc..Hereinafter it is assumed that terminal is Flash memory device, and assume that the flash memory device is smart mobile phone, the present invention will be described.However, art technology Personnel will be appreciated that in addition to being used in particular for moving the element of purpose construction according to the embodiment of the present invention also can Enough it is applied to the terminal of fixed type.For ease of description, the embodiment of the present invention illustrates by taking smart mobile phone as an example, Qi Taying It is cross-referenced with scene.
Meanwhile method for interchanging data of the invention and data exchange system 100, flash memory device can be flash disks, Can be that any other has the equipment of data storage function of exchange, including such as mobile phone, smart phone, notebook electricity Brain, PDA (personal digital assistant), PAD (tablet personal computer), PMP (portable media player), guider, intelligent watch Deng intelligent terminal.
- with reference to figure 1, the method for interchanging data of flash memory device of the invention, comprise the following steps:
S100:The Bluetooth function of the flash memory device is opened, opens and carries out data friendship with the flash memory device The Bluetooth function of the intelligent terminal changed;
S200:The intelligent terminal carries out Bluetooth matching with the flash memory device, and the intelligent terminal is connected to institute State flash memory device;
S300:Based on the agreement of bluetooth 5.0, the intelligent terminal accesses the flash memory device, with the mobile storage Device carries out data exchange.
- with reference to figure 2, in a preferred embodiment, S200:The intelligent terminal carries out bluetooth with the flash memory device Matching, the step of intelligent terminal is connected to the flash memory device, include:
S210:Password is accessed in setting one in the flash memory device;
S220:The intelligent terminal carries out Bluetooth matching with the flash memory device, and the intelligent terminal is based on bluetooth 5.0 agreements send an access request to the flash memory device;
S230:The flash memory device receives the access request, prompts the intelligent terminal input access close Code;
S240:Obtain the current password of the intelligent terminal input;
S250:Judge whether the current password and the access password are consistent;
S260:When the current password is consistent with the access password, it is allowed to which the intelligent terminal is connected to the shifting Dynamic storage device.
Present invention incorporates Bluetooth Communication Technology, is existing data network using short distance, the wireless connection of low cost Unified connection is provided with small-sized ancillary equipment.
The working frequency range of bluetooth equipment is selected in the 2.4GHz of global general-use ISM (industry, science, medical science) frequency range, so User need not pass through application can be to select appropriate Bluetooth radio transceiver frequency range in the range of 2400~2500MHz.Frequently Road uses 23 or 79, and channel spacing is 1MHz, using time division duplex.Modulation system is BT=0.5 GFSK, is adjusted Index processed is 0.28-0.35.The transmitting set of bluetooth uses FM modulation systems, so as to reduce the complexity of equipment.
Bluetooth uses time division multiple acess (TDMA) technology, is transmitted in the form of packet by time slot, supports synchronous in real time Orientation connection and non real-time asynchronous non-directional connection, support an asynchronoud data channel or a concurrent simultaneous voice passage Or one simultaneously transmit asynchronous data and simultaneous voice passage.
Frequency hopping is one of key technology that bluetooth uses, and its operation principle is to work as to utilize the random setpoint frequency synthesizer of pseudo-code When, the frequency of oscillation of emitter constantly changes in very wide frequency range, so that radio-frequency carrier is also very wide at one In the range of change, then form broadband Discrete spectrum, receiving terminal must set local frequency with same pseudo noise code and close Growing up to be a useful person makes the frequency of itself and originator make identical change, that is, receiving and dispatching frequency hopping must be synchronous.
Bluetooth provides the point-to-point and wireless connection of point-to-multipoint according to the concept of network, in any one effective communication model In enclosing, all equipment is all equality, and follows identical working method.Equality based on TDMA principles and bluetooth equipment Property, any bluetooth equipment can both use main equipment in master-slave network and scatternet, can make slave unit again, can also be both simultaneously Main equipment, it is slave unit again.Therefore there is no the concept of slave station in Bluetooth system, all equipment is all removable, group in addition Net very convenient.
The system architecture of Bluetooth technology is divided into three parts:Bottom hardware module, intermediate protocol layer and higher layer applications.
Bottom hardware part includes wireless frequency hopping (RF), base band (BB) and link management (LM).Wireless frequency-hopping layer passes through 2.4GHz realizes the filtering and transmission of data bit stream without the microwave of the ISM band authorized, this layer protocol main definitions bluetooth The condition that transceiver meets required for this frequency band normal work.Base band is responsible for the biography of frequency hopping and blue-teeth data and information frame It is defeated.Link management is responsible for connecting, establish and removing link and carries out security control.
Intermediate protocol layer includes logic link control and adapts to agreement, service discovery protocol, serial ports simulation protocol and phone Communication protocol.Logic link control and adaptation agreement have the function of completing data dismounting, control service quality and multiplex protocol, The layer protocol is the basis that other each layer protocols are realized.Service discovery protocol layer provides a kind of mechanism to send out for upper level applications Available service and its characteristic in existing network network.Serial ports simulation protocol layer has the function of 9 pin RS232 serial ports of emulation.Telephone communication Protocol layer then provides speech and the instruction of the Call- Control1 of data between bluetooth equipment.
HCI layer (HCI) is the interface in Bluetooth protocol between software and hardware, it provide one call base band, The uniform command interface of the hardware such as link management, state and control register.When being communicated between bluetooth equipment, more than HCI Protocol software entity run on main frame, and below HCI function is completed by bluetooth equipment, right by one therebetween The transparent transport layer in both ends interacts.
It is various higher layer applications frameworks in the topmost of bluetooth protocol repertory.It is wherein more typical to have Dial-up Network, earphone, office Domain net accesses, file transmits etc., and they correspond to a kind of application model respectively.Various application programs can by it is each it is self-corresponding should Radio communication is realized with pattern.Dial-up Network application can access piconet by Emulated Serial Ports, thus data equipment can also access Traditional LAN, user can realize the wireless biography of audio stream by protocol stack Audio (audio) layers in mobile phone and earplug It is defeated.Any line is not needed between multiple pc or notebook computer, just can quickly, neatly carry out file transmission and shared letter Breath, multiple devices can also be achieved in simultaneously operating.
Bluetooth 5.0 be by bluetooth sig 2016 propose Bluetooth technology standard, for low power consuming devices speed There are corresponding lifting and optimization, have wider array of coverage and compare present four times of speed, the lifting transmission speed upper limit is 24Mbps, twice of 4.2LE versions before being, transfer level reach lossless rank, and effective working distance is it up to 300 meters 4 times of preceding 4.2LE versions;Meanwhile indoor positioning miscellaneous function is added, and auxiliary positioning is carried out to indoor location with reference to Wi-Fi, can To realize that precision is less than 1 meter of indoor positioning, transmission speed is improved, increases effective working distance.
Therefore, the present invention adds bluetooth module in flash disk, based on the agreement of bluetooth 5.0, by notebook computer, flat board electricity The equipment such as brain, smart mobile phone and flash disk carry out Bluetooth matching, so as to access flash disk, are uploaded, downloaded, edited, preserved etc. and be several According to swap operation, realize between flash disk and between other digital products the transmission of data, exchange, storage and management, without By USB interface and data wire, the switched wireless of flash disk data is realized, using simpler convenient.Meanwhile also settable flash disk Passwords, when only the match is successful, can just carry out the transmission of data, increase the security of flash disk data.
- with reference to figure 3, in a preferred embodiment, S200:The intelligent terminal carries out bluetooth with the flash memory device Matching, the step of intelligent terminal is connected to the flash memory device, include:
S210’:The intelligent terminal establishes logic link control and adapting protocol link with the flash memory device;
S220’:The intelligent terminal sends the SMB packet as access request based on the agreement of bluetooth 5.0 To the flash memory device;
S230’:The flash memory device performs the SMB data as access request received Bag, and the SMB packet as access result is sent to the intelligent terminal based on the agreement of bluetooth 5.0;
S240’:The intelligent terminal shows the access result received.
- with reference to figure 4, in a preferred embodiment, S220 ':The intelligent terminal is based on the agreement of bluetooth 5.0 and sent as visit Asking SMB packet to the step of flash memory device of request includes:
S221:The intelligent terminal generates the SMB packet as access request;
S222:The SMB packet as access request is converted into logic link control with being adapted to association Discuss packet;
S223:Send the logic link control and adapting protocol packet to the flash memory device.
- with reference to figure 5, in a preferred embodiment, S230 ':The flash memory device performs the conduct received The SMB packet of access request, and sent based on the agreement of bluetooth 5.0 as the SMB for accessing result Packet to the step of intelligent terminal, includes:
S231:The flash memory device receives the logic link control and the adapting protocol that the intelligent terminal is sent Packet;
S232:The logic link control that the intelligent terminal is sent is converted to described as visit with adapting protocol packet Ask the SMB packet of request;
S233:Perform the SMB packet as access request and return as the service for accessing result Device block of information packet;
S234:The SMB packet as access result is converted into logic link control with being adapted to association Discuss packet;
S235:Send the logic link control and adapting protocol packet to the intelligent terminal.
In above-described embodiment, Bluetooth technology and SMB agreement are combined.
Bluetooth protocol repertory is the specification for one group of agreement that SIG (Special Intersted Group) is defined, and target is fair Being permitted to follow the bluetooth equipment of specification can be operated each other.Logic link control and adapting protocol (Logical Link Control and Adaptation Protocol, L2CAP) be bluetooth protocol repertory core protocol, be used in data link layer Inside bluetooth protocol repertory, operated using protocol multiplexing, Segmentation and Reassembly and the modes such as group is abstract provide connection to upper-layer protocol With connectionless data service, L2CAP allows upper-layer protocol and application program to send, receive L2CAP packets, using the general of channel Thought establishes different paths between bluetooth equipment different application.
SMB (Server Message Block) agreement is developed by IBM, in intercomputer shared file, beat Print machine and serial ports etc..It is a kind of intelligent terminal/server, request/response protocol.Pass through SMB agreements, intelligent terminal application journey The file that sequence can be read and write on server under various network environments, and service request, client computer are proposed to server program By sending SMB orders to server, so as to the share directory that conducts interviews, the operation such as file or reading and writing of files is opened, with And the other operations that can be done in file system.
In the above embodiment of the present invention, in step S220 ', when intelligent terminal and flash memory device establish L2CAP chains Lu Hou, intelligent terminal are sent as the SMB packets of access request to flash memory device in a manner of bluetooth 5.0, implemented For:
S221 intelligent terminals generate the SMB packets as access request;
SMB packets as access request are converted to L2CAP packets by S222;
S223 sends L2CAP packets to the flash memory device.
Wherein, S222 is above-mentioned is converted to L2CAP packets using the SMB packets as access request, is specially:
It is TCP data bag using as the SMB packet encapsulations of access request;
It is IP packets by TCP data encapsulation;
IP packets are converted into L2CAP packets.
In the above embodiment of the present invention, in step S230 ', flash memory device performs the SMB packets received, and Sent as the SMB packets for accessing result to the intelligent terminal, be implemented as in a manner of bluetooth 5.0:
S231 flash memory devices receive the L2CAP packets that intelligent terminal is sent;
The L2CAP packets that S232 sends intelligent terminal are converted to the SMB packets as access request;
S233 performs the SMB packets as access request and returned as the SMB packets for accessing result;
S234 is converted to L2CAP packets using as the SMB packets for accessing result;
S235 sends L2CAP packets to intelligent terminal.
Wherein, the L2CAP packets that S232 sends intelligent terminal are converted to the SMB packets as access request, tool Body is:
The L2CAP packets that intelligent terminal is sent are converted into IP packets;
It is TCP data bag by IP resolve packets;
It is the SMB packets as access request using TCP data Packet analyzing.
Wherein, S234 will be converted to L2CAP packets and be specially as the SMB packets for accessing result:
TCP data bag is dressed up using as the SMB data envelopes for accessing result;
IP packets are dressed up into TCP data encapsulating;
IP packets are converted into L2CAP packets.
In the above embodiment of the present invention, in step S240 ', intelligent terminal shows the access result received, specific real It is now:
The L2CAP packets that intelligent terminal for reception flash memory device is sent;
The L2CAP packets that flash memory device is sent are converted to as the SMB packets for accessing result;
The file of intelligent terminal will be loaded into a manner of independent disk or file tree as the SMB packets for accessing result System.
The wherein above-mentioned L2CAP packets for sending flash memory device are converted to as the SMB packets for accessing result Specially:
The L2CAP packets that the flash memory device is sent are converted into IP packets;
It is TCP data bag by the IP resolve packets;
It is as the SMB packets for accessing result using the TCP data Packet analyzing.
In summary, bi-directional conversion of the method for above-described embodiment based on SMB packets Yu L2CAP packets, is realized Intelligent terminal successfully realizes the wireless U disk without attached data line to the sharing operation of flash memory device.
With reference to figure 6, the invention also discloses a kind of data exchange system 100 of flash memory device, including starting module 11st, link block 12, access modules 13;
The starting module 11, the Bluetooth function of the flash memory device is opened, opened and the flash memory device Carry out the Bluetooth function of an intelligent terminal of data exchange;
The link block 12, communicated to connect with the starting module 11, the intelligent terminal fills with the mobile storage Carry out Bluetooth matching is put, the intelligent terminal is connected to the flash memory device;
The access modules 13, communicated to connect with the link block 12, based on the agreement of bluetooth 5.0, the intelligent terminal The flash memory device is accessed, data exchange is carried out with the flash memory device.
In a preferred embodiment, the link block 12 includes password setting unit, access request unit, password prompt Unit, password acquiring unit, password match unit, connection control unit;
The password setting unit, password is accessed in setting one in the flash memory device;
The access request unit, the intelligent terminal carry out Bluetooth matching, the intelligence with the flash memory device Terminal is based on the agreement of bluetooth 5.0 and sends an access request to the flash memory device;
The password prompt unit, it is connected with the access request unit communication, described in the flash memory device reception Access request, the intelligent terminal is prompted to input the access password;
The password acquiring unit, it is connected with the password prompt unit communication, obtains working as the intelligent terminal input Preceding password;
The password match unit, communicate to connect, judge described current with the password setting unit, password acquiring unit Whether password and the access password are consistent;
The connection control unit, it is connected with the password match unit communication, when the current password and the access When password is consistent, it is allowed to which the intelligent terminal is connected to the flash memory device.
In a preferred embodiment, the link block 12 includes link establishment unit, request transmitting unit, result return Unit, result display unit;
The link establishment unit, the intelligent terminal establish logic link control with being adapted to the flash memory device Protocol link;
The request transmitting unit, it is connected with the link establishment unit communication, the intelligent terminal is assisted based on bluetooth 5.0 View sends the SMB packet as access request to the flash memory device;
The result returning unit, is communicated to connect with the request transmitting unit, and the flash memory device performs reception The SMB packet as access request arrived, and sent based on the agreement of bluetooth 5.0 as access result SMB packet is to the intelligent terminal;
The result display unit, is communicated to connect with the result returning unit, and the intelligent terminal shows what is received Access result.
In a preferred embodiment, the request transmitting unit, control the intelligent terminal generation is described please as access The SMB packet asked;
The SMB packet as access request is converted into logic link control and adapting protocol number According to bag;
Send the logic link control and adapting protocol packet to the flash memory device.
In a preferred embodiment, the result returning unit, the flash memory device is controlled to receive the intelligence eventually Hold the logic link control sent and adapting protocol packet;
The logic link control that the intelligent terminal is sent is converted to described as access with adapting protocol packet and asked The SMB packet asked;
Perform the SMB packet as access request and return as the server letter for accessing result Cease block packet;
The SMB packet as access result is converted into logic link control and adapting protocol number According to bag;
Send the logic link control and adapting protocol packet to the intelligent terminal.
For said system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, The relevent part can refer to the partial explaination of embodiments of method.
It should be noted that embodiments of the invention have preferable implementation, and not the present invention is made any type of Limitation, any one skilled in the art change or are modified to possibly also with the technology contents of the disclosure above equivalent effective Embodiment, as long as without departing from the content of technical solution of the present invention, above example is made according to technical spirit of the invention Any modification or equivalent variations and modification, in the range of still falling within technical solution of the present invention.

Claims (10)

1. a kind of method for interchanging data of flash memory device, it is characterised in that comprise the following steps:
The Bluetooth function of the flash memory device is opened, opens the intelligence that data exchange is carried out with the flash memory device The Bluetooth function of terminal;
The intelligent terminal carries out Bluetooth matching with the flash memory device, and the intelligent terminal is connected to the mobile storage Device;
Based on the agreement of bluetooth 5.0, the intelligent terminal accesses the flash memory device, enters line number with the flash memory device According to exchange.
2. method for interchanging data as claimed in claim 1, it is characterised in that
The intelligent terminal carries out Bluetooth matching with the flash memory device, and the intelligent terminal is connected to the mobile storage The step of device, includes:
Password is accessed in setting one in the flash memory device;
The intelligent terminal carries out Bluetooth matching with the flash memory device, and the intelligent terminal is sent out based on the agreement of bluetooth 5.0 An access request is sent to the flash memory device;
The flash memory device receives the access request, prompts the intelligent terminal to input the access password;
Obtain the current password of the intelligent terminal input;
Judge whether the current password and the access password are consistent;
When the current password is consistent with the access password, it is allowed to which the intelligent terminal is connected to the mobile storage dress Put.
3. method for interchanging data as claimed in claim 1, it is characterised in that
The intelligent terminal carries out Bluetooth matching with the flash memory device, and the intelligent terminal is connected to the mobile storage The step of device, includes:
The intelligent terminal establishes logic link control and adapting protocol link with the flash memory device;
The intelligent terminal sends the SMB packet as access request to the movement based on the agreement of bluetooth 5.0 Storage device;
The flash memory device performs the SMB packet as access request received, and based on indigo plant The agreement of tooth 5.0 sends the SMB packet as access result to the intelligent terminal;
The intelligent terminal shows the access result received.
4. method for interchanging data as claimed in claim 3, it is characterised in that
The intelligent terminal sends the SMB packet as access request to the movement based on the agreement of bluetooth 5.0 The step of storage device, includes:
The intelligent terminal generates the SMB packet as access request;
The SMB packet as access request is converted into logic link control and adapting protocol packet;
Send the logic link control and adapting protocol packet to the flash memory device.
5. method for interchanging data as claimed in claim 4, it is characterised in that
The flash memory device performs the SMB packet as access request received, and based on indigo plant The agreement of tooth 5.0 is sent to be included as SMB packet to the step of intelligent terminal for accessing result:
The flash memory device receives the logic link control and the adapting protocol packet that the intelligent terminal is sent;
Logic link control that the intelligent terminal is sent and adapting protocol packet are converted to described as access request SMB packet;
Perform the SMB packet as access request and return as the SMB for accessing result Packet;
The SMB packet as access result is converted into logic link control and adapting protocol packet;
Send the logic link control and adapting protocol packet to the intelligent terminal.
6. a kind of data exchange system of flash memory device, it is characterised in that including starting module, link block, access mould Block;
The starting module, the Bluetooth function of the flash memory device is opened, open and enter line number with the flash memory device According to the Bluetooth function of an intelligent terminal of exchange;
The link block, communicated to connect with the starting module, the intelligent terminal carries out blue with the flash memory device Tooth matches, and the intelligent terminal is connected to the flash memory device;
The access modules, communicated to connect with the link block, based on the agreement of bluetooth 5.0, described in the intelligent terminal access Flash memory device, data exchange is carried out with the flash memory device.
7. data exchange system as claimed in claim 6, it is characterised in that
The link block includes password setting unit, access request unit, password prompt unit, password acquiring unit, password Matching unit, connection control unit;
The password setting unit, password is accessed in setting one in the flash memory device;
The access request unit, the intelligent terminal carry out Bluetooth matching, the intelligent terminal with the flash memory device One access request is sent to the flash memory device based on the agreement of bluetooth 5.0;
The password prompt unit, it is connected with the access request unit communication, the flash memory device receives the access Request, the intelligent terminal is prompted to input the access password;
The password acquiring unit, it is connected with the password prompt unit communication, obtains the current close of the intelligent terminal input Code;
The password match unit, communicated to connect with the password setting unit, password acquiring unit, judge the current password It is whether consistent with the access password;
The connection control unit, it is connected with the password match unit communication, when the current password and the access password When consistent, it is allowed to which the intelligent terminal is connected to the flash memory device.
8. data exchange system as claimed in claim 6, it is characterised in that
The link block includes link establishment unit, request transmitting unit, result returning unit, result display unit;
The link establishment unit, the intelligent terminal establish logic link control and adapting protocol with the flash memory device Link;
The request transmitting unit, it is connected with the link establishment unit communication, the intelligent terminal is sent out based on the agreement of bluetooth 5.0 SMB packet as access request is sent to the flash memory device;
The result returning unit, communicated to connect with the request transmitting unit, the flash memory device performs what is received The SMB packet as access request, and sent based on the agreement of bluetooth 5.0 as the service for accessing result Device block of information packet is to the intelligent terminal;
The result display unit, is communicated to connect with the result returning unit, and the intelligent terminal shows the access received As a result.
9. data exchange system as claimed in claim 8, it is characterised in that
The request transmitting unit, the intelligent terminal is controlled to generate the SMB data as access request Bag;
The SMB packet as access request is converted into logic link control and adapting protocol packet;
Send the logic link control and adapting protocol packet to the flash memory device.
10. data exchange system as claimed in claim 9, it is characterised in that
The result returning unit, the flash memory device is controlled to receive the logical links control that the intelligent terminal is sent System and adapting protocol packet;
Logic link control that the intelligent terminal is sent and adapting protocol packet are converted to described as access request SMB packet;
Perform the SMB packet as access request and return as the SMB for accessing result Packet;
The SMB packet as access result is converted into logic link control and adapting protocol packet;
Send the logic link control and adapting protocol packet to the intelligent terminal.
CN201710822127.5A 2017-09-13 2017-09-13 The method for interchanging data and data exchange system of a kind of flash memory device Pending CN107454564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710822127.5A CN107454564A (en) 2017-09-13 2017-09-13 The method for interchanging data and data exchange system of a kind of flash memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710822127.5A CN107454564A (en) 2017-09-13 2017-09-13 The method for interchanging data and data exchange system of a kind of flash memory device

Publications (1)

Publication Number Publication Date
CN107454564A true CN107454564A (en) 2017-12-08

Family

ID=60496369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710822127.5A Pending CN107454564A (en) 2017-09-13 2017-09-13 The method for interchanging data and data exchange system of a kind of flash memory device

Country Status (1)

Country Link
CN (1) CN107454564A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918943A (en) * 2019-02-25 2019-06-21 宿州市新亚电子科技有限公司 The connection mobile phone that mobile phone and flash disk use is to flash disk data encryption/decryption method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867572A (en) * 2010-05-11 2010-10-20 中兴通讯股份有限公司 Implementation method and system for wireless U disk
CN103824581A (en) * 2014-03-05 2014-05-28 苏州智信通电子科技有限公司 Safe and confidential USB flash disk
CN105844868A (en) * 2016-05-24 2016-08-10 上海海事大学 Anti-loss USB flash disk with characteristic of bluetooth searching
CN105976011A (en) * 2016-05-05 2016-09-28 东南大学 Anti-missing encrypted USB disk torch system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867572A (en) * 2010-05-11 2010-10-20 中兴通讯股份有限公司 Implementation method and system for wireless U disk
CN103824581A (en) * 2014-03-05 2014-05-28 苏州智信通电子科技有限公司 Safe and confidential USB flash disk
CN105976011A (en) * 2016-05-05 2016-09-28 东南大学 Anti-missing encrypted USB disk torch system
CN105844868A (en) * 2016-05-24 2016-08-10 上海海事大学 Anti-loss USB flash disk with characteristic of bluetooth searching

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918943A (en) * 2019-02-25 2019-06-21 宿州市新亚电子科技有限公司 The connection mobile phone that mobile phone and flash disk use is to flash disk data encryption/decryption method and system

Similar Documents

Publication Publication Date Title
TWI324470B (en) Method, article and apparatus for radio communication
JP4479040B2 (en) Communication apparatus and communication method
US8107879B2 (en) Device, system, and method of establishing multiple wireless connections
CN100571251C (en) Transmitting and receiving device, method of sending and receiving and transmission and receiving system
CN1989737B (en) Method to manage medium access for a mixed wireless network
CN103081559B (en) The equipment of radio communication, system and method
CN101491012B (en) Methods and apparatus for providing idle mode operations for a platform with a plurality of wireless communication devices
CN104969535B (en) The devices, systems, and methods of reciprocity (P2P) group of application service platform (ASP) are set
JP2004504766A (en) Portable device capable of communication between networks
KR100801648B1 (en) Method for information display using bluetooth in mobile communication terminal
CN101867572A (en) Implementation method and system for wireless U disk
CN102316474A (en) Gateway device and data transmission method
CN107454564A (en) The method for interchanging data and data exchange system of a kind of flash memory device
Cao et al. Overview of short-range wireless communication protocol
CN101449619B (en) Power efficient wireless network detection
CN100574245C (en) Keep the Wireless LAN module and the method thereof of connection
CN102457328B (en) Combined wireless data transmission method and its system
CN101651473A (en) Communication apparatuses, methods for manufacturing chips and method for providing wireless communication profile
CN207518859U (en) A kind of data exchange system of flash memory device
CN102904623A (en) Vehicle-mounted Bluetooth communication device
CN105357377A (en) Bluetooth bracelet and Bluetooth communication method thereof
CN101808128B (en) Virtual system of open wireless architecture of wireless mobile terminal equipment
CN108112000A (en) A kind of communication means and communication system for intelligent terminal
CN101409863B (en) A kind of system that local interaction application and information are provided
TW200818815A (en) Coexistence device communication

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171208

RJ01 Rejection of invention patent application after publication