CN116760822A - Method, system and device for transmitting files of Internet of things equipment - Google Patents

Method, system and device for transmitting files of Internet of things equipment Download PDF

Info

Publication number
CN116760822A
CN116760822A CN202310913957.4A CN202310913957A CN116760822A CN 116760822 A CN116760822 A CN 116760822A CN 202310913957 A CN202310913957 A CN 202310913957A CN 116760822 A CN116760822 A CN 116760822A
Authority
CN
China
Prior art keywords
internet
storage node
things
file
target storage
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
CN202310913957.4A
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.)
Hangzhou Ezviz Software Co Ltd
Original Assignee
Hangzhou Ezviz Software 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 Hangzhou Ezviz Software Co Ltd filed Critical Hangzhou Ezviz Software Co Ltd
Priority to CN202310913957.4A priority Critical patent/CN116760822A/en
Publication of CN116760822A publication Critical patent/CN116760822A/en
Pending legal-status Critical Current

Links

Classifications

    • 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]
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/75Information technology; Communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the application provides a method, a system and a device for transmitting files of Internet of things equipment. The method is applied to the management platform of the Internet of things, and comprises the following steps: receiving a file transmission request sent by an internet of things device, wherein the file transmission request is sent when a file transmission function of the internet of things device is in an on state; responding to the file transmission request, and acquiring the address and access protocol of the target storage node; and sending the address and the access protocol to the Internet of things equipment so that the Internet of things equipment accesses the address by using the access protocol, establishes communication connection with the target storage node, and transmits a file to the target storage node through the communication connection. By applying the embodiment of the application, the protocol adapted to the storage node does not need to be configured in the Internet of things equipment, so that the decoupling of the Internet of things equipment and the storage node can be realized, and the integration complexity of the Internet of things equipment is reduced.

Description

Method, system and device for transmitting files of Internet of things equipment
Technical Field
The application relates to the technical field of the internet of things, in particular to a method, a system and a device for transmitting files of equipment of the internet of things.
Background
With the continuous development of sensor technology and communication technology, more and more devices access the internet, forming a huge-scale internet of things (IoT, internet of things) industry. With the popularization of the internet of things, mass devices have the function of networking. In the scenes of intelligent transportation, intelligent security, intelligent home and the like, a large number of data file transmission requests exist in the Internet of things equipment. In the conventional internet of things equipment file transmission technology, files are generally transmitted to a designated public cloud manufacturer object storage or a self-built storage server, and the public cloud manufacturer object storage and the self-built storage server are regarded as storage nodes. The domain name of the file transmission is fixed on the firmware of the Internet of things equipment or issued by an Internet of things management platform, wherein the Internet of things management platform refers to an operation platform for uniformly managing and providing services for the Internet of things equipment. Each assigned public cloud manufacturer corresponding to the internet of things equipment can provide own SDK (Software Development Kit) for the internet of things equipment to transmit files, so that the existing technical scheme of file transmission of the internet of things equipment can be regarded as a scheme of integrating the SDK at the internet of things equipment end. Although each public cloud vendor provides a respective SDK, there is a lack of unified standards for each protocol. Therefore, by adopting the scheme of integrating the SDK at the equipment end of the Internet of things, the equipment of the Internet of things and corresponding appointed public cloud manufacturers are bound to a certain extent, so that when the version of the equipment of the Internet of things is updated, the SDK bound with the equipment of the Internet of things needs to be updated and upgraded together, the problems of difficult updating and upgrading of the equipment of the Internet of things and the SDK are caused, and the problem of complex integration of the equipment of the Internet of things is brought.
Disclosure of Invention
The embodiment of the application aims to provide a method, a system and a device for transmitting files of internet of things equipment so as to reduce the integration complexity of the internet of things equipment. The specific technical scheme is as follows:
the embodiment of the application provides a file transmission method of Internet of things equipment, which is applied to an Internet of things management platform and comprises the following steps:
receiving a file transmission request sent by an internet of things device, wherein the file transmission request is sent when a file transmission function of the internet of things device is in an on state;
responding to the file transmission request, and acquiring the address and access protocol of the target storage node;
and sending the address and the access protocol to the Internet of things equipment so that the Internet of things equipment accesses the address by using the access protocol, establishes communication connection with the target storage node, and transmits a file to the target storage node through the communication connection.
In one possible embodiment, the method further comprises:
acquiring the geographic position of the Internet of things equipment;
and determining a target storage node which is in a preset available state and the distance between the target storage node and the geographic position meets a preset condition.
In one possible embodiment, the method further comprises:
and determining a storage node preconfigured for the Internet of things equipment as a target storage node.
In one possible embodiment, the method further comprises:
and if the internet of things equipment opens the file transmission permission, executing the step of responding to the file transmission request and acquiring the address and the access protocol of the target storage node.
In one possible embodiment, the method further comprises:
and if the file transmission permission is not opened by the Internet of things equipment, transmitting an error code to the Internet of things equipment, so that the Internet of things equipment responds to the error code to close the file transmission function of the Internet of things equipment.
In one possible embodiment, the file transfer request includes: request transmission file type, request transmission file number;
the method further comprises the steps of:
generating request parameter information supported by the target storage node according to the address and access protocol of the target storage node, the type of the request transmission file and the number of the request transmission files;
and sending the request parameter information to the Internet of things equipment, so that the Internet of things equipment transmits the file to the target storage node through the communication connection according to the transmission mode indicated by the request parameter information.
The embodiment of the application also provides a file transmission method of the Internet of things equipment, which is applied to the Internet of things equipment and comprises the following steps:
when the file transmission function is in an on state, sending a file transmission request to an Internet of things management platform;
receiving an address and an access protocol of a target storage node sent by the Internet of things management platform;
accessing the address using the access protocol, establishing a communication connection with the target storage node;
transmitting the file to the target storage node through the communication connection.
In one possible embodiment, the method further comprises:
receiving an error code sent by the Internet of things management platform;
and closing the file transmission function in response to the error code.
In one possible embodiment, the file transfer request includes: the request transmission file type and the request transmission file number are used for enabling the Internet of things management platform to generate request parameter information supported by the target storage node according to the address and access protocol of the target storage node, the request transmission file type and the request transmission file number;
the method further comprises the steps of:
receiving the request parameter information sent by the Internet of things management platform;
And transmitting the file to the target storage node through the communication connection according to the transmission mode indicated by the request parameter information.
The embodiment of the application also provides a file transmission system of the Internet of things equipment, which comprises the following steps: the system comprises an Internet of things management platform, internet of things equipment and storage nodes;
the internet of things management platform is used for receiving a file transmission request sent by the internet of things device, wherein the file transmission request is sent when a file transmission function of the internet of things device is in an on state; responding to the file transmission request, and acquiring the address and access protocol of the target storage node; the address and the access protocol are sent to the Internet of things equipment, so that the Internet of things equipment accesses the address by using the access protocol, communication connection between the Internet of things equipment and the target storage node is established, and a file is transmitted to the target storage node through the communication connection;
the internet of things device is configured to send the file transmission request to the internet of things management platform when the file transmission function is in an on state; receiving an address and an access protocol of the target storage node sent by the Internet of things management platform; accessing the address using the access protocol, establishing a communication connection with the target storage node; transmitting a file to the target storage node over the communication connection;
The target storage node in the storage nodes is used for receiving the file transmitted by the internet of things equipment and storing the file.
The embodiment of the application also provides a device for transmitting the files of the Internet of things equipment, which is applied to the Internet of things management platform and comprises the following components:
the file transmission request receiving module is used for receiving a file transmission request sent by the Internet of things equipment, wherein the file transmission request is sent when the file transmission function of the Internet of things equipment is in an on state;
the acquisition module is used for responding to the file transmission request and acquiring the address and the access protocol of the target storage node;
and the address and access protocol sending module is used for sending the address and the access protocol to the internet of things equipment so that the internet of things equipment can access the address by using the access protocol, establish communication connection with the target storage node and transmit a file to the target storage node through the communication connection.
In one possible embodiment, the apparatus further comprises:
the geographic position acquisition module is used for acquiring the geographic position of the Internet of things equipment;
and the first target storage node determining module is used for determining a target storage node which is in a preset available state and the distance between the first target storage node and the geographic position meets a preset condition.
In one possible embodiment, the apparatus further comprises:
and the second target storage node determining module is used for determining a storage node which is preconfigured for the Internet of things equipment and is used as a target storage node.
In one possible embodiment, the apparatus further comprises:
and the execution module is used for executing the step of responding to the file transmission request and acquiring the address and the access protocol of the target storage node if the internet of things equipment opens the file transmission permission.
In one possible embodiment, the apparatus further comprises:
and the error code sending module is used for sending an error code to the Internet of things equipment if the Internet of things equipment does not open the file transmission permission, so that the Internet of things equipment responds to the error code to close the file transmission function of the Internet of things equipment.
In one possible embodiment, the file transfer request includes: request transmission file type, request transmission file number;
the apparatus further comprises:
the request parameter information generation module is used for generating request parameter information supported by the target storage node according to the address and access protocol of the target storage node, the type of the request transmission file and the number of the request transmission files;
And the request parameter information sending module is used for sending the request parameter information to the Internet of things equipment so that the Internet of things equipment can transmit the file to the target storage node through the communication connection according to the transmission mode indicated by the request parameter information.
The embodiment of the application also provides a file transmission device of the Internet of things equipment, which is applied to the Internet of things equipment and comprises the following components:
the file transmission request sending module is used for sending the file transmission request to the Internet of things management platform when the file transmission function is in an on state;
the address and access protocol receiving module is used for receiving the address and access protocol of the target storage node sent by the Internet of things management platform;
the establishing module is used for accessing the address by using the access protocol and establishing communication connection with the target storage node;
and the file transmission module is used for transmitting the file to the target storage node through the communication connection.
In one possible embodiment, the apparatus further comprises:
the error code receiving module is used for receiving the error code sent by the Internet of things management platform;
and the error code response module is used for responding to the error code and closing the file transmission function.
In one possible embodiment, the file transfer request includes: the request transmission file type and the request transmission file number are used for enabling the Internet of things management platform to generate request parameter information supported by the target storage node according to the address and access protocol of the target storage node, the request transmission file type and the request transmission file number;
the apparatus further comprises:
the request parameter information receiving module is used for receiving the request parameter information sent by the Internet of things management platform;
and the transmission module is used for transmitting the file to the target storage node through the communication connection according to the transmission mode indicated by the request parameter information.
The embodiment of the application also provides an Internet of things management platform, which comprises:
a memory for storing a computer program;
and the processor is used for realizing any one of the file transmission methods of the Internet of things equipment applied to the Internet of things management platform when executing the program stored in the memory.
The embodiment of the application also provides equipment of the Internet of things, which comprises:
a memory for storing a computer program;
and the processor is used for realizing any one of the file transmission methods applied to the Internet of things equipment when executing the program stored in the memory.
The embodiment of the application also provides a computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and the computer program realizes any one of the above file transmission methods of the Internet of things device when being executed by a processor.
The embodiment of the application also provides a computer program product containing instructions, which when run on a computer, cause the computer to execute any one of the above file transmission methods of the Internet of things device.
The embodiment of the application has the beneficial effects that:
according to the method, the system and the device for transmitting the file of the Internet of things equipment, when the Internet of things management platform receives the file transmission request sent by the Internet of things equipment, the address and the access protocol of the target storage node can be obtained in response to the file transmission request, the address and the access protocol of the target storage node are sent to the Internet of things equipment, so that the Internet of things equipment can access the address of the target storage node by using the access protocol of the target storage node, communication connection between the Internet of things equipment and the target storage node is established, and the file is transmitted to the target storage node through the communication connection. In the embodiment of the application, after the internet of things management platform receives the file transmission request of the internet of things equipment, the address and the access protocol of the target storage node are sent to the internet of things equipment, so that the internet of things equipment does not need to be configured with the protocol adapted to the storage node, but the access protocol of the target storage node sent by the internet of things management platform can be subjected to protocol adaptation with the storage node, and the file transmission is completed according to the address and the access protocol of the target storage node sent by the internet of things management platform, therefore, the internet of things equipment and the storage node are not bound, the decoupling of the internet of things equipment and the storage node is realized, and the integration complexity of the internet of things equipment is reduced.
Of course, it is not necessary for any one product or method of practicing the application to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the application, and other embodiments may be obtained according to these drawings to those skilled in the art.
Fig. 1 is a schematic flow chart of an internet of things device file transmission method applied to an internet of things management platform according to an embodiment of the present application;
fig. 2 is a schematic flow chart of another method for transmitting files of an internet of things device, which is applied to an internet of things management platform according to an embodiment of the present application;
fig. 3 is a schematic flow chart of an internet of things device file transmission method applied to internet of things devices according to an embodiment of the present application;
fig. 4 is a schematic diagram of a scenario of file transmission of an internet of things device according to an embodiment of the present application;
fig. 5 is a schematic flow chart of transmission of an application file of an internet of things device according to an embodiment of the present application;
Fig. 6 is a schematic flow chart of generating request parameter information by the management platform of the internet of things according to the embodiment of the application;
fig. 7 is a schematic block diagram of an internet of things device according to an embodiment of the present application;
fig. 8 is a schematic diagram of a scenario in which an internet of things device performs file transmission according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a file transfer system of an internet of things device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a file transmission device of an internet of things device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of another file transfer device for an internet of things device according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of an internet of things management platform according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of an internet of things device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by the person skilled in the art based on the present application are included in the scope of protection of the present application.
When the internet of things device needs to transmit files, the traditional internet of things device file transmission scheme is to directly transmit file data to the internet of things management platform, and the internet of things management platform is required to support mass file transmission. Although the object storage capacity provided by public cloud is adopted in the storage of the rear-end file, each Internet of things device still requests an Internet of things management platform, and the Internet of things management platform is responsible for managing the storage of the file transmitted by the Internet of things device in response to the request. But the scheme is difficult to fully exert the mass processing capacity of public clouds. Today, public cloud infrastructure is gradually perfected, the scheme brings the problem of repeated construction of resources of an Internet of things management platform, and mass processing capacity of public cloud is not beneficial to being directly utilized.
In the related art, the public cloud SDK can be integrated in the internet of things device, so that the internet of things device directly accesses the public cloud through the SDK to store files, and therefore the mass processing capacity of the public cloud is directly utilized, but the internet of things device and a corresponding designated public cloud manufacturer are bound to a certain extent, so that the internet of things device needs to update and upgrade the SDK bound with the internet of things device together when the version of the internet of things device is updated, the problem that the internet of things device and the SDK are difficult to update and upgrade is caused, and the problem that the integration of the internet of things device is complex is brought.
Based on the above, in order to reduce the integration complexity of the internet of things equipment, the embodiment of the application provides a method, a system and a device for transmitting the files of the internet of things equipment. The method for transmitting the file of the internet of things device provided by the embodiment of the application is firstly illustrated in the following.
The method for transmitting the files of the Internet of things equipment provided by the embodiment of the application is applied to an Internet of things management platform, and as shown in fig. 1, the method specifically comprises the following steps:
s101, receiving a file transmission request sent by the Internet of things equipment.
The file transmission request is sent when the file transmission function of the internet of things device is in an on state.
S102, responding to the file transmission request, and acquiring the address and the access protocol of the target storage node.
And S103, sending the address and the access protocol to the Internet of things equipment, so that the Internet of things equipment uses the access protocol to access the address, establishes communication connection with the target storage node, and transmits the file to the target storage node through the communication connection.
By applying the embodiment of the application, when the Internet of things management platform receives the file transmission request sent by the Internet of things device, the address and the access protocol of the target storage node can be obtained in response to the file transmission request, and the address and the access protocol of the target storage node are sent to the Internet of things device, so that the Internet of things device accesses the address of the target storage node by using the access protocol of the target storage node, establishes communication connection with the target storage node, and transmits the file to the target storage node through the communication connection. In the embodiment of the application, after the internet of things management platform receives the file transmission request of the internet of things equipment, the address and the access protocol of the target storage node are sent to the internet of things equipment, so that the internet of things equipment does not need to be configured with the protocol adapted to the storage node, but the access protocol of the target storage node sent by the internet of things management platform can be subjected to protocol adaptation with the storage node, and the file transmission is completed according to the address and the access protocol of the target storage node sent by the internet of things management platform, therefore, the internet of things equipment and the storage node are not bound, the decoupling of the internet of things equipment and the storage node is realized, and the integration complexity of the internet of things equipment is reduced.
The foregoing S101 to S103 will be described below, respectively, in which:
in S101, it may be understood that, when the file transfer function of the internet of things device is in an on state, the internet of things device may send a file transfer request to the internet of things management platform. However, the internet of things device does not immediately send a file transmission request to the internet of things management platform when the file transmission function is started, but sends the file transmission request to the internet of things management platform when the file transmission is needed. The method comprises the steps that when the file transmission function is in an on state and file transmission is needed, the Internet of things equipment sends a file transmission request to an Internet of things management platform.
In S102, the internet of things management platform responds to the received file transfer request, determines a storage node from the plurality of storage nodes as a target storage node, and obtains an address and an access protocol of the target storage node.
The method for determining the target storage node is not limited in any way, and the method for determining the target storage node is described in the following by way of example and not described in detail herein.
Each storage node is provided with a corresponding storage node number, and the information of all the storage nodes is stored in the internet of things management platform, wherein the information comprises the storage node numbers, the corresponding storage node addresses, access protocols and other detailed information. The information of the storage nodes is created in advance and stored in the Internet of things management platform when the storage nodes are newly added. The internet of things management platform can query information of the storage node according to the number of the storage node, can judge cloud manufacturers to which the storage node belongs according to the queried information, and acquire available protocols of the corresponding cloud manufacturers, namely acquire access protocols corresponding to the storage node.
In S103, the internet of things management platform may assemble the address and the access protocol of the target storage node according to the data exchange protocol between the internet of things device and the internet of things management platform, obtain a request response result, compress and encrypt the request response result, and then send the request response result to the internet of things device.
An exemplary description of how the target storage node is determined is as follows:
in one possible embodiment, any one of the plurality of storage nodes may be the target storage node.
In one possible embodiment, a geographic location where the internet of things device is located may be obtained; and determining a target storage node which meets the preset condition and is in a preset available state from the distance between the target storage node and the geographic position.
The preset condition may mean that a distance between an area where the storage node is located and a geographic location of the internet of things device is smaller than a preset distance threshold, the preset distance threshold may be set according to actual requirements, and specifically, the preset distance threshold may be 1 km, 2 km, 5 km, and the like. The preset condition may also refer to that the area where the storage node is located and the geographic location where the internet of things device is located are located in the same province or in the same city, and so on.
The state in which the storage node is may be determined by the network connectivity and/or load capacity of the storage node. The preset available state may refer to that the network connectivity of the storage node is higher than a preset network connectivity threshold, the network connectivity of the storage node may be represented by a return rate of data packets sent by the storage node, and the storage node sends 4 data packets and returns 4 data packets, where the data packets are not lost, the return rate is 100%, which indicates that the network connectivity of the storage node is good, the storage node sends 4 data packets and returns 0 data packets, and the data packets are all lost, the return rate is 0, which indicates that the network connectivity of the storage node is poor. The preset network connectivity threshold may be set according to actual requirements, and specifically, the preset network connectivity threshold may be 80%, 90%, 95%, and so on.
The preset available state may also refer to that the load capacity of the storage node is higher than a preset load capacity threshold, and the load capacity of the storage node may be represented by the number of requests acceptable by the storage node in a unit time, where the preset load capacity threshold may be set according to actual requirements, and specifically, the preset load capacity threshold may be 10, 20, 50, and so on.
The preset availability status may also refer to the network connectivity of the storage node being above a preset network connectivity threshold and the load capacity being above a preset load capacity threshold.
For the method for acquiring the geographic position of the internet of things device, in one possible implementation manner, the internet of things management platform can acquire the internet of things device sending the file transmission request according to the source of the received file transmission request, and locate the internet of things device to acquire the geographic position of the internet of things device.
In another possible implementation manner, the file transmission request sent by the internet of things device includes an IP address of the internet of things device, and the internet of things management platform may obtain, according to the IP address of the internet of things device included in the file transmission request, a geographic location where the internet of things device is located.
For determining the target storage node, in a possible implementation manner, the available storage nodes with the distance between the located area and the geographic position of the internet of things device meeting the preset condition can be screened out from a plurality of storage nodes, and then the target storage node with the located state being the preset available state is determined from the available storage nodes. In another possible implementation manner, an available storage node with a preset available state is selected from a plurality of storage nodes, and then a target storage node with a distance between a located area and the geographic position of the internet of things device meeting a preset condition is determined from the available storage nodes.
An embodiment of screening a plurality of storage nodes according to a distance between an area where the storage nodes are located and a geographic location of the internet of things device will be described in detail below.
And taking the storage node with the distance between the area where the storage node is located and the geographic position of the Internet of things equipment meeting the preset condition as an available storage node, and placing the available storage node in an available storage node list. The available storage nodes can be arranged into an available storage node list from near to far according to the distance between the available storage nodes and the geographic position of the Internet of things equipment, can be arranged into an available storage node list from far to near according to the distance between the available storage nodes and the geographic position of the Internet of things equipment, and can be randomly arranged into the available storage node list.
Judging whether the state of each available storage node is a preset available state according to the sequence in the available storage node list, if the state of a certain available storage node is not the preset available state, deleting the available storage node in the available storage node list, and judging whether the state of the next available storage node of the available storage node in the available storage node list is the preset available state; and if the state of a certain available storage node is a preset available state, taking the available storage node as a target storage node.
According to the method and the device for storing the file, the distance between the storage node and the geographic position of the Internet of things equipment is determined to meet the preset condition, and the storage node in the preset available state is used as the target storage node, so that the storage node which is relatively close to the Internet of things equipment and has relatively good network connectivity and relatively strong load capacity can be used as the target storage node, the stability of the determined target storage node is relatively good, file transmission failure caused by network fluctuation, relatively large files and other problems is not easy to occur during file transmission, the availability of the storage node is improved, and the failure rate of file transmission of the Internet of things equipment is reduced.
In another possible embodiment, a storage node preconfigured for the internet of things device may be determined as the target storage node.
Specifically, a user can pre-configure a storage node for an internet of things device on an internet of things management platform, and when the internet of things management platform receives a file transmission request sent by the internet of things device, the storage node pre-configured by the user for the internet of things device can be used as a target storage node, and meanwhile, the storage node number of the target storage node can be obtained. The internet of things management platform can acquire the address and access protocol of the target storage node according to the storage node number.
By adopting the embodiment, the Internet of things equipment can transmit the file to the target storage node appointed by the user, so that the requirement of the user is met, and meanwhile, the Internet of things management platform transmits the address and the access protocol of the target storage node to the Internet of things equipment, so that the Internet of things equipment and the storage node are not bound, the decoupling of the Internet of things equipment and the storage node is realized, and the integration complexity of the Internet of things equipment is reduced.
When the internet of things device needs to transmit files, the file transmission function of the internet of things device is required to be in an open state, and the internet of things management platform is required to open file transmission permission for the internet of things device. Therefore, the user needs to open file transmission rights for the internet of things equipment needing file transmission at the internet of things management platform, and if the user has the requirement of designating a storage node, the storage node can be designated for the internet of things equipment when the file transmission rights are opened for the internet of things equipment, namely, the storage node is preconfigured for the internet of things equipment.
The storage node designated by the user for the internet of things device is the storage node 2, and after receiving the file transmission request sent by the internet of things device, the internet of things management platform may use the storage node 2 as a target storage node, obtain the address and the access protocol of the storage node 2, and send the address and the access protocol of the storage node 2 to the internet of things device, so that the internet of things device may access the address of the storage node 2 by using the access protocol of the storage node 2, establish a communication connection with the storage node 2, and transmit the file to the storage node 2 through the communication connection. At the moment, the files required to be transmitted by the Internet of things equipment can be transmitted to the storage node preconfigured by the user, so that the requirements of the user are met.
In a possible implementation manner, after the storage node preconfigured by the user for the internet of things device is obtained, the internet of things management platform can also judge whether the state of the preconfigured storage node is a preset available state, if so, the preconfigured storage node is used as a target storage node; if not, taking the storage node which has the distance with the geographic position meeting the preset condition and is in the preset available state as the target storage node.
After the file transmission permission of the Internet of things equipment is opened, the Internet of things management platform sends an instruction for opening a file transmission function to the Internet of things equipment; after receiving an instruction for starting a file transmission function, the internet of things device sets a switch state of the file transmission function to be an on state, persists the switch state, stores the switch state to a nonvolatile memory, and prevents the switch state from being lost after the internet of things device is powered off and restarted.
However, when the user does not open the file transmission right for a certain internet of things device at the internet of things management platform, the file transmission function of the internet of things device may be in an open state, and then the internet of things device may also send a file transmission request to the internet of things management platform.
S201, receiving a file transmission request sent by the Internet of things equipment.
S202, if the Internet of things equipment opens the file transmission permission, executing the step of responding to the file transmission request and acquiring the address and the access protocol of the target storage node.
Specifically, when the internet of things management platform determines that the internet of things device opens the file transmission permission, the foregoing step S102 is executed, and a target storage node is determined for the internet of things device, so that the internet of things device can transmit the file to the target storage node.
S203, if the Internet of things device does not open the file transmission permission, the error code is sent to the Internet of things device, so that the Internet of things device responds to the error code to close the file transmission function of the Internet of things device.
It can be understood that when the internet of things device sends a file transmission request to the internet of things management platform, the internet of things device sends the file transmission request to the internet of things management platform at intervals of preset time, so that the internet of things management platform can receive the file transmission request and respond. Therefore, under the condition that the internet of things management platform judges that the internet of things equipment does not open the file transmission permission, the internet of things management platform also responds to the file transmission request of the internet of things equipment and sends error codes to the internet of things equipment so that the internet of things equipment can close the file transmission function of the internet of things equipment, and the problem that the internet of things equipment always sends an invalid file transmission request to the internet of things management platform is avoided.
By adopting the embodiment, the target storage node can be determined for the internet of things equipment under the condition that the internet of things equipment opens the file transmission permission, so that the internet of things equipment can transmit the file to the target storage node, and the internet of things equipment which does not open the file transmission permission is prevented from transmitting the file. Meanwhile, under the condition that the internet of things equipment does not open the file transmission permission, the error code is sent to the internet of things equipment in response to the file transmission request of the internet of things equipment, so that the internet of things equipment closes the file transmission function of the internet of things equipment, and the internet of things equipment is prevented from always sending an invalid file transmission request to the internet of things management platform.
In one possible embodiment, the file transfer request includes: request transmission file type, request transmission file number; the method further comprises the steps of: generating request parameter information supported by a target storage node according to the address and access protocol of the target storage node, the type of the request transmission file and the number of the request transmission files; and sending the request parameter information to the Internet of things equipment so that the Internet of things equipment can transmit the file to the target storage node through communication connection according to the transmission mode indicated by the request parameter information.
Specifically, the internet of things device may generate a message that the target storage node can successfully parse according to the address, the access protocol and the request parameter information of the target storage node, carry a file to be stored in the message and send the message to the target storage node, and the target storage node receives and parses the message and stores a file parsed from the message in a storage medium local to the target storage node.
The request parameter information is an array, the size of the array is the number of request transmission files applied by the internet of things equipment, each number in the array corresponds to one request transmission file, the numerical value of the number is used for representing parameters required when the corresponding request transmission file is completed, and the parameters are used for representing the transmission mode when the request transmission file is transmitted. The request parameter information is an array [ a, B, C ], the size of the array is the number 3 of request transmission files applied by the internet of things device, a in the array corresponds to the request transmission file 1, and the value of a is used for indicating parameters required when the transmission of the request transmission file 1 is completed, and the parameters are used for representing a transmission mode when the request transmission file 1 is transmitted; b in the array corresponds to the request transmission file 2, and the numerical value of B is used for representing parameters required when the transmission of the request transmission file 2 is completed, and the parameters are used for representing the transmission mode when the request transmission file 2 is transmitted; c in the array corresponds to the request transmission file 3, and the value of C is used for indicating parameters required when the request transmission file 3 is transmitted, and the parameters are used for representing the transmission mode when the request transmission file 3 is transmitted.
According to the method, the device and the system for transmitting the file to the Internet of things management platform, the Internet of things management platform generates request parameter information adapted to the target storage node according to the request transmission file type, the request transmission file number, the address and the access protocol of the target storage node in the file transmission request when the Internet of things device needs to transmit the file each time, so that the Internet of things device can transmit the file to the target storage node through communication connection directly according to a transmission mode indicated by the request parameter information, and file transmission is completed more conveniently.
Based on the same inventive concept, the embodiment of the application also provides a file transmission method of the internet of things equipment, which is applied to the internet of things equipment, as shown in fig. 3, and specifically can comprise the following steps:
s301, when the file transmission function is in an on state, sending a file transmission request to an Internet of things management platform.
S302, receiving an address and an access protocol of a target storage node sent by the management platform of the Internet of things.
S303, using the access protocol to access the address, establishing a communication connection with the target storage node.
S304, transmitting the file to the target storage node through communication connection.
By adopting the embodiment, the file transmission request can be sent to the Internet of things management platform, the address and the access protocol of the target storage node, which are sent by the Internet of things management platform in response to the file transmission request, are received, the access protocol is used for accessing the address, the communication connection with the target storage node is established, and the file is transmitted to the target storage node through the communication connection. Because the address and the access protocol of the target storage node are sent by the Internet of things management platform in response to the file transmission request, the Internet of things equipment does not need to be subjected to protocol adaptation with the storage node, and file transmission can be completed according to the address and the access protocol of the target storage node sent by the Internet of things management platform, so that the Internet of things equipment and the storage node cannot be bound, decoupling of the Internet of things equipment and the storage node is realized, and the integration complexity of the Internet of things equipment is reduced.
The foregoing S301 to S304 will be described below, respectively, in which:
in S301, as in the analysis in S101, the internet of things device sends a file transmission request to the internet of things management platform when the file transmission function is in an on state and file transmission is required.
In S302, the compressed and encrypted request response result described in S103 may be received, decrypted and decompressed to obtain the address and access protocol of the target storage node.
In S303, the internet of things device may access the target storage node address using an access protocol supported by the target storage node, and establish a communication connection between the internet of things device and the target storage node.
In S304, the internet of things device may transmit, through the communication connection, the file to be transmitted to the target storage node.
In one possible embodiment, an error code sent by the internet of things management platform may be received; in response to the error code, the file transfer function is turned off.
The internet of things device receives the error code sent by the internet of things management platform, and the fact that the internet of things device does not open file transmission permission is indicated. The Internet of things equipment responds to the received error code, sets the on-off state of the file transmission function of the Internet of things equipment to be in an off state, and persists the on-off state, so that the Internet of things equipment is prevented from always sending an invalid file transmission request to the Internet of things management platform.
By adopting the embodiment, the file transmission function of the internet of things equipment can be closed in response to the received error code sent by the internet of things management platform under the condition that the internet of things equipment does not open the file transmission permission, so that the internet of things equipment is prevented from always sending an invalid file transmission request to the internet of things management platform.
In one possible embodiment, the file transfer request includes: the request transmission file type and the request transmission file quantity are used for enabling the Internet of things management platform to generate request parameter information supported by the target storage node according to the address and access protocol of the target storage node, the request transmission file type and the request transmission file quantity; the method further comprises the steps of: receiving request parameter information sent by an Internet of things management platform; and transmitting the file to the target storage node through the communication connection according to the transmission mode indicated by the request parameter information.
According to the method and the device for transmitting the file, the Internet of things equipment can send a file transmission request to the Internet of things management platform each time file transmission is needed, and request parameter information sent by the Internet of things management platform is received, so that the Internet of things equipment can directly transmit the file to a target storage node through communication connection according to a transmission mode indicated by the request parameter information, and file transmission is more conveniently completed.
Fig. 4 is a schematic view of a scenario of file transmission of an internet of things device according to an embodiment of the present application, where, as shown in fig. 4, a scenario is illustrated by taking an example of file uploading by the internet of things device, where an internet of things management service platform is an internet of things management platform, and a cloud storage service is a storage node. The internet of things equipment needs to carry out four steps when carrying out file uploading, step 1: and the user opens a storage function for the Internet of things equipment on the Internet of things management service platform, namely, the user opens file transmission permission for the Internet of things equipment on the Internet of things management platform. Step 2: the internet of things management service platform issues a storage starting instruction to the internet of things equipment, namely the internet of things management platform sends an instruction for starting a file transmission function to the internet of things equipment, so that the internet of things equipment sets a switching state of the file transmission function to be in an on state, and the switching state is durable. Step 3: the method comprises the steps that the Internet of things equipment uploads required parameters to an Internet of things management service platform, namely, the Internet of things equipment sends a file transmission request to the Internet of things management platform, receives a response of the Internet of things management platform to the file transmission request, and takes the response as the parameters required by uploading the Internet of things equipment application file. Step 4: and the internet of things equipment uploads the file to the cloud storage service according to the response of the internet of things management platform to the file transmission request, namely, the internet of things equipment uploads the file to the storage node.
In order to more clearly explain the method for transmitting the file of the internet of things device provided by the application, the execution flows of the internet of things device and the internet of things management platform in the method for transmitting the file of the internet of things device provided by the application are described below with reference to an application scenario shown in fig. 4, and fig. 5 is used for explaining the execution flows of the internet of things device and the internet of things management platform.
After the internet of things equipment starts to work, the internet of things equipment initiates a file uploading request, and the file uploading request is the file transmission request.
And judging whether the file uploading function of the internet of things equipment is started or not, wherein the file uploading function is the file transmission function. If so, namely the file uploading function of the internet of things equipment is started, the SDK of the internet of things equipment applies for file uploading parameter information to the platform according to the file uploading type and the number of files.
Specifically, the internet of things device sends a file transmission request to the internet of things management platform to request parameter information required for uploading a file to the internet of things management platform, where the file transmission request may include: the unique identifier of the internet of things device, the type of the file requested to be uploaded, the number of the files requested to be uploaded, the request time, the IP address of the internet of things device and the like.
After receiving the response of the management platform of the Internet of things, analyzing the response of the platform, obtaining the access address of the storage node, uploading protocol and uploading parameters, wherein the uploading parameters are the request parameter information.
And according to the access address of the storage node obtained in the last step, the uploading protocol and the uploading parameters assemble a complete file uploading request and execute the file uploading request to finish file uploading. Specifically, the internet of things device may generate a message that the target storage node can successfully parse according to the address, the access protocol and the request parameter information of the target storage node, carry a file to be stored in the message and send the message to the target storage node, and the target storage node receives and parses the message and stores a file parsed from the message in a storage medium local to the target storage node.
If not, the internet of things equipment is stated to turn off the local cloud storage uploading function switch, and the internet of things equipment finishes working.
The method comprises the steps that an Internet of things management platform starts to work, after the Internet of things management platform receives a file transmission request, file uploading service information of Internet of things equipment is inquired, whether the Internet of things equipment can upload files or not is judged according to the file uploading service information, namely whether the Internet of things equipment opens file transmission permission is judged, if not, an error code which cannot be uploaded is returned to the Internet of things equipment, the Internet of things equipment is informed to close file uploading functions, and the Internet of things management platform ends the work.
If so, selecting a storage node meeting the requirements according to the equipment information of the Internet of things, wherein the storage node meeting the requirements is the target storage node, generating file uploading parameter information adapting to the storage node according to the storage node information, and the file uploading parameter information is the request parameter information. And packaging the storage node address, the request parameters and the protocol into an interaction protocol of the equipment and the platform, wherein the request parameters are file uploading parameter information in the previous step, namely the request parameter information. Specifically, the internet of things management platform assembles the storage node address, the request parameters and the protocol according to the data exchange protocol between the internet of things equipment and the internet of things management platform, and a request response result is obtained. And compressing and encrypting the request response result, and then responding to the request uploaded by the application file of the Internet of things equipment, wherein the Internet of things management platform finishes the work. The request response result may include a response status code, an unique identifier of the internet of things device, a storage node access protocol, a storage node address, and request parameter information.
The following describes the execution flow of the request parameter information generated by the management platform of the internet of things with reference to the execution flow of fig. 5, referring to fig. 6.
And the Internet of things management platform starts working after receiving a file transmission request sent by the large Internet of things equipment. And the Internet of things management platform judges whether the Internet of things equipment needs to be assigned with storage service according to the Internet of things equipment information such as the unique identifier of the Internet of things equipment and the like contained in the file transmission request, namely judges whether a user presets a storage node for the Internet of things equipment, if so, selects the assigned storage node, takes the assigned storage node as a target storage node, and distributes the node for the Internet of things equipment.
If not, judging the storage node which belongs to the region allocation nearest according to the equipment request IP. Specifically, the internet of things management platform obtains the geographic position of the internet of things equipment according to the internet of things equipment IP address contained in the file transmission request, and arranges the storage nodes into a storage node list from near to far according to the distance between the storage nodes and the geographic position of the internet of things equipment.
And judging whether the node can be used according to the network connectivity and the bandwidth condition of the node. Specifically, whether the network connectivity and the bandwidth condition of each storage node conform to the preset available state can be judged according to the sequence in the storage node list, and as the bandwidth condition can embody the load capacity of the storage node, whether the network connectivity and the load capacity of each storage node conform to the preset available state can also be judged. If yes, the node is distributed to the Internet of things equipment. If not, removing the current node from the storage node list, and executing the step of judging the storage node which belongs to the region and is closest to the region allocation according to the equipment request IP. Specifically, if the network connectivity and bandwidth condition of a certain storage node do not conform to the preset available state, deleting the storage node in the storage node list, wherein the storage node list is formed by arranging the storage nodes from near to far according to the distance between the storage node list and the geographic position of the internet of things device, so that the storage node closest to the internet of things device is the next storage node in the storage node list, and therefore, whether the network connectivity and bandwidth condition of the next storage node in the storage node list conform to the preset available state can be directly judged until the judged network connectivity and bandwidth condition of the storage node conform to the preset available state, and distributing the storage node conforming to the preset available state to the internet of things device.
And according to the distributed node information, the Internet of things equipment applies for the type of the uploaded file and the number of the files to be uploaded, and an uploading request parameter adapting to the node is generated. Specifically, the storage node allocated to the internet of things device is a target storage node, and the internet of things management platform can generate uploading request parameters adapted to the target storage node according to the address and access protocol of the target storage node, and the type and the number of the requested uploading files in the file transmission request, namely, request parameter information supported by the target storage node is generated. Meanwhile, the internet of things management platform can also create a unique file identifier according to the unique identifier of the internet of things equipment, the type of the file requested to be uploaded, the number of the files requested to be uploaded, the current system time and the like, wherein the unique file identifier is used for identifying the file to be uploaded, and subsequent file searching is facilitated.
And the Internet of things management platform encapsulates the address of the storage node, the uploading protocol supported by the storage node and the request parameter information according to the interaction protocol of the Internet of things management platform and the Internet of things equipment, wherein the uploading protocol supported by the storage node is the access protocol of the storage node. Specifically, the internet of things management platform may encapsulate the address, the access protocol and the request parameter information of the target storage node according to a data exchange protocol between the internet of things device and the internet of things management platform. And after the encapsulation is finished, the management platform of the Internet of things finishes the work.
Fig. 7 is a schematic block diagram of an internet of things device according to an embodiment of the present application, where, as shown in fig. 7, the internet of things device includes: processor, memory, bus interface, upload SDK, transceiver.
Fig. 8 is a schematic diagram of a scenario in which an internet of things device performs file transmission, where, as shown in fig. 8, the internet of things device may be connected to a wide area network according to a routing device, and access an address of a target storage node according to an obtained access protocol of the target storage node, and transmit a file to a file server of the storage node through a firewall of the target storage node and a load balancer.
The embodiment of the application also provides a file transmission system of the internet of things device, as shown in fig. 9, the system can comprise: the system comprises an Internet of things management platform 901, internet of things equipment 902 and a storage node 903;
the internet of things management platform 901 is configured to receive a file transmission request sent by an internet of things device, where the file transmission request is sent when a file transmission function of the internet of things device is in an on state; responding to a file transmission request, and acquiring the address and access protocol of a target storage node; the address and the access protocol are sent to the Internet of things equipment, so that the Internet of things equipment uses the access protocol to access the address, establishes communication connection with a target storage node, and transmits a file to the target storage node through the communication connection;
The internet of things device 902 is configured to send a file transmission request to an internet of things management platform when a file transmission function is in an on state; receiving an address and an access protocol of a target storage node sent by an Internet of things management platform; using the access protocol access address to establish a communication connection with the target storage node; transmitting the file to the target storage node through the communication connection;
the target storage node in the storage node 903 is configured to receive a file transmitted by the internet of things device, and store the file.
The embodiment of the application also provides a device for transmitting the files of the Internet of things equipment, which is applied to the management platform of the Internet of things, as shown in fig. 10, and comprises the following steps:
a file transmission request receiving module 101, configured to receive a file transmission request sent by an internet of things device, where the file transmission request is sent when a file transmission function of the internet of things device is in an on state;
an obtaining module 102, configured to obtain an address and an access protocol of a target storage node in response to a file transfer request;
the address and access protocol sending module 103 is configured to send the address and the access protocol to the internet of things device, so that the internet of things device uses the access protocol to access the address, establishes a communication connection with the target storage node, and transmits the file to the target storage node through the communication connection.
In one possible embodiment, the apparatus further comprises:
the geographic position acquisition module is used for acquiring the geographic position of the equipment of the Internet of things;
the first target storage node determining module is used for determining a target storage node which is in a state of being in a preset available state and is in a state that the distance between the first target storage node and the geographic position meets a preset condition.
In one possible embodiment, the apparatus further comprises:
the second target storage node determining module is used for determining a storage node preconfigured for the internet of things equipment as a target storage node.
In one possible embodiment, the apparatus further comprises:
and the execution module is used for executing the step of responding to the file transmission request and acquiring the address and the access protocol of the target storage node if the internet of things equipment opens the file transmission permission.
In one possible embodiment, the apparatus further comprises:
and the error code sending module is used for sending the error code to the Internet of things equipment if the Internet of things equipment does not open the file transmission permission, so that the Internet of things equipment responds to the error code to close the file transmission function of the Internet of things equipment.
In one possible embodiment, the file transfer request includes: request transmission file type, request transmission file number;
The apparatus further comprises:
the request parameter information generation module is used for generating request parameter information supported by the target storage node according to the address and access protocol of the target storage node, the type of the request transmission file and the number of the request transmission files;
the request parameter information sending module is used for sending the request parameter information to the internet of things equipment so that the internet of things equipment can transmit the file to the target storage node through communication connection according to the transmission mode indicated by the request parameter information.
The embodiment of the application also provides a file transmission device of the Internet of things equipment, which is applied to the Internet of things equipment, as shown in fig. 11, and comprises the following steps:
a file transmission request sending module 111, configured to send a file transmission request to the internet of things management platform when the file transmission function is in an on state;
an address and access protocol receiving module 112, configured to receive an address and an access protocol of a target storage node sent by the management platform of the internet of things;
an establishing module 113, configured to use an access protocol to access the address, and establish a communication connection with the target storage node;
the file transfer module 114 is configured to transfer the file to the target storage node through the communication connection.
In one possible embodiment, the apparatus further comprises:
the error code receiving module is used for receiving the error code sent by the management platform of the Internet of things;
and the error code response module is used for responding to the error code and closing the file transmission function.
In one possible embodiment, the file transfer request includes: the request transmission file type and the request transmission file quantity are used for enabling the Internet of things management platform to generate request parameter information supported by the target storage node according to the address and access protocol of the target storage node, the request transmission file type and the request transmission file quantity;
the apparatus further comprises:
the request parameter information receiving module is used for receiving request parameter information sent by the Internet of things management platform;
and the transmission module is used for transmitting the file to the target storage node through communication connection according to the transmission mode indicated by the request parameter information.
The embodiment of the application also provides an internet of things management platform, as shown in fig. 12, which comprises:
a memory 121 for storing a computer program;
the processor 122 is configured to execute the program stored in the memory 121, and implement the following steps:
receiving a file transmission request sent by Internet of things equipment; the file transmission request is sent when the file transmission function of the internet of things device is in an on state;
Responding to a file transmission request, and acquiring the address and access protocol of a target storage node;
and sending the address and the access protocol to the Internet of things equipment, so that the Internet of things equipment uses the access protocol to access the address, establishes communication connection with the target storage node, and transmits the file to the target storage node through the communication connection.
And the internet of things management platform may further include a communication bus and/or a communication interface, where the processor 122, the communication interface, and the memory 121 complete communication with each other through the communication bus.
The communication bus mentioned by the above-mentioned internet of things management platform may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the Internet of things management platform and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The embodiment of the application also provides an internet of things device, as shown in fig. 13, which comprises:
a memory 131 for storing a computer program;
the processor 132 is configured to execute the program stored in the memory 131, and implement the following steps:
when the file transmission function is in an on state, sending a file transmission request to an Internet of things management platform;
receiving an address and an access protocol of a target storage node sent by an Internet of things management platform;
using the access protocol access address to establish a communication connection with the target storage node;
the file is transferred to the target storage node over the communication connection.
And the internet of things device may further comprise a communication bus and/or a communication interface, where the processor 132, the communication interface, and the memory 131 complete communication with each other through the communication bus.
The communication bus mentioned by the above-mentioned internet of things device may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the Internet of things equipment and other equipment.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In still another embodiment of the present application, a computer readable storage medium is provided, where a computer program is stored, where the computer program, when executed by a processor, implements the steps of any one of the above-mentioned method for file transfer of an internet of things device.
In yet another embodiment of the present application, a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the internet of things device file transfer methods of the above embodiments is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, tape), an optical medium (e.g., DVD), or a Solid State Disk (SSD), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system, apparatus, internet of things management platform, internet of things device, computer readable storage medium, and computer program product embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and relevant places are referred to in the section of the description of the method embodiments.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (15)

1. The file transmission method of the Internet of things equipment is characterized by being applied to an Internet of things management platform, and comprises the following steps:
receiving a file transmission request sent by an internet of things device, wherein the file transmission request is sent when a file transmission function of the internet of things device is in an on state;
responding to the file transmission request, and acquiring the address and access protocol of the target storage node;
and sending the address and the access protocol to the Internet of things equipment so that the Internet of things equipment accesses the address by using the access protocol, establishes communication connection with the target storage node, and transmits a file to the target storage node through the communication connection.
2. The method according to claim 1, wherein the method further comprises:
acquiring the geographic position of the Internet of things equipment;
and determining a target storage node which is in a preset available state and the distance between the target storage node and the geographic position meets a preset condition.
3. The method according to claim 1, wherein the method further comprises:
and determining a storage node preconfigured for the Internet of things equipment as a target storage node.
4. The method according to claim 1, wherein the method further comprises:
and if the internet of things equipment opens the file transmission permission, executing the step of responding to the file transmission request and acquiring the address and the access protocol of the target storage node.
5. The method according to claim 4, wherein the method further comprises:
and if the file transmission permission is not opened by the Internet of things equipment, transmitting an error code to the Internet of things equipment, so that the Internet of things equipment responds to the error code to close the file transmission function of the Internet of things equipment.
6. The method of claim 1, wherein the file transfer request comprises: request transmission file type, request transmission file number;
the method further comprises the steps of:
generating request parameter information supported by the target storage node according to the address and access protocol of the target storage node, the type of the request transmission file and the number of the request transmission files;
And sending the request parameter information to the Internet of things equipment, so that the Internet of things equipment transmits the file to the target storage node through the communication connection according to the transmission mode indicated by the request parameter information.
7. The file transmission method for the Internet of things equipment is characterized by being applied to the Internet of things equipment, and comprises the following steps:
when the file transmission function is in an on state, sending a file transmission request to an Internet of things management platform;
receiving an address and an access protocol of a target storage node sent by the Internet of things management platform;
accessing the address using the access protocol, establishing a communication connection with the target storage node;
transmitting the file to the target storage node through the communication connection.
8. The method of claim 7, wherein the method further comprises:
receiving an error code sent by the Internet of things management platform;
and closing the file transmission function in response to the error code.
9. The method of claim 7, wherein the file transfer request comprises: the request transmission file type and the request transmission file number are used for enabling the Internet of things management platform to generate request parameter information supported by the target storage node according to the address and access protocol of the target storage node, the request transmission file type and the request transmission file number;
The method further comprises the steps of:
receiving the request parameter information sent by the Internet of things management platform;
and transmitting the file to the target storage node through the communication connection according to the transmission mode indicated by the request parameter information.
10. An internet of things device file transfer system, the system comprising: the system comprises an Internet of things management platform, internet of things equipment and storage nodes;
the internet of things management platform is used for receiving a file transmission request sent by the internet of things device, wherein the file transmission request is sent when a file transmission function of the internet of things device is in an on state; responding to the file transmission request, and acquiring the address and access protocol of the target storage node; the address and the access protocol are sent to the Internet of things equipment, so that the Internet of things equipment accesses the address by using the access protocol, communication connection between the Internet of things equipment and the target storage node is established, and a file is transmitted to the target storage node through the communication connection;
the internet of things device is configured to send the file transmission request to the internet of things management platform when the file transmission function is in an on state; receiving an address and an access protocol of the target storage node sent by the Internet of things management platform; accessing the address using the access protocol, establishing a communication connection with the target storage node; transmitting a file to the target storage node over the communication connection;
The target storage node in the storage nodes is used for receiving the file transmitted by the internet of things equipment and storing the file.
11. The utility model provides an thing networking equipment file transmission device, its characterized in that is applied to thing networking management platform, the device includes:
the file transmission request receiving module is used for receiving a file transmission request sent by the Internet of things equipment, wherein the file transmission request is sent when the file transmission function of the Internet of things equipment is in an on state;
the acquisition module is used for responding to the file transmission request and acquiring the address and the access protocol of the target storage node;
and the address and access protocol sending module is used for sending the address and the access protocol to the internet of things equipment so that the internet of things equipment can access the address by using the access protocol, establish communication connection with the target storage node and transmit a file to the target storage node through the communication connection.
12. An internet of things device file transmission device, characterized in that is applied to internet of things device, the device includes:
the file transmission request sending module is used for sending the file transmission request to the Internet of things management platform when the file transmission function is in an on state;
The address and access protocol receiving module is used for receiving the address and access protocol of the target storage node sent by the Internet of things management platform;
the establishing module is used for accessing the address by using the access protocol and establishing communication connection with the target storage node;
and the file transmission module is used for transmitting the file to the target storage node through the communication connection.
13. An internet of things management platform, comprising:
a memory for storing a computer program;
a processor for implementing the method of any of claims 1-6 when executing a program stored on a memory.
14. An internet of things device, comprising:
a memory for storing a computer program;
a processor for implementing the method of any of claims 7-9 when executing a program stored on a memory.
15. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method of any of claims 1-6 or 7-9.
CN202310913957.4A 2023-07-24 2023-07-24 Method, system and device for transmitting files of Internet of things equipment Pending CN116760822A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310913957.4A CN116760822A (en) 2023-07-24 2023-07-24 Method, system and device for transmitting files of Internet of things equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310913957.4A CN116760822A (en) 2023-07-24 2023-07-24 Method, system and device for transmitting files of Internet of things equipment

Publications (1)

Publication Number Publication Date
CN116760822A true CN116760822A (en) 2023-09-15

Family

ID=87959165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310913957.4A Pending CN116760822A (en) 2023-07-24 2023-07-24 Method, system and device for transmitting files of Internet of things equipment

Country Status (1)

Country Link
CN (1) CN116760822A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117527860A (en) * 2024-01-05 2024-02-06 河北普兰特生物科技有限公司 Internet of things communication method, system and medium based on distributed system
CN117640626A (en) * 2024-01-25 2024-03-01 合肥中科类脑智能技术有限公司 File transmission method, device and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117527860A (en) * 2024-01-05 2024-02-06 河北普兰特生物科技有限公司 Internet of things communication method, system and medium based on distributed system
CN117527860B (en) * 2024-01-05 2024-04-09 河北普兰特生物科技有限公司 Internet of things communication method, system and medium based on distributed system
CN117640626A (en) * 2024-01-25 2024-03-01 合肥中科类脑智能技术有限公司 File transmission method, device and system
CN117640626B (en) * 2024-01-25 2024-04-26 合肥中科类脑智能技术有限公司 File transmission method, device and system

Similar Documents

Publication Publication Date Title
JP7012836B2 (en) Network slice management method and equipment
CN113596184B (en) Hybrid cloud system, gatekeeper, network access method and storage medium
CN116760822A (en) Method, system and device for transmitting files of Internet of things equipment
US9615346B2 (en) Method and apparatus for notifying information change in wireless communication system
KR102245367B1 (en) Method and apparatus for authenticating access authority for specific resource in wireless communication system
EP4202645A1 (en) Vehicle upgrading method and apparatus
CN110226308B (en) Network slice management method, management unit and system
KR101528210B1 (en) Software downloading method and device
WO2014069968A1 (en) Method and apparatus for updating information regarding specific resource in wireless communication system
EP2171917B1 (en) System and method for providing device management service to electronic device having no broadband communication module
EP4322483A1 (en) System architecture for implementing dds communication on basis of autosar, communication method, and device
CN110572820B (en) Registration method and device of IMS terminal, position information server and storage medium
US20200178062A1 (en) A Method of Obtaining User Subscription Data Pertaining to a Subscriber in a Telecommunication Network
CN105812321A (en) Network file system based on user information management file resource and processing method
JP2023544123A (en) Data transmission system, data transmission method, intelligent vehicle, and device
US9438603B2 (en) Method for managing access right of terminal to resource by server in wireless communication system, and device for same
CN110996339A (en) eSIM resource management platform and management method
CN113285816B (en) Control request sending method, device and system based on key value configuration
CN112882742A (en) Software updating method and related equipment
CN112492592A (en) Authorization method under multiple NRF scenes
EP2424162B1 (en) Method, apparatus and system for device management
US11924294B2 (en) Service request handling
CN114844961B (en) Distributed system protocol intercommunication method, device, equipment and storage medium
CN113347284B (en) Resource access method, resource access device, electronic equipment and storage medium
CN107211479B (en) Method and device for selecting access network

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