Equipment access method and device, electronic equipment and storage medium
By turning on the short-distance communication module on the screenless device and receiving the network connection information sent by the control device, the problem of the screenless device being unable to access the network is solved, function expansion and data transmission are realized, and the user experience of the device is improved.
Patent Information
- Application Number
- CN202410777321.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-08
AI Technical Summary
Screenless devices cannot display the network connection interface, making it difficult to access the network or access specific servers, resulting in limited functionality and scalability.
By turning on the short-distance communication module to send broadcast signals, respond to the connection request of the control device, receive network connection information, and access the network and target server based on this information.
It realizes network access and function expansion of screenless devices, allowing screenless devices to access the network through the control device, access the server, and perform data transfer and firmware upgrades.
Smart Images

Figure CN118748828A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a device access method, apparatus, electronic device and storage medium. Background Art
[0002] In electronic devices for children (for example, enlightenment machines, early childhood education machines, reading machines, etc.), electronic display screens are usually not present to protect children's eyesight.
[0003] In the related art, such screenless devices can only be used offline. Since they cannot display the network connection interface and cannot configure the network connection information through traditional interactive methods, it is difficult to connect them to the network or access specific servers through the network, which also limits the functions and scalability of such screenless devices. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a device access method, apparatus, electronic device and storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, a device access method is provided, which is applied to a screenless device, including:
[0006] Turning on the short-range communication module of the screenless device so that the screenless device sends a broadcast signal to the outside;
[0007] In response to a connection establishment request sent by a control terminal device, a short-distance communication connection is established with the control terminal device, wherein the connection establishment request is sent by the control terminal device to the screenless device after detecting the broadcast signal;
[0008] Receiving network connection information sent by the control terminal device through the short-distance communication connection;
[0009] According to the network connection information, the screenless device is controlled to access the network and access the target server through the network.
[0010] In some embodiments, the method further comprises:
[0011] During the operation of the screenless device, storing usage data of the screenless device in a memory of the screenless device;
[0012] In response to a data upload instruction for the usage data, the usage data is uploaded to the target server, so that the control end device can view the usage data by accessing the target server.
[0013] In some embodiments, the method further comprises:
[0014] In response to the firmware upgrade instruction sent by the target server, detecting whether the screenless device is in an upgradeable state;
[0015] When the screenless device is in an upgradeable state, the screenless device is controlled to execute the firmware upgrade instruction.
[0016] In some embodiments, controlling the screenless device to execute the firmware upgrade instruction includes:
[0017] In response to a shutdown instruction for the screenless device, executing the firmware upgrade instruction, and in response to a power-on instruction for the screenless device, interrupting the execution of the firmware upgrade instruction; and / or,
[0018] In response to a power-on instruction for the screenless device, executing the firmware upgrade instruction; and / or,
[0019] In response to the active upgrade instruction sent by the target server, the firmware upgrade instruction is executed, wherein the active upgrade instruction is sent by the control end device to the target server.
[0020] In some embodiments, the method further comprises:
[0021] In the case of detecting that at least part of the operating resource data is missing from the memory of the screenless device, querying the target server for the at least part of the operating resource data, wherein the at least part of the operating resource data includes data for supporting the operation of the screenless device;
[0022] In a case where the at least part of the operating resource data exists in the target server, the at least part of the operating resource data sent by the target server is received, and the at least part of the operating resource data is stored in the memory.
[0023] In some embodiments, the method further comprises:
[0024] Receiving the designated operation resource data sent by the target server, and storing the designated operation resource data in the memory of the screenless device;
[0025] The designated operation resource data is the operation resource data corresponding to the designated data identifier pre-stored in the target server, and the designated data identifier is acquired by the control terminal device and sent to the target server.
[0026] In some embodiments, the method further comprises:
[0027] In response to a shutdown instruction for the screenless device or in response to the screenless device being in a standby state, querying whether local operating resource data stored in a memory of the screenless device is consistent with cloud operating resource data stored in the target server;
[0028] Receive cloud resource data sent by the target server that is inconsistent with the local operating resource data, and overwrite the corresponding local operating resource data in the memory with the received cloud resource data.
[0029] According to a second aspect of an embodiment of the present disclosure, a device access apparatus is provided, which is applied to a screenless device, including:
[0030] An activation module, used to activate the short-range communication module of the screenless device so that the screenless device can send a broadcast signal externally;
[0031] An establishing module, used for establishing a short-distance communication connection with the control terminal device in response to a connection establishment request sent by the control terminal device, wherein the connection establishment request is sent by the control terminal device to the screenless device after detecting the broadcast signal;
[0032] A receiving module, used for receiving the network connection information sent by the control terminal device through the short-distance communication connection;
[0033] The access module is used to control the screenless device to access the network according to the network connection information, and access the target server through the network.
[0034] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0035] Processor; and
[0036] A memory, configured to store executable instructions of the processor;
[0037] The processor is configured to execute the method described in the first aspect by executing the executable instructions.
[0038] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in the first aspect is implemented.
[0039] According to the solution provided by the embodiment of the present disclosure, the screenless device can turn on the short-range communication module to send a broadcast signal to the outside. After detecting the broadcast signal, the control end device can send a connection establishment request to the screenless device. The screenless device can establish a short-range communication connection with the control end device in response to the connection establishment request sent by the control end device, and then receive the network connection information sent by the control end device through the short-range communication connection. After obtaining the network connection information, the screenless device can access the network according to the network connection information, and access the target server through the network. Therefore, the solution provided by the embodiment of the present disclosure can assist the screenless device to access the network through the control end device, so that the screenless device can access the target server, thereby providing a certain scalability for the functions of the screenless device. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A schematic diagram showing a system architecture in an embodiment of the present disclosure.
[0041] Figure 2 A schematic structural diagram of a screenless device in an embodiment of the present disclosure is shown.
[0042] Figure 3 A schematic diagram of a process flow of a device access method in an embodiment of the present disclosure is shown.
[0043] Figure 4 A schematic diagram showing a specific process of a device accessing a network in an embodiment of the present disclosure is shown.
[0044] Figure 5 A schematic structural diagram of a device access apparatus in an embodiment of the present disclosure is shown.
[0045] Figure 6 A schematic structural diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0046] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0047] The disclosed embodiment provides a device access method, which can assist a screenless device to access the network through a control terminal device, thereby enabling the screenless device to access a target server, thereby providing a certain degree of scalability for the functions of the screenless device.
[0048] It can be understood that the device access method of this embodiment can be executed on any screenless device. For example, the screenless device can be implemented as an enlightenment machine, early education machine, reading machine and other electronic devices for children. Such electronic devices do not have screen display capabilities. The above examples should not be understood as limitations on the present disclosure.
[0049] For example, Figure 1 A schematic diagram of an exemplary system architecture that can be applied to a device access method or a device access apparatus according to an embodiment of the present disclosure is shown.
[0050] like Figure 1 As shown, the system architecture 100 includes a screenless device 101, a control-end device 102 and a server 103. Among them, the screenless device 101 and the control-end device 102 are directly connected via short-range communication technology. For example, Bluetooth technology, Near Field Communication (NFC) technology, Wifi technology, etc. The control-end device 102 can send network connection information to the screenless device 101 through short-range communication technology, so that the screenless device 101 accesses the network according to the received network connection information, and then connects to the server 103. In addition, the control-end device 102 can also be connected to the server 103 through the network and transfer data.
[0051] Exemplarily, the server 103 may be a single server, or a server cluster or a cloud server consisting of multiple servers.
[0052] The control terminal device 102 may be a mobile phone, a smart TV, a tablet computer, a laptop computer, or a personal computer (PC). The control terminal device 102 may also be provided with a client, which can view the usage data of the screenless device 101 stored in the server 103 or control the server 103 to send various instructions to the screenless device 101, and the client may be an application client or a browser client, etc.
[0053] For example, please refer to Figure 2 The main board of the screenless device 101 may be provided with a short-distance communication module and a network connection module, so that the screenless device 101 has both short-distance communication capability and network connection capability. At the same time, the screenless device 101 is also provided with a memory to store usage data generated during its use or receive data sent by the server 103.
[0054] Those skilled in the art will know that Figure 1 The forms of the screenless device, control terminal device and server shown in the figure are merely illustrative and are not limited to the embodiments of the present disclosure.
[0055] This exemplary implementation will be described in detail below with reference to the accompanying drawings and embodiments.
[0056] First, a device access method is provided in an embodiment of the present disclosure, and the method can be executed by any screenless device.
[0057] Figure 3 A schematic diagram of a device access method in an embodiment of the present disclosure is shown. Figure 3 As shown, the device access method provided in the embodiment of the present disclosure includes the following steps S301 to S304.
[0058] S301, turning on the short-range communication module of the screenless device so that the screenless device can send a broadcast signal to the outside.
[0059] It should be noted that the short-range communication module can realize a direct connection between two electronic devices within a certain distance range.
[0060] In some embodiments, the short-range communication module may be a Bluetooth module, which may be configured to be discoverable so as to send a broadcast signal to the outside. Other devices other than the screenless device may scan the broadcast signal sent by the Bluetooth module so as to establish a Bluetooth connection with the screenless device through Bluetooth communication technology.
[0061] Exemplarily, the short-range communication module may also be an NFC module, a Wifi module (for example, through WLAN direct connection technology), or other modules capable of achieving short-range communication, and based on similar principles, the module sends broadcast signals to the outside, which is not elaborated in the embodiments of the present disclosure.
[0062] In some embodiments, the short-range communication module can be turned on simultaneously with the screenless device, and can be automatically turned off when not in use for a certain period of time, thereby saving power. When the screenless device is turned on and the short-range communication module is automatically turned off, the short-range communication module can be turned on again by triggering a specific physical button or combination of physical buttons in the screenless device.
[0063] In some embodiments, the working status of the short-range communication module can be displayed by an indicator light configured on a screenless device. For example, a specific indicator light can be turned off to show that the short-range communication module is in an off state, the indicator light can be flashed to show that the short-range communication module is in an on state and can send broadcast signals to the outside, and the indicator light can be always on to show that the short-range communication module is in a connected state. Of course, the working status of the short-range communication module can also be directly and intuitively displayed through voice prompts, or displayed by combining voice prompts and indicator lights, which will not be elaborated in the embodiments of the present disclosure.
[0064] S302, in response to a connection establishment request sent by the control end device, a short-distance communication connection is established with the control end device, and the connection establishment request is sent by the control end device to the screenless device after detecting a broadcast signal.
[0065] It should be noted that the control terminal device can be a smart terminal with a display screen, such as a smart phone or a tablet computer. It is understandable that the control terminal device is provided with a short-range communication module of the same type as the screenless device, so that the control terminal device can detect the broadcast signal emitted by the screenless device, and after detecting the broadcast signal emitted by the screenless device, send a connection establishment request to the screenless device (it can also be understood as sending a connection establishment request to the signal source of the broadcast signal).
[0066] The connection establishment request is used to request to establish a short-range communication connection based on short-range communication technology, such as a Bluetooth connection, between the control terminal device and the screenless device.
[0067] Still taking the Bluetooth module as an example, after the control end device scans the Bluetooth broadcast signal sent by the screenless device, it can directly send a connection establishment request to the screenless device, or it can send a Bluetooth connection establishment request to the screenless device in response to the user's confirmation operation on the Bluetooth broadcast signal. Among them, the Bluetooth broadcast signal can carry the identity of the screenless device, and the identity can show the name, model and other information of the screenless device, so that the user can confirm the source of the Bluetooth broadcast signal.
[0068] After receiving the connection establishment request sent by the control end device, the screenless device can establish a short-distance communication connection with the control end device. It is worth noting that since there is no display screen on the screenless device that can display various interactive information, the establishment process of the short-distance communication connection can be adopted without the need for interaction on the screenless device. Similarly, for the selection of the type of short-distance communication module, a short-distance communication module that supports this method can also be selected.
[0069] For example, by adopting a Bluetooth module that supports "Fast Connect" technology, devices can be connected directly without entering a pairing code, so that screenless devices do not need additional interactive operations on the display during the Bluetooth connection establishment process.
[0070] S303, receiving network connection information sent by the control terminal device via a short-distance communication connection.
[0071] It should be noted that the network connection information may include a network name (SSID) and a corresponding password (Password). The network connection information may be sent from the control terminal device to the screenless device via the short-distance communication connection established in S102.
[0072] For example, since the physical distance between the control terminal device and the screenless device is relatively close, it can be approximately considered that the screenless device can also scan the wireless network scanned by the control terminal device.
[0073] Therefore, the control end device can directly send the network name and corresponding password of the wireless network it is connected to as network connection information to the screenless device.
[0074] The control end device can also scan wireless networks, and the user can select a target wireless network for the screenless device to connect to from the scanned wireless networks, and enter a password corresponding to the target wireless network. After the user confirms the selected target wireless network and the corresponding password, the control end device can send the network name and the corresponding password of the target wireless network as network connection information to the screenless device.
[0075] S304, according to the network connection information, control the screenless device to access the network, and access the target server through the network.
[0076] For example, the screenless device can access the network according to the received network connection information (including the network name and the corresponding password), and access the target server through the network. The target server can transfer data with the screenless device through the network and send various program instructions to the screenless device.
[0077] Therefore, the method provided by the example of the present disclosure can enable the screenless device to access the network based on the network connection information assisted by the control end device, and then access the target server through the network, thereby providing a certain scalability for the functions of the screenless device.
[0078] To facilitate understanding, the following will provide a detailed introduction to how screenless devices access the network in combination with specific application scenarios.
[0079] Figure 4 A schematic diagram showing a specific process of a device accessing a network in an embodiment of the present disclosure is shown.
[0080] Here, the short-range communication module in the screenless device is a Bluetooth module as an example. After the Bluetooth module of the screenless device is turned on, the screenless device can broadcast Bluetooth signals to the outside. The control end device can scan the Bluetooth signals broadcast by the screenless device and establish a Bluetooth connection with the screenless device based on the broadcast Bluetooth signals.
[0081] Exemplarily, the control end device runs a client program for controlling the screenless device, and the client program can prompt and guide the user to establish a Bluetooth connection with the screenless device through the control end device.
[0082] After the control end device establishes a Bluetooth connection with the screenless device, the client program in the control end device can jump to the wifi connection interface, which can guide the user to select the wifi to which the screenless device is expected to connect.
[0083] For example, the control terminal device can scan nearby available Wi-Fi. Since the control terminal device is close to the screenless device, the available Wi-Fi near the control terminal device can also be understood as the available Wi-Fi near the screenless device.
[0084] The client program in the control terminal device can display an available wifi list to the user, and the list can show all scanned available wifi.
[0085] The user can select the Wi-Fi network to which the screenless device is expected to connect in the Wi-Fi list and enter the corresponding password.
[0086] After the user confirms the wifi name and password, the control end device can send network connection information including the wifi name and password to the screenless device, so that the screenless device can access the network according to the network connection information.
[0087] The above combined content illustrates the overall implementation process of the embodiment of the present disclosure. The following will illustrate various functions that can be implemented by the screenless device based on the target server with examples.
[0088] In some embodiments, during the operation of the screenless device, the screenless device can store usage data of the screenless device to the memory of the screenless device, and can upload the usage data to the target server in response to a data upload instruction for the usage data, so that the control end device can view the usage data by accessing the target server.
[0089] Exemplarily, the data upload instruction may be issued when the device is turned off, or may be issued when the device meets certain conditions (for example, the internal storage space is less than a specified size at regular intervals, etc.), and the embodiments of the present disclosure do not limit this.
[0090] Exemplarily, the usage data of a screenless device may include basic information of the screenless device (e.g., battery level, memory capacity, etc.), user operation information (e.g., records of instructions executed by the user, etc.), and other usage data generated during the use of the screenless device (depending on the type of screenless device).
[0091] The following will take the enlightenment device for children as an example to explain the data storage and uploading process in detail.
[0092] When the enlightenment machine is running, it can collect usage data generated by various types of children during operation and store it in the memory. When the enlightenment machine is turned off, the stored usage data can be uploaded to the target server corresponding to the enlightenment machine. After the usage data is successfully uploaded to the target server, the usage data stored locally in the memory can be deleted, thereby freeing up local storage space.
[0093] The control end device can obtain various usage data uploaded by the enlightenment device by accessing the target server. These usage data include but are not limited to: the learning data of the enlightenment device (including usage time, name of the question card used, knowledge points contained in the question card, etc.) and the user's work display data (including recorded audio files, audio types, question card names, audio duration, etc.).
[0094] More specifically, the usage data of the enlightenment machine device may include:
[0095] Basic data of the device. For example, network connection status (online / offline), battery level, remaining memory capacity, machine serial number, etc.
[0096] Cumulative usage data of the enlightenment machine and the usage data of each supporting question card. For example, the cumulative number of days of use, the cumulative duration of use, the completion percentage of each set of question cards, the name / cover of the most recently used question card, the name of the most recently learned knowledge point, the best learned knowledge point, and the recommended knowledge points to be learned, etc.
[0097] The audio data recorded by the Enlightenment device, for example, the audio name, cover, and audio length.
[0098] In addition to viewing the above usage data, the control end device can also retrieve the above usage data, save the above usage data locally on the control end device, and share the above usage data with other devices for viewing.
[0099] In some embodiments, the screenless device can also receive firmware upgrade instructions sent by the target server and perform corresponding firmware upgrades.
[0100] Specifically, the screenless device can respond to the firmware upgrade instruction sent by the target server to detect whether the screenless device is in an upgradeable state. If the screenless device is in an upgradeable state, the screenless device is controlled to execute the firmware upgrade instruction.
[0101] Exemplarily, it is possible to determine whether the screenless device is in an upgradeable state based on the power state of the screenless device. For example, if the screenless device is connected to an external power source, or the remaining power of the screenless device is greater than 20%, the screenless device is considered to be in an upgradeable state. This avoids a sudden power failure of the screenless device during the upgrade process, which may cause a system failure of the screenless device.
[0102] Exemplarily, controlling the screenless device to execute a firmware upgrade instruction may include any one or more of the following three methods:
[0103] Shutdown execution: The screenless device executes a firmware upgrade instruction in response to a shutdown instruction for the screenless device, and interrupts the execution of the firmware upgrade instruction in response to a power-on instruction for the screenless device.
[0104] Among them, when the execution of the firmware upgrade instruction is interrupted, the unfinished firmware upgrade instruction can be continued to be executed in response to the next shutdown instruction for the screenless device.
[0105] Power-on execution: The screenless device executes the firmware upgrade instruction in response to the power-on instruction for the screenless device.
[0106] Active execution: The screenless device responds to the active upgrade instruction sent by the target server and executes the firmware upgrade instruction, wherein the active upgrade instruction is sent by the control end device to the target server.
[0107] The execution method of the above firmware upgrade instruction can be pre-configured in the firmware upgrade instruction. The above three methods can be configured at the same time, or one or two of them can be configured at will.
[0108] When multiple modes are configured at the same time, the first mode triggered by the screenless device can be used to execute the firmware upgrade instruction. After the screenless device triggers the first mode, other modes will automatically become invalid to avoid conflicts between multiple execution modes.
[0109] Exemplarily, when the firmware upgrade instruction is configured with both active execution and power-on execution, after the screenless device receives the firmware upgrade instruction sent by the target server, if the user does not issue an active upgrade instruction through the control device before the screenless device is shut down, the firmware upgrade instruction will be automatically executed the next time the screenless device is turned on, and the user will not be able to issue an active upgrade instruction through the control device.
[0110] It is understandable that the shutdown execution method can prevent some unimportant firmware upgrades from affecting the normal use of screenless devices by users. Firmware upgrades are performed only when users do not need to use them. The startup execution method can be used for relatively important firmware upgrades to ensure that the device is upgraded before users can use it normally. The active execution method can be used for some optional firmware upgrades, allowing users to flexibly choose whether to upgrade and when to upgrade.
[0111] Still taking the enlightenment device for children as an example, during the execution of the firmware upgrade instructions of the enlightenment device, indicator lights and voice prompts can be used to enable users to understand the current upgrade progress at any time.
[0112] Specifically, the execution method for the above shutdown execution may include:
[0113] 1. Upgrade starts: After long pressing the power button on the device, the speaker of the device will give a voice prompt "Upgrading, I will go to rest after the upgrade is completed".
[0114] 2. Upgrading: At this time, the enlightenment machine equipment cannot be operated, and the blue light shows the breathing effect, which lasts for about 1 minute.
[0115] 3. Upgrade completed: The Enlightenment device speaker plays the shutdown sound effect and then shuts down.
[0116] The execution method for the above startup execution may include:
[0117] 1. Upgrade starts: The device speaker of the enlightenment machine will give a voice prompt "I am upgrading. Please play after hearing the ding-dong sound."
[0118] 2. Upgrading: At this time, the enlightenment machine equipment cannot be operated, and the blue light shows the breathing effect, which lasts for about 1 minute.
[0119] 3. Upgrade completed: The speaker of the enlightenment machine plays the sound effect "Ding Dong, the upgrade is complete, I wake up, let's play together".
[0120] 4. After the upgrade is completed, the enlightenment machine device automatically restarts and enters the system, which means the upgrade is successful.
[0121] The execution methods for the above active execution may include:
[0122] 1. Upgrade starts: The control device sends an active upgrade command to the target server. After receiving the active upgrade command sent by the control-end enlightenment device, the target server sends it to the enlightenment device. The enlightenment device speaker voice prompts "I am upgrading. After hearing the ding-dong sound, play again."
[0123] 2. Upgrading: At this time, the enlightenment machine equipment cannot be operated, and the blue light shows the breathing effect, which lasts for about 1 minute.
[0124] 3. Upgrade completed: The speaker of the enlightenment machine plays the sound effect "Ding Dong, the upgrade is complete, I wake up, let's play together".
[0125] 4. After the upgrade is completed, the enlightenment machine device automatically restarts and enters the system, which means the upgrade is successful.
[0126] In some embodiments, the screenless device can also receive the operating resource data sent by the target server, so as to add or upgrade the operating resource data stored in the screenless device. Among them, the operating resource data can be understood as data used to support the operation of the screenless device. By adding or upgrading the operating resource data, the functions of the screenless device can be expanded to a certain extent.
[0127] Exemplarily, when the screenless device detects that at least part of the operating resource data is missing from the memory of the screenless device, the screenless device can query at least part of the operating resource data in the target server. Wherein, at least part of the operating resource data includes data for supporting the operation of the screenless device. When at least part of the operating resource data exists in the target server, the screenless device can receive at least part of the operating resource data sent by the target server, and store at least part of the operating resource data in the memory.
[0128] Based on this method, the screenless device can actively query and download the corresponding operating resource data from the target server when the operating resource data is missing, thereby ensuring the normal operation of the screenless device.
[0129] Exemplarily, the screenless device can receive the designated operation resource data sent by the target server and store the designated operation resource data in the memory of the screenless device, wherein the designated operation resource data is the operation resource data corresponding to the designated data identifier pre-stored in the target server, and the designated data identifier is obtained by the control terminal device and sent to the target server.
[0130] Based on this method, the screenless device can obtain the operating resource data specified by the user from the target server, thereby realizing the specific functions expected by the user and, to a certain extent, avoiding the waste of memory space caused by pre-installing too much operating resource data.
[0131] Exemplarily, the screenless device can query whether the local operating resource data stored in the memory of the screenless device is consistent with the cloud operating resource data stored in the target server in response to a shutdown instruction for the screenless device or in response to the screenless device being in a standby state. Receive the cloud resource data sent by the target server that is inconsistent with the local operating resource data, and use the received cloud resource data to overwrite the corresponding local operating resource data in the memory.
[0132] Based on this method, the screenless device can use the device's idle time to update the operating resource data stored in its memory without the user's perception, so as to improve the user experience.
[0133] Still taking the enlightenment machine for children as an example, the operation resource data of the enlightenment machine can be question card resource data, such as audio files of the question stem / answers, correct / incorrect points, question card name / cover, and other data contained in the question card.
[0134] Based on the above implementation, after a question card is inserted into the enlightenment machine, if the question card resource data corresponding to the question card is not found locally on the enlightenment machine, the question card resource data can be searched in the target server and downloaded locally to ensure normal use of the question card.
[0135] The user can also scan the question card identifier (for example, a QR code or barcode) corresponding to the question card through the control terminal device and send it to the target server, so that the target server can send the question card resource data corresponding to the question card identifier to the enlightenment machine device, thereby completing the installation of the new question card resource.
[0136] In addition, when the enlightenment machine device is in standby mode or is about to shut down, the enlightenment machine device can check the question card resources stored locally in its memory, and complete the update of the locally stored question card resources by comparing them with the question card resources in the target server.
[0137] Based on the same inventive concept, the present disclosure also provides a device access device, such as the following embodiment. Figure 3 The method embodiment shown is similar to that shown in FIG. 1 , so the implementation of the device access apparatus embodiment can refer to the above Figure 3 The implementation of the illustrated method embodiment will not be described in detail in detail.
[0138] Figure 5 FIG. 2 is a schematic diagram showing the structure of a device access apparatus in an embodiment of the present disclosure. Figure 5 As shown, the device access apparatus 500 includes: an opening module 501 , an establishing module 502 , a receiving module 503 , and an access module 504 .
[0139] Among them, the activation module 501 is used to activate the short-range communication module of the screenless device so that the screenless device can send broadcast signals to the outside.
[0140] The establishing module 502 is used to establish a short-distance communication connection with the control end device in response to a connection establishment request sent by the control end device. The connection establishment request is sent by the control end device to the screenless device after detecting the broadcast signal.
[0141] The receiving module 503 is used to receive the network connection information sent by the control terminal device through the short-distance communication connection.
[0142] The access module 504 is used to control the screenless device to access the network according to the network connection information, and access the target server through the network.
[0143] In some embodiments, the device access apparatus 500 further includes:
[0144] A storage module, used to store usage data of the screenless device to a memory of the screenless device during operation of the screenless device;
[0145] The uploading module is used to upload the usage data to the target server in response to the data uploading instruction for the usage data, so that the control end device can view the usage data by accessing the target server.
[0146] In some embodiments, the device access apparatus 500 further includes:
[0147] A first detection module, configured to detect whether the screenless device is in an upgradeable state in response to a firmware upgrade instruction issued by a target server;
[0148] The control module is used to control the screenless device to execute firmware upgrade instructions when the screenless device is in an upgradeable state.
[0149] In some embodiments, the control module is specifically configured to:
[0150] In response to a shutdown instruction for the screenless device, executing a firmware upgrade instruction, and in response to a power-on instruction for the screenless device, interrupting the execution of the firmware upgrade instruction; and / or,
[0151] In response to a power-on instruction for the screenless device, executing a firmware upgrade instruction; and / or,
[0152] In response to the active upgrade instruction sent by the target server, the firmware upgrade instruction is executed, wherein the active upgrade instruction is sent by the control end device to the target server.
[0153] In some embodiments, the device access apparatus 500 further includes:
[0154] A second detection module is used to query at least part of the operating resource data in the target server when it is detected that at least part of the operating resource data is missing in the memory of the screenless device, where at least part of the operating resource data includes data for supporting the operation of the screenless device;
[0155] The storage module is also used to receive at least part of the operating resource data sent by the target server and store at least part of the operating resource data in the memory when at least part of the operating resource data exists in the target server.
[0156] In some embodiments, the device access apparatus 500 further includes:
[0157] The storage module is further used to receive the specified operation resource data sent by the target server, and store the specified operation resource data in the memory of the screenless device;
[0158] The designated operation resource data is the operation resource data corresponding to the designated data identifier pre-stored in the target server, and the designated data identifier is acquired by the control terminal device and sent to the target server.
[0159] In some embodiments, the device access apparatus 500 further includes:
[0160] A query module, for querying whether the local operating resource data stored in the memory of the screenless device is consistent with the cloud operating resource data stored in the target server in response to a shutdown instruction for the screenless device or in response to the screenless device being in a standby state;
[0161] The overwriting module is also used to receive cloud resource data sent by the target server that is inconsistent with the local operating resource data, and use the received cloud resource data to overwrite the corresponding local operating resource data in the memory.
[0162] Refer to the following Figure 6 hereinafter, an electronic device 600 capable of implementing the embodiments of the present disclosure is described. Figure 6 The electronic device 600 shown is only an example and should not bring any limitation to the functions and applicable scope of the embodiments of the present disclosure.
[0163] like Figure 6 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include but are not limited to: at least one processor 610, at least one memory 620, and a bus 630 connecting different system components (including the memory 620 and the processor 610).
[0164] The memory stores program codes, which can be executed by the processor 610, so that the processor 610 executes the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of the present disclosure.
[0165] In some embodiments, the processor 610 may further perform the following steps of the above method embodiment:
[0166] Turn on the short-range communication module of the screenless device to enable the screenless device to send broadcast signals to the outside;
[0167] In response to a connection establishment request sent by the control terminal device, a short-distance communication connection is established with the control terminal device, the connection establishment request being sent by the control terminal device to the screenless device after detecting a broadcast signal;
[0168] Receive network connection information sent by the control terminal device via a short-distance communication connection;
[0169] According to the network connection information, the screenless device is controlled to access the network and access the target server through the network.
[0170] The memory 620 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 6201 and / or a cache memory 6202 , and may further include a read-only memory (ROM) 6203 .
[0171] The memory 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0172] Bus 630 may be a bus representing one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
[0173] The electronic device 600 may also communicate with one or more external devices 640 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 600, and / or any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 660. Figure 6 As shown, the network adapter 660 communicates with other modules of the electronic device 600 via the bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0174] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0175] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, which may be a readable signal medium or a readable storage medium. A program product capable of implementing the above-mentioned method of the present disclosure is stored thereon. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above-mentioned "Exemplary Method" section of the present disclosure.
[0176] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. A device access method, It is characterized in that Applicable to screenless devices, including: Turning on the short-range communication module of the screenless device so that the screenless device sends a broadcast signal to the outside; In response to a connection establishment request sent by a control terminal device, a short-distance communication connection is established with the control terminal device, wherein the connection establishment request is sent by the control terminal device to the screenless device after detecting the broadcast signal; Receiving network connection information sent by the control terminal device through the short-distance communication connection; According to the network connection information, the screenless device is controlled to access the network and access the target server through the network.
2. The method according to claim 1, It is characterized in that The method further comprises: During the operation of the screenless device, storing usage data of the screenless device in a memory of the screenless device; In response to a data upload instruction for the usage data, the usage data is uploaded to the target server, so that the control end device can view the usage data by accessing the target server.
3. The method according to claim 1, It is characterized in that The method further comprises: In response to the firmware upgrade instruction sent by the target server, detecting whether the screenless device is in an upgradeable state; When the screenless device is in an upgradeable state, the screenless device is controlled to execute the firmware upgrade instruction.
4. The method according to claim 3, It is characterized in that The controlling the screenless device to execute the firmware upgrade instruction includes: In response to a shutdown instruction for the screenless device, executing the firmware upgrade instruction, and in response to a power-on instruction for the screenless device, interrupting the execution of the firmware upgrade instruction; and / or, In response to a power-on instruction for the screenless device, executing the firmware upgrade instruction; and / or, In response to the active upgrade instruction sent by the target server, the firmware upgrade instruction is executed, wherein the active upgrade instruction is sent by the control end device to the target server.
5. The method according to claim 1, It is characterized in that The method further comprises: In the case of detecting that at least part of the operating resource data is missing from the memory of the screenless device, querying the target server for the at least part of the operating resource data, wherein the at least part of the operating resource data includes data for supporting the operation of the screenless device; In a case where the at least part of the operating resource data exists in the target server, the at least part of the operating resource data sent by the target server is received, and the at least part of the operating resource data is stored in the memory.
6. The method according to claim 1, It is characterized in that The method further comprises: Receiving the designated operation resource data sent by the target server, and storing the designated operation resource data in the memory of the screenless device; The designated operation resource data is the operation resource data corresponding to the designated data identifier pre-stored in the target server, and the designated data identifier is acquired by the control terminal device and sent to the target server.
7. The method according to claim 1, It is characterized in that The method further comprises: In response to a shutdown instruction for the screenless device or in response to the screenless device being in a standby state, querying whether local operating resource data stored in a memory of the screenless device is consistent with cloud operating resource data stored in the target server; Receive cloud resource data sent by the target server that is inconsistent with the local operating resource data, and overwrite the corresponding local operating resource data in the memory with the received cloud resource data.
8. A device access device, It is characterized in that Applicable to screenless devices, including: An activation module, used to activate the short-range communication module of the screenless device so that the screenless device can send a broadcast signal externally; An establishing module, configured to establish a short-distance communication connection with the control terminal device in response to a connection establishment request sent by the control terminal device, wherein the connection establishment request is sent by the control terminal device to the screenless device after detecting the broadcast signal; A receiving module, used for receiving the network connection information sent by the control terminal device through the short-distance communication connection; The access module is used to control the screenless device to access the network according to the network connection information, and access the target server through the network.
9. An electronic device, It is characterized in that include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 7 by executing the executable instructions.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
