CN114697084A - Data access method for sewing equipment - Google Patents
Data access method for sewing equipment Download PDFInfo
- Publication number
- CN114697084A CN114697084A CN202210249796.9A CN202210249796A CN114697084A CN 114697084 A CN114697084 A CN 114697084A CN 202210249796 A CN202210249796 A CN 202210249796A CN 114697084 A CN114697084 A CN 114697084A
- Authority
- CN
- China
- Prior art keywords
- user
- password
- authority
- sewing
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000009958 sewing Methods 0.000 title claims abstract description 283
- 238000000034 method Methods 0.000 title claims abstract description 93
- 238000012795 verification Methods 0.000 claims abstract description 106
- 238000013475 authorization Methods 0.000 claims description 80
- 238000004891 communication Methods 0.000 claims description 34
- 230000002159 abnormal effect Effects 0.000 claims description 7
- 238000012545 processing Methods 0.000 description 23
- 238000010586 diagram Methods 0.000 description 12
- 238000004590 computer program Methods 0.000 description 11
- 230000008569 process Effects 0.000 description 8
- 230000000694 effects Effects 0.000 description 6
- 230000001413 cellular effect Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000004753 textile Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/083—Network architectures or network communication protocols for network security for authentication of entities using passwords
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Sewing Machines And Sewing (AREA)
Abstract
The application provides a data access method for sewing equipment, in the method, a user directly inputs an account and a password, after the sewing equipment determines that the account and the password pass verification, the user is further determined to have access to data, the current time is within a right validity period, and the timing duration does not reach the single-use duration, so that the user can access the data of the sewing equipment. According to the scheme, whether the user can access the data is determined only by inputting the account and the password by the user, so that the data access efficiency is effectively improved.
Description
Technical Field
The application relates to the technical field of sewing, in particular to a data access method of sewing equipment.
Background
With the rapid development of science and technology, more and more patterns can be sewn by sewing equipment, and data in the sewing equipment, particularly pattern data, are designed by designers and need to be protected.
In the prior art, a password is usually set for protecting data in sewing equipment. When data in the sewing equipment needs to be accessed, a manager needs to input a password on the sewing equipment so as to access the data. After the data access is completed, the manager can perform locking operation, and other users cannot access the data.
In summary, the existing data access method for the sewing equipment needs the whole participation of the manager, so that the data access efficiency is low.
Disclosure of Invention
The embodiment of the application provides a data access method, a data access device, equipment and a medium for sewing equipment, and is used for solving the problem that the data access efficiency is low due to the fact that management personnel need to participate in the whole process in the existing data access method for sewing equipment.
In a first aspect, an embodiment of the present application provides a data access method for a sewing device, which is applied to a sewing device, and the method includes:
acquiring an account and a password input by a user;
if the account number and the password pass the verification, acquiring the authority level, the single-use duration and the authority validity period of the user;
judging whether the user has the authority to access data or not according to the authority level;
if the user has the authority to access the data, starting a timer to time to obtain the timing duration, and judging whether the current time is within the authority validity period or not according to the authority validity period;
if the current time length is within the authority validity period, judging whether the timing time length reaches the single-use time length or not according to the single-use time length;
and if the timing duration does not reach the single-use duration, authorizing the user to access the data of the sewing equipment.
In a specific embodiment, after the account and the password input by the user are acquired, the method further includes:
judging whether the communication between the sewing equipment and the server is normal or not;
if the communication between the sewing equipment and the server is normal, sending a verification request to the server, wherein the verification request comprises the account number, the password and the identification of the sewing equipment;
receiving a verification result returned by the server, wherein the verification result is used for indicating whether the account and the password pass the verification;
correspondingly, if the account and the password pass the verification, the authority level, the single-use duration and the authority validity period of the user are obtained, which includes:
and if the verification result indicates that the account and the password are verified, receiving the authority level, the single-use duration and the authority validity period of the user returned by the server.
In one embodiment, the method further comprises:
if the communication between the sewing equipment and the server is abnormal, verifying the account and the password according to the account and the password stored in the sewing equipment;
correspondingly, the acquiring the permission level, the single-use duration and the permission validity period of the user includes:
according to the account number of the user and the authority information of each user pre-stored in the sewing equipment, the authority level of the user, the single-use duration and the authority validity period are obtained, and the authority information of each user comprises: the account number, the password, the authority validity period, the authority level and the single-use duration of the user.
In one embodiment, the method further comprises:
if the account and the password are not verified, outputting prompt information, wherein the prompt information is used for prompting the user that the account or the password are incorrect.
In one embodiment, the method further comprises:
and if the user does not have the right to access the data, or the current time length is not within the right validity period, or the timing time length reaches the single-use time length, prohibiting the user from accessing the data of the sewing equipment.
In one embodiment, the method further comprises:
receiving authority information of at least one user sent by a server;
and updating the original authority information of the at least one locally stored user according to the authority information of the at least one user.
In a second aspect, an embodiment of the present application provides a data access method for a sewing device, which is applied to a terminal device of a manager, and the method includes:
obtaining authorization information of a user set by a manager, wherein the authorization information comprises: the account number, the password, the authority validity period, the authority level, the single-use duration and the identification of the sewing equipment with accessible data of the user;
and sending the authorization information to a server.
In a third aspect, an embodiment of the present application provides a data access method for a sewing device, which is applied to a server, and the method includes:
receiving a verification request sent by sewing equipment, wherein the verification request comprises an account number, a password and an identifier of the sewing equipment of a user;
verifying the account and the password of the user in the verification request according to the authorization information of at least one user stored in the server to obtain a verification result, wherein the verification result is used for indicating whether the account and the password of the user in the verification request pass verification or not, and the authorization information of each user comprises the account, the password, the authority validity period, the authority level, the single-use duration of the user and the identification of the sewing equipment capable of accessing data;
and returning the verification result to the sewing equipment.
In one embodiment, the method further comprises:
and if the account number and the password of the user in the verification request pass the verification, returning the authority level, the single-use duration and the authority validity period of the user to the sewing equipment.
In one embodiment, the method further comprises:
receiving authorization information of at least one user sent by terminal equipment of a manager, wherein the authorization information of each user comprises an account number, a password, an authority validity period, an authority level, single-use duration and an identification of sewing equipment capable of accessing data;
updating the original authorization information of the at least one user, which is stored locally, according to the authorization information of the at least one user;
and sending the authority information of at least one user to the corresponding sewing equipment according to the identification of the sewing equipment of the data accessible to each user, wherein each user authority information comprises an account number, a password, an authority validity period, an authority level and single-use duration of the user.
In one embodiment, the method further comprises:
aiming at each sewing device, acquiring preset password updating time of the sewing device;
detecting the time length between the current time and the time of updating the password of the user last time at intervals of preset time length, and accumulating the preset time length to obtain accumulated time length;
judging whether the accumulated time length is greater than or equal to the password updating time length;
if the accumulated time length is greater than or equal to the password updating time length, updating the password of the user;
and sending the updated authority information of the user to the sewing equipment which can access the data by the user.
In a fourth aspect, an embodiment of the present application provides a data access device for a sewing machine, including:
the acquisition module is used for acquiring an account and a password input by a user;
the processing module is further configured to obtain the permission level, the single-use duration and the permission validity period of the user if the account number and the password pass verification;
the processing module is used for judging whether the user has the authority to access the data or not according to the authority level;
the processing module is further configured to start a timer to count time to obtain a timing duration if the user has the right to access the data, and determine whether the current time is within the right validity period according to the right validity period;
the processing module is further configured to determine whether the timing duration reaches the single-use duration according to the single-use duration if the current duration is within the authority validity period;
the processing module is further used for authorizing the user to access the data of the sewing equipment if the timing duration does not reach the single-use duration.
In a fifth aspect, an embodiment of the present application provides a data access device for a sewing machine, including:
the acquisition module is used for acquiring the authorization information of the user set by the manager, wherein the authorization information comprises: the account number, the password, the authority validity period, the authority level, the single-use duration and the identification of the sewing equipment with accessible data of the user;
and the sending module is used for sending the authorization information to a server.
In a sixth aspect, an embodiment of the present application provides a data access device for a sewing machine, including:
the sewing machine comprises a receiving module, a judging module and a processing module, wherein the receiving module is used for receiving a verification request sent by sewing equipment, and the verification request comprises an account number, a password and an identifier of the sewing equipment of a user;
the processing module is used for verifying the account and the password of the user in the verification request according to the authorization information of at least one user stored in the server to obtain a verification result, wherein the verification result is used for indicating whether the account and the password of the user in the verification request pass verification or not, and the authorization information of each user comprises the account, the password, the authority validity period, the authority level, the single-use duration and the identification of the sewing equipment capable of accessing data;
and the sending module is used for returning the verification result to the sewing equipment.
In a seventh aspect, an embodiment of the present application provides a sewing apparatus, including:
a processor, a memory, a communication interface;
the memory is used for storing executable instructions of the processor;
wherein the processor is configured to perform the sewing device data access method of any of the first aspect via execution of the executable instructions.
In an eighth aspect, an embodiment of the present application provides a terminal device, including:
a processor, a memory, a communication interface;
the memory is used for storing executable instructions of the processor;
wherein the processor is configured to perform the sewing device data access method of the second aspect via execution of the executable instructions.
In a ninth aspect, an embodiment of the present application provides a server, including:
a processor, a memory, a communication interface;
the memory is used for storing executable instructions of the processor;
wherein the processor is configured to perform the sewing device data access method of any of the third aspects via execution of the executable instructions.
In a tenth aspect, an embodiment of the present application provides a readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the data access method for a sewing device according to any one of the first to third aspects.
In an eleventh aspect, an embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program is used to implement the data access method for the sewing device according to any one of the first to third aspects.
According to the data access method, device, equipment and medium for the sewing equipment, the user directly inputs the account and the password, the sewing equipment determines that the account and the password pass the verification, and then determines that the user has the right to access the data, the current time is within the right validity period, and the timing duration does not reach the single use duration, so that the user can access the data of the sewing equipment. According to the scheme, whether the user can access the data is determined only by inputting the account number and the password by the user, so that the data access efficiency is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a schematic flow chart of a first embodiment of a data access method for a sewing machine provided by the present application;
FIG. 2 is a schematic flow chart of a second embodiment of a data access method for a sewing machine according to the present application;
FIG. 3 is a schematic flow chart of a third embodiment of a data access method for a sewing machine according to the present application;
FIG. 4 is a schematic flow chart illustrating a fourth embodiment of a data access method for a sewing machine according to the present application;
FIG. 5 is a schematic flow chart illustrating a fifth embodiment of a data access method for a sewing machine according to the present application;
FIG. 6 is a schematic structural diagram of a first embodiment of a data access device of a sewing machine provided by the present application;
FIG. 7 is a schematic structural diagram of a second embodiment of a data access device of a sewing machine according to the present application;
FIG. 8 is a schematic structural diagram of a third embodiment of a data access device of a sewing machine provided by the present application;
FIG. 9 is a schematic view of a sewing machine according to the present application;
fig. 10 is a schematic structural diagram of a terminal device provided in the present application;
fig. 11 is a schematic structural diagram of a server according to the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by persons skilled in the art based on the embodiments in the present application in light of the present disclosure, are within the scope of protection of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the above-described drawings (if any) are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
With the development of science and technology and the improvement of living standard of people, people have higher and higher requirements on patterns on textiles such as clothes, bed sheets and the like, so that the patterns which can be realized by sewing equipment are more and more. Data in sewing equipment, especially pattern data, is the vital data for embroidery factory, and is designed by designer and needs data protection.
The existing data access method for the sewing equipment generally adopts a mode of setting a password, and when the data in the sewing equipment needs to be accessed, a manager needs to input the password on the sewing equipment so as to access the data. In the data access process, a manager is required to be present, so that after the data access is completed, the manager can perform locking operation, and other users cannot access the data. The existing data access method of the sewing equipment needs the whole-course participation of managers, so that the problem of low data access efficiency is caused.
In order to reduce labor cost and improve data access efficiency, the inventor finds that a user can input an account and a password without the presence of a manager, and the sewing device determines whether the user can access data or not. The sewing equipment firstly verifies the account number and the password, and after the verification is passed, whether the user has the authority to access the data is determined according to the authority level, the single-use duration and the authority validity period of the user. In addition, in order to prevent data insecurity caused by password leakage, the server can also automatically update the password of the user, and the password input by the user during data access is also the updated password. Based on the inventive concept, the data access scheme of the sewing device in the application is designed.
By way of example, the following describes an application scenario of the data access method for a sewing device provided in the present application, where the application scenario may include: a manager, a terminal device of the manager, a server, a user and a sewing device.
Illustratively, in the application scenario, before a user wants to access data, an administrator needs to set the authority, and the administrator can set authorization information through a terminal device, including: the account number, the password, the authority validity period, the authority level, the single-use duration and the identification of the sewing equipment with accessible data of the user. And then sends the authorization information to the server.
After receiving the authorization information sent by the terminal equipment, the server updates the original authorization information of the user stored locally, and sends the authority information of the user to the corresponding sewing equipment according to the identification of the sewing equipment with accessible data, wherein the authority information comprises: the account number, the password, the authority validity period, the authority level and the single-use duration of the user.
And after receiving the authority information sent by the server, the sewing equipment updates the original authority information of the user stored locally.
When a user wants to access data, an account number and a password are input on the sewing equipment, the sewing equipment can judge whether the communication with the server is normal or not, when the communication is normal, the sewing equipment sends the account number, the password and the identification of the sewing equipment to the server for verification, the server returns the verification result to the sewing equipment, and after the server passes the verification, the server can also send the permission level, the single-use duration and the permission validity period of the user to the sewing equipment. When the communication is abnormal, the sewing equipment verifies the account and the password according to the account and the password stored by the sewing equipment.
And when the verification fails, outputting prompt information to prompt the user that the account number or the password is incorrect.
When the verification is passed, whether the user has the authority to access the data or not is judged, timing is carried out when the user has the authority to access the data, whether the current time is in the authority valid period or not is judged, whether the timing duration reaches the single-use duration or not is judged when the current time is in the authority valid period, and the user can access the data when the timing duration does not reach the single-use duration. And if the user does not have the authority to access the data, or the current time length is not within the authority validity period, or the timing time length reaches the single-use time length, forbidding the user to access the data of the sewing equipment.
In addition, in order to prevent the password from being leaked, the server can update the password, the server can determine whether to update the password according to the password updating time of the sewing equipment at intervals, and after the password is updated, the updated user authority information is sent to the sewing equipment which can access data by the user. And after receiving the information, the sewing equipment updates the original authority information of the user which is stored locally.
It should be noted that the terminal device includes, but is not limited to, a device that communicates via a data connection/Network and/or via a Wireless interface, such as a device for a cellular Network or a Wireless Local Area Network (WLAN). A terminal device arranged to communicate over a wireless interface may be referred to as a "wireless communication terminal", "wireless terminal", or "mobile terminal". Examples of mobile terminals include, but are not limited to, satellite or cellular telephones; personal Communications Systems (PCS) terminals that may combine cellular radiotelephones with data processing, facsimile, and data Communications capabilities; a Personal Digital Assistant (PDA) that may include a radiotelephone, pager, Internet/intranet access, Web browser, notepad, calendar, and/or Global Positioning System (GPS) receiver; and conventional laptop and/or palmtop receivers or other electronic devices that include a radiotelephone transceiver. The access terminal may be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with Wireless communication function, a computing device or other processing device connected to a Wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a 5G network, a terminal device in a satellite network or a terminal device in a PLMN for future evolution, etc. The terminal equipment can be a smart phone or a computer, and the embodiment of the application does not limit the terminal equipment and can determine the terminal equipment according to actual requirements.
A server is a device that provides computing or application services to other clients (e.g., terminals such as PCs, smart phones, ATMs, etc., and even large devices such as train systems) in a network. In the embodiment of the present application, the server has a function of verifying an account number and a password, a function of updating the password, a transmission and reception function, and the like.
It should be noted that, in the embodiment of the present application, actual forms of various devices included in an application scenario are not limited, and an interaction manner between the devices is also not limited, and in a specific application of a scheme, the setting may be performed according to actual requirements.
The technical solution of the present application will be described in detail below with reference to specific examples. It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 1 is a schematic flowchart of a first embodiment of a data access method for a sewing machine provided in the present application, and as shown in fig. 1, the data access method for a sewing machine specifically includes the following steps:
s101: and acquiring an account number and a password input by a user.
When a user wants to access data in the sewing device, the manager can be inquired about the password, and then an account number and the password can be input on the sewing device.
In the step, after the user inputs the account and the password, the sewing equipment can acquire the account and the password input by the user so as to verify the account and the password in the following process.
It should be noted that the user may input the account number and the password by physical keys on the sewing device. If the sewing device has an operable panel, the user may enter the account number and password through the operable panel on the sewing device. The embodiment of the application does not limit the mode of inputting the account number and the password by the user, and can be selected according to actual conditions.
S102: and if the account number and the password pass the verification, acquiring the authority level, the single-use time length and the authority validity period of the user.
In the step, after the sewing equipment acquires the account and the password input by the user, the account and the password need to be verified, the account and the password can be uploaded to the server and verified by the server, and the account and the password can also be verified according to the account and the password stored by the server. If the account number and the password pass the verification, the authority level, the single-use time length and the authority validity period of the user can be obtained through the server or the data stored in the server, so that whether the user can access the data of the sewing equipment or not can be determined subsequently.
S103: and judging whether the user has the authority to access the data or not according to the authority level.
In the step, the sewing equipment acquires the authority level of the user, the single-time use duration and the authority valid period, and judges whether the user has the authority to access the data or not according to the authority level.
Specifically, the number of the permission levels is multiple, the levels are from low to high, and when the permission level is the lowest level, the user does not have permission to access data; when the permission level is a level other than the level of the lowest permission, the user has permission to access the data.
Illustratively, the number of the permission levels is 6, and the permission levels are arranged in the order from low to high: no authorization level, level one, level two, level three, level four, level five. When the authority level of the user is the unauthorized level, the user does not have the authority to access the data; when the authority level of the user is any one of level one, level two, level three, level four and level five, the user has the authority to access the data.
It should be noted that the above example is only an example of the authority levels, and the number of the authority levels, the level names, and the like are not limited in the embodiment of the present application, and may be set according to actual situations.
S104: if the user has the authority to access the data, a timer is started to time to obtain the timing duration, and whether the current time is within the authority validity period or not is judged according to the authority validity period.
In this step, after the sewing device determines whether the user has the right to access the data, if the user has the right to access the data, it is necessary to determine whether the user's right is expired, and according to the right validity period, it is determined whether the current time is within the right validity period. Meanwhile, a timer is started to time to obtain the timing duration, so that whether the user can access the data is judged according to the timing duration.
Illustratively, the authority validity period is 1/month 1/2020 to 1/month 1/2021, and the current time is 5/month 1/2020, indicating that the current time is within the authority validity period. The right validity period is from 1/7/2020 to 1/7/2021, and the current time is 1/8/2021, indicating that the current time is not within the right validity period.
It should be noted that the above example is only an example of the authority limit period and the current time, and the authority limit period, the current time, and the like are not limited in the embodiment of the present application and can be set and determined according to actual situations.
S105: and if the current time length is within the authority validity period, judging whether the timing time length reaches the single-use time length or not according to the single-use time length.
In this step, after the sewing device determines whether the current time is within the authority validity period, if the current time is within the authority validity period and indicates that the authority of the user is not due, it determines whether the timing time reaches the single-use time according to the single-use time.
Illustratively, the single-use duration is 1 hour, the timing duration is 10 seconds, and the timing duration is shorter than the single-use duration. The single-use duration is 30 minutes, the timing duration is 30 minutes, and the timing duration reaches the single-use duration.
It should be noted that the above example is only an example of the single-use time length and the timing time length, and the single-use time length, the timing time length, and the like are not limited in the embodiment of the present application, and can be set and determined according to actual situations.
S106: and if the timing duration does not reach the single-use duration, authorizing the user to access the data of the sewing equipment.
In this step, after the sewing device judges whether the timing duration reaches the single use duration, if the timing duration does not reach the single use duration, the user is authorized to access the data of the sewing device, and the user can access the data of the sewing device.
It should be noted that, after the sewing device authorizes the user to access the data of the sewing device, the sewing device also monitors whether the timing duration reaches the single use duration in real time, and when the timing duration reaches the single use duration, the user is prohibited from accessing the data of the sewing device.
According to the data access method for the sewing equipment, a user directly inputs an account number and a password on the sewing equipment, and after the authentication of the account number and the password is confirmed, whether the user can access the data is confirmed according to the authority level, the single-use time length and the authority validity period of the user. Compared with the prior art that management personnel need to participate in the whole process, the scheme only needs the user to input the account and the password, and the data access efficiency is effectively improved.
Fig. 2 is a schematic flowchart of a second embodiment of the data access method for the sewing device provided by the present application, and as shown in fig. 2, after the sewing device obtains the account and the password input by the user, the data access method for the sewing device further includes the following steps:
s201: and judging whether the communication between the sewing equipment and the server is normal or not.
In this step, after the sewing device obtains the account and the password input by the user, the account and the password need to be verified, and whether the communication between the sewing device and the server is normal or not can be judged to determine whether the communication is verified through the server or whether the communication is verified by the sewing device.
S202: and if the communication between the sewing equipment and the server is normal, sending a verification request to the server.
In the step, after the sewing device judges whether the communication between the sewing device and the server is normal, if the communication between the sewing device and the server is normal and the account number and the password need to be verified through the server, a verification request is sent to the server, wherein the verification request comprises the account number, the password and the identification of the sewing device.
S203: and receiving a verification request sent by the sewing equipment.
S204: and verifying the account and the password of the user in the verification request according to the authorization information of at least one user stored in the server to obtain a verification result.
S205: and returning the verification result to the sewing equipment.
In the steps, after the sewing equipment sends the verification request to the server, the server can receive the verification request sent by the sewing equipment, and the verification request comprises the account number, the password and the identification of the sewing equipment of the user. And then according to the authorization information of at least one user stored in the server, verifying the account and the password of the user to obtain a verification result, wherein the verification result is used for indicating whether the account and the password of the user pass the verification, and the authorization information of each user comprises the account, the password, the authority validity period, the authority level, the single-use duration of the user and the identification of the sewing equipment capable of accessing data.
Specifically, the server needs to search whether authorization information containing the account of the user and the identification of the sewing device exists in locally stored authorization information according to the account of the user and the identification of the sewing device in the verification request, and the fact that the verification fails cannot be found. If the password is found, whether the password in the verification request is the same as the password in the authorization information is determined, if not, the verification is not passed, and if the password is the same, the verification is passed. And then the verification result is sent to the sewing equipment, so that the subsequent sewing equipment can determine the next action according to the verification result.
S206: and if the account number and the password of the user in the verification request pass the verification, returning the authority level, the single-use duration and the authority validity period of the user to the sewing equipment.
In this step, after the server verifies the account and the password of the user, if the account and the password of the user pass the verification, the sewing device needs to determine whether the user can access the data according to the authority level, the single-use duration and the authority validity period of the user, so that the server sends the authority level, the single-use duration and the authority validity period of the user to the sewing device.
S207: and receiving the verification result returned by the server.
In the step, after the server returns the verification result to the sewing equipment, the sewing equipment receives the verification result returned by the server, and the verification result is used for indicating whether the account number and the password pass the verification or not.
S208: and if the verification result indicates that the account and the password are verified, receiving the authority level, the single-use time length and the authority validity period of the user returned by the server.
In this step, after the sewing device receives the verification result, if the verification result indicates that the account and the password are verified to be passed, the server returns the authority level, the single-use duration and the authority validity period of the user to the sewing device, and the sewing device can receive the authority level, the single-use duration and the authority validity period of the user returned by the server, so as to determine whether the user can access the data subsequently.
According to the data access method for the sewing equipment, the account number and the password of the user are verified through the server, and the sewing equipment determines whether the account number and the password of the user pass the verification according to the verification result returned by the server, so that the data safety is effectively guaranteed.
Fig. 3 is a schematic flow diagram of a third embodiment of the data access method for a sewing device provided in the present application, and as shown in fig. 3, on the basis of the foregoing embodiment, after the sewing device determines whether its own communication with the server is normal, the data access method for a sewing device further includes the following steps:
s301: and if the communication between the sewing equipment and the server is abnormal, verifying the account and the password according to the account and the password stored in the sewing equipment.
In the step, after the sewing device judges whether the communication between the sewing device and the server is normal, if the communication between the sewing device and the server is abnormal, the account and the password are verified according to the account and the password stored in the sewing device if the communication between the sewing device and the server is abnormal.
S302: according to the account number of the user, the authority level, the single-use duration and the authority validity period of the user are obtained according to the authority information of each user pre-stored in the sewing equipment.
In this step, if the account number and the password of the user pass the verification, the sewing device needs to judge whether the user can access the data, and the authority level of the user, the single use duration and the authority validity period of each user need to be acquired according to the account number of the user and the authority information of each user pre-stored in the sewing device, and the authority information of each user includes: the account number, the password, the authority validity period, the authority level and the single-use duration of the user. So that the subsequent sewing equipment can determine whether the user can access the data according to the authority level of the user, the single-use time length and the authority validity period.
According to the data access method for the sewing equipment, when the sewing equipment is abnormally communicated with the server, the sewing equipment verifies the account and the password of the user according to the account and the password stored by the sewing equipment, acquires the authority level, the single-use time length and the authority validity period of the user from the data stored by the sewing equipment, ensures that the account and the password can be verified and whether the data can be accessed or not under the condition of network disconnection or offline, and simultaneously ensures the data safety.
The following describes a case where the account and the password of the user provided in the embodiment of the present application do not pass.
After the sewing equipment verifies the account and the password of the user through the server or according to the data stored by the sewing equipment, if the account and the password are not verified, prompt information is output, the prompt information is used for prompting the user that the account or the password are incorrect, and the user can input the account and the password again.
It should be noted that, if the sewing device includes a display, the manner of outputting the prompt message by the sewing device may be displaying the prompt message on the display. If the sewing equipment comprises a loudspeaker, the mode of outputting the prompt message by the sewing equipment can also be that the prompt message is played by the loudspeaker. The embodiment of the application does not limit the mode of outputting the prompt message to the sewing equipment, and can be selected according to the actual situation.
According to the data access method for the sewing equipment, when the account number and the password of the user are not verified, the prompt message is output to prompt that the account number or the password of the user are incorrect, so that the data safety is effectively guaranteed, and meanwhile, the user experience is improved.
The following describes a case where the user is prohibited from accessing the data of the sewing machine according to the embodiment of the present application.
After the sewing equipment determines that the account number and the password of the user pass the verification, whether the user has the authority to access the data or not is judged according to the authority level; when a user has authority to access data, acquiring timing duration, and judging whether the current time is in the authority validity period or not according to the authority validity period; and when the current time is within the authority validity period, judging whether the timing time reaches the single-use time according to the single-use time. And if the user does not have the authority to access the data, or the current time length is not within the authority validity period, or the timing time length reaches the single-use time length, forbidding the user to access the data of the sewing equipment.
Specifically, after the sewing device determines that the account and the password of the user pass the verification, whether the user has the authority to access the data or not is judged according to the authority level, and if the user does not have the authority to access the data, the user is prohibited from accessing the data of the sewing device.
And if the current time length is not within the authority validity period, forbidding the user to access the data of the sewing equipment.
And if the current time is within the authority validity period, judging whether the timing duration reaches the single-use duration according to the single-use duration, and if the timing duration reaches the single-use duration, forbidding a user to access the data of the sewing equipment.
According to the data access method for the sewing equipment, when a user does not have authority to access data, or the current time length is not within the authority validity period, or the timing time length reaches the single-use time length, the user is forbidden to access the data of the sewing equipment. And the data security is effectively ensured.
Fig. 4 is a schematic flowchart of a fourth embodiment of the data access method for the sewing device provided by the present application, and as shown in fig. four, the data access method for the sewing device specifically includes the following steps:
s401: and acquiring the authorization information of the user set by the manager.
S402: and sending the authorization information to the server.
Before a user accesses data by using an account and a password, a manager needs to set the authority of the user.
In this step, the administrator sets the authorization information of the user through the terminal device, so that the terminal device can obtain the authorization information of the user set by the administrator, and the authorization information includes: the account number, the password, the authority validity period, the authority level, the single-use duration and the identification of the sewing equipment with accessible data of the user. Furthermore, the terminal device needs to send the authorization information to the server, so that the server stores the authorization information and sends part of the authorization information to the sewing device.
S403: and receiving the authorization information of at least one user sent by the terminal equipment of the manager.
S404: and updating the original authorization information of the at least one user, which is stored locally, according to the authorization information of the at least one user.
In the above steps, after the terminal device sends the authorization information of the user to the server, the server receives the authorization information of at least one user sent by the terminal device of the administrator, and the authorization information of each user includes an account number, a password, an authority validity period, an authority level, a single use duration of the user, and an identifier of a sewing device capable of accessing data. And then updating the original authorization information of the at least one user, which is stored locally, according to the authorization information of the at least one user.
Specifically, for each piece of authorization information in the authorization information of at least one user, the server may search, according to a user account and an identifier of the sewing device accessible to data, whether the authorization information stored locally includes the account and the identifier, and if such authorization information exists, it is necessary to update the original authorization information of the user to the authorization information of the user sent by the terminal device. If such authorization information does not exist, the authorization information of the user sent by the terminal device needs to be stored.
S405: and sending the authority information of at least one user to the corresponding sewing equipment according to the identification of the sewing equipment of which each user can access the data.
In this step, after the server updates the original authorization information of at least one locally stored user, some information of the user needs to be sent to the sewing device, for the received authorization information, the corresponding sewing device can be found according to the identification of the sewing device where each user can access data, and the authority information of at least one user is sent to the corresponding sewing device, where each user authority information includes an account number, a password, an authority validity period, an authority level, and a single use duration of the user, so that the authority information can be updated by the subsequent sewing device.
S406: and receiving the authority information of at least one user sent by the server.
S407: and updating the original authority information of the at least one user, which is locally stored, according to the authority information of the at least one user.
In the above steps, after the server sends the authority information of the user to the sewing device, the sewing device receives the authority information of at least one user sent by the server, and then updates the original authority information of at least one user stored locally according to the authority information of at least one user.
Specifically, for each authorization information in the authorization information of at least one user, the sewing device may search, according to a user account therein, whether the authorization information containing the account exists in the locally stored authorization information, and if such authorization information exists, it is necessary to update the original authorization information of the user to the authorization information of the user sent by the server. If such authorization information does not exist, the authorization information of the user sent by the server needs to be stored.
According to the data access method for the sewing equipment, before a user accesses data of the sewing equipment, a manager sets the authority of the user, wherein the authority comprises a password, the accessible sewing equipment, the word use duration and the authority level. When the user accesses the data, the sewing equipment judges whether the user can access the data according to the authority information of the user, so that the safety of the data is effectively guaranteed, and the efficiency of data access is also improved.
Fig. 5 is a schematic flowchart of a fifth embodiment of the data access method for a sewing device provided in the present application, and as shown in fig. 5, the data access method for a sewing device specifically includes the following steps:
s501: and acquiring the preset password updating time of the sewing equipment aiming at each sewing equipment.
In order to prevent the data from being unsafe due to password leakage, the server can update the password.
In this step, the password updating time length corresponding to each sewing device is different, and the server needs to obtain the preset password updating time length of the sewing device in order to update the password.
Specifically, for some sewing equipment, the manager can set the corresponding password updating time length in the server, the server can directly obtain the password updating time length, and the manager can also set the default password updating time length in the server. The server determines whether a corresponding password updating time length exists when acquiring the preset password updating time length of the sewing equipment, and directly acquires the password updating time length; and if the corresponding password updating time length does not exist, acquiring the default password updating time length as the password updating time length of the sewing equipment.
It should be noted that the preset password updating time of the sewing device includes the password updating time corresponding to the sewing device and the default password updating time set by the administrator. The password updating time corresponding to the sewing equipment can be 12 hours or 24 hours. The default password update duration may be 24 hours or may be 48 hours. The password updating time length corresponding to the sewing equipment set by the manager and the default password updating time length are not limited, and the password updating time length can be set according to actual conditions.
S502: and detecting the time length between the current time and the time of updating the password of the user last time at intervals of preset time length, and accumulating the preset time length to obtain the accumulated time length.
In this step, after the server obtains the password updating time of the sewing device, the server detects the password updating time once every preset time, detects the time between the current time and the time of updating the password of the user last time, and accumulates the preset time to obtain the accumulated time. So as to determine whether to update the password according to the accumulated time length.
Illustratively, the time for last updating of the password of the user is 6 o 'clock at 1 month and 1 day of 2021 year, the current time is 8 o' clock at 1 month and 1 day of 2021 year, the preset time is 30 minutes, and the accumulated time is 2 hours and 30 minutes.
It should be noted that the preset duration is set in the server by the administrator before the scheme is executed, and is used for triggering and detecting a duration between the current time and the time when the password of the user is updated last time, and calculating the accumulated duration. The preset time period can be 30 minutes or 1 hour, and the preset time period is not limited in the embodiment of the application and can be set according to actual conditions.
S503: and judging whether the accumulated time length is greater than or equal to the password updating time length.
In this step, after the server obtains the accumulated time, it needs to determine whether the accumulated time exceeds the password updating time, so as to determine whether to update the password.
Illustratively, the time for updating the password of the user last time is 5 click every 1 month and 1 day of 2021 year, the current time is 8 click every 1 month and 1 day of 2021 year, the preset time duration is 1 hour, the password updating time duration is 10 hours, the accumulated time duration is 4 hours and less than 10 hours, and the accumulated time duration does not exceed the password updating time duration.
Illustratively, the last time of updating the password of the user is 2021 year, 1 month, 1 day, 4 click, the current time is 2021 year, 1 month, 2 days, 3 click, 50 minutes, the preset time duration is 30 minutes, the password updating time duration is 24 hours, the accumulated time duration is 24 hours and 20 minutes, which is greater than 24 hours, and the accumulated time duration exceeds the password updating time duration.
It should be noted that, the above example is only an example of a comparison process between an accumulated time and a password update time, and the time for updating the password of the user last time, the current time, the preset time, the password update time and the accumulated time are not limited in the embodiment of the present application, and may be determined and set according to actual situations.
S504: and if the accumulated time length is greater than or equal to the password updating time length, updating the password of the user.
S505: and sending the updated authority information of the user to the sewing equipment which can access the data by the user.
In the above steps, after the server determines whether the accumulated time length is greater than or equal to the password updating time length, if the accumulated time length is greater than or equal to the password updating time length, the password of the user is updated, and the updated authority information of the user is sent to the sewing equipment which can access the data by the user.
The server can update the password according to the timestamp, or can randomly generate the password, and the embodiment of the present application does not limit the manner in which the server updates the password, and can be selected according to actual situations.
S506: and receiving the authority information of at least one user sent by the server.
S507: and updating the original authority information of the at least one user, which is locally stored, according to the authority information of the at least one user.
It should be noted that step S506 and step S507 are similar to step S406 and step S407 in the fourth embodiment, and are not repeated here.
It should be noted that, after the server finishes updating the password once, the server continues to execute the above steps to implement dynamic password updating.
According to the data access method for the sewing equipment, the password is automatically updated through the server, the condition that data leakage is caused due to password leakage can be effectively avoided, and data safety is guaranteed.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
FIG. 6 is a schematic structural diagram of a first embodiment of a data access device of a sewing machine provided by the present application; as shown in fig. 6, the sewing device data access apparatus 60 includes:
the obtaining module 61 is used for obtaining an account and a password input by a user;
the obtaining module 61 is further configured to obtain the permission level, the single-use duration and the permission validity period of the user if the account and the password pass verification;
the processing module 62 is configured to determine whether the user has an authority to access data according to the authority level;
the processing module 62 is further configured to start a timer to count time to obtain a timing duration if the user has the right to access the data, and determine whether the current time is within the right validity period according to the right validity period;
the processing module 62 is further configured to determine whether the timing duration reaches the single-use duration according to the single-use duration if the current duration is within the authority validity period;
the processing module 62 is further configured to authorize the user to access the data of the sewing device if the timing duration does not reach the single-use duration.
Further, the processing module 62 is further configured to determine whether the communication between the sewing device and the server is normal;
further, the sewing device data access device 60 further includes:
a sending module 63, configured to send a verification request to a server if communication between the sewing device and the server is normal, where the verification request includes the account, the password, and an identifier of the sewing device;
a receiving module 64, configured to receive a verification result returned by the server, where the verification result is used to indicate whether the account and the password pass verification;
further, the receiving module 64 is further configured to receive the permission level, the single-use duration and the permission validity period of the user, which are returned by the server, if the verification result indicates that the account and the password are verified to be passed.
Further, the processing module 62 is further configured to verify the account and the password according to the account and the password stored in the sewing device if the communication between the sewing device and the server is abnormal;
further, the obtaining module 61 is further configured to obtain, according to the account number of the user and the authority information of each user pre-stored in the sewing device, the authority level of the user, the single-use duration, and the authority validity period of each user, where the authority information of each user includes: the account number, the password, the authority validity period, the authority level and the single-use duration of the user.
An output module 65, configured to output a prompt message if the account and the password are not verified, where the prompt message is used to prompt the user that the account or the password is incorrect.
Further, the processing module 62 is further configured to prohibit the user from accessing the data of the sewing device if the user does not have an authority to access the data, or the current time length is not within the authority validity period, or the timing time length has reached the single-use time length.
Further, the receiving module 64 is further configured to receive authority information of at least one user sent by the server;
further, the processing module 62 is further configured to update the locally stored original authority information of the at least one user according to the authority information of the at least one user.
The data access device for the sewing device provided by this embodiment is used for executing the technical scheme of the sewing device in any one of the foregoing method embodiments, and the implementation principle and technical effect are similar, and are not described herein again.
FIG. 7 is a schematic structural diagram of a second embodiment of a data access device of a sewing machine according to the present application; as shown in fig. 7, the sewing device data access device 70 includes:
an obtaining module 71, configured to obtain authorization information of a user set by a manager, where the authorization information includes: the account number, the password, the authority validity period, the authority level, the single-use duration and the identification of the sewing equipment with accessible data of the user;
a sending module 72, configured to send the authorization information to the server.
The data access device for the sewing device provided by this embodiment is used for executing the technical scheme of the terminal device of the manager in any one of the foregoing method embodiments, and the implementation principle and technical effect are similar, and are not described herein again.
FIG. 8 is a schematic structural diagram of a third embodiment of a data access device of a sewing machine provided by the present application; as shown in fig. 8, the data access device 80 of the sewing machine includes:
the receiving module 81 is used for receiving an authentication request sent by the sewing equipment, wherein the authentication request comprises an account number, a password and an identifier of the sewing equipment of a user;
the processing module 82 is configured to verify an account and a password of a user in the verification request according to authorization information of at least one user stored in the server, and obtain a verification result, where the verification result is used to indicate whether the account and the password of the user in the verification request pass verification, and the authorization information of each user includes an account, a password, an authorization validity period, an authorization level, a single-use duration, and an identifier of a sewing device that can access data;
and a sending module 83, configured to return the verification result to the sewing device.
Further, the sending module 83 is further configured to return the authority level, the single-use duration and the authority validity period of the user to the sewing device if the account and the password of the user in the verification request pass verification.
Further, the receiving module 81 is further configured to receive authorization information of at least one user sent by a terminal device of a manager, where the authorization information of each user includes an account number, a password, an authority validity period, an authority level, a single-use duration of the user, and an identifier of a sewing device that can access data;
further, the processing module 82 is further configured to update the locally stored original authorization information of the at least one user according to the authorization information of the at least one user;
further, the sending module 83 is further configured to send, to the corresponding sewing device, authority information of at least one user according to an identifier of the sewing device where each user can access data, where each user authority information includes an account number, a password, an authority validity period, an authority level, and a single-use duration of the user.
Further, the processing module 82 is further configured to, for each sewing device, obtain a preset password update duration of the sewing device;
further, the processing module 82 is further configured to detect a duration between the current time and the time when the password of the user was updated last time every preset duration, and accumulate the preset durations to obtain an accumulated duration;
further, the processing module 82 is further configured to determine whether the accumulated time duration is greater than or equal to the password update time duration;
further, the processing module 82 is further configured to update the password of the user if the accumulated duration is greater than or equal to the password update duration;
further, the sending module 83 is further configured to send the updated authority information of the user to the sewing device accessible to the user.
The data access device of the sewing device provided by the embodiment is used for executing the technical scheme of the server in any one of the method embodiments, the implementation principle and the technical effect are similar, and details are not repeated herein.
Fig. 9 is a schematic structural diagram of a sewing apparatus provided in the present application. As shown in fig. 9, the sewing apparatus 90 includes:
a processor 91, a memory 92, and a communication interface 93;
the memory 92 is used for storing executable instructions of the processor 91;
wherein the processor 91 is configured to execute the technical solution of the sewing device in any of the method embodiments described above via executing the executable instructions.
Alternatively, the memory 92 may be separate or integrated with the processor 91.
Optionally, when the memory 92 is a device independent from the processor 91, the garment sewing device 90 may further include:
and the bus is used for connecting the devices.
The sewing device is used for executing the technical scheme of the sewing device in any method embodiment, the implementation principle and the technical effect are similar, and the detailed description is omitted.
Fig. 10 is a schematic structural diagram of a terminal device provided in the present application. As shown in fig. 10, the terminal device 100 includes:
a processor 101, a memory 102, and a communication interface 103;
the memory 102 is used for storing executable instructions of the processor 101;
wherein the processor 101 is configured to execute the technical solution of the terminal device in any of the foregoing method embodiments via executing the executable instruction.
Optionally, the memory 102 may be separate or integrated with the processor 101.
Optionally, when the memory 102 is a device independent from the processor 101, the terminal device 100 may further include:
and the bus is used for connecting the devices.
The terminal device is configured to execute the technical solution of the terminal device in any of the foregoing method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 11 is a schematic structural diagram of a server according to the present application. As shown in fig. 11, the server 110 includes:
a processor 111, a memory 112, and a communication interface 113;
the memory 112 is used for storing executable instructions of the processor 111;
wherein the processor 111 is configured to execute the technical solution of the server in any of the foregoing method embodiments via executing the executable instructions.
Alternatively, the memory 112 may be separate or integrated with the processor 111.
Optionally, when the memory 112 is a device independent from the processor 111, the server 110 may further include:
and the bus is used for connecting the devices.
The server is used for executing the technical scheme of the server in any one of the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
The embodiment of the present application further provides a readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the technical solutions provided by any of the foregoing method embodiments.
The embodiment of the present application further provides a computer program product, which includes a computer program, and the computer program is used for implementing the technical solution provided by any of the foregoing method embodiments when being executed by a processor.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
Claims (11)
1. A data access method for a sewing device is applied to the sewing device, and the method comprises the following steps:
acquiring an account and a password input by a user;
if the account number and the password pass the verification, acquiring the authority level, the single-time use duration and the authority validity period of the user;
judging whether the user has the authority to access data or not according to the authority level;
if the user has the authority to access the data, starting a timer to time to obtain a timing duration, and judging whether the current time is in the authority validity period or not according to the authority validity period;
if the current time length is within the authority validity period, judging whether the timing time length reaches the single-use time length or not according to the single-use time length;
and if the timing duration does not reach the single-use duration, authorizing the user to access the data of the sewing equipment.
2. The method of claim 1, wherein after obtaining the account number and the password input by the user, the method further comprises:
judging whether the communication between the sewing equipment and the server is normal or not;
if the communication between the sewing equipment and the server is normal, sending a verification request to the server, wherein the verification request comprises the account number, the password and the identification of the sewing equipment;
receiving a verification result returned by the server, wherein the verification result is used for indicating whether the account and the password pass the verification;
correspondingly, if the account number and the password pass the verification, the authority level, the single-use duration and the authority validity period of the user are obtained, which includes:
and if the verification result indicates that the account and the password are verified, receiving the authority level, the single-use duration and the authority validity period of the user returned by the server.
3. The method of claim 2, further comprising:
if the communication between the sewing equipment and the server is abnormal, verifying the account and the password according to the account and the password stored in the sewing equipment;
correspondingly, the acquiring the permission level, the single-use duration and the permission validity period of the user includes:
according to the account number of the user and the authority information of each user pre-stored in the sewing equipment, the authority level of the user, the single-use duration and the authority validity period are obtained, and the authority information of each user comprises: the account number, the password, the authority validity period, the authority level and the single-use duration of the user.
4. The method according to any one of claims 1 to 3, further comprising:
if the account and the password are not verified, outputting prompt information, wherein the prompt information is used for prompting the user that the account or the password are incorrect.
5. The method of any of claims 1 to 3, further comprising:
and if the user does not have the right to access the data, or the current time length is not within the right validity period, or the timing time length reaches the single-use time length, prohibiting the user from accessing the data of the sewing equipment.
6. The method of claim 3, further comprising:
receiving authority information of at least one user sent by a server;
and updating the original authority information of the at least one locally stored user according to the authority information of the at least one user.
7. A data access method of a sewing device is characterized by being applied to a terminal device of a manager, and the method comprises the following steps:
obtaining authorization information of a user set by a manager, wherein the authorization information comprises: the account number, the password, the authority validity period, the authority level, the single-use duration and the identification of the sewing equipment with accessible data of the user;
and sending the authorization information to a server.
8. A data access method of a sewing device is applied to a server, and the method comprises the following steps:
receiving a verification request sent by sewing equipment, wherein the verification request comprises an account number, a password and an identifier of the sewing equipment of a user;
verifying the account and the password of the user in the verification request according to the authorization information of at least one user stored in the server to obtain a verification result, wherein the verification result is used for indicating whether the account and the password of the user in the verification request pass verification or not, and the authorization information of each user comprises the account, the password, the authority validity period, the authority level, the single-use duration of the user and the identification of the sewing equipment capable of accessing data;
and returning the verification result to the sewing equipment.
9. The method of claim 8, further comprising:
and if the account number and the password of the user in the verification request pass the verification, returning the authority level, the single-use duration and the authority validity period of the user to the sewing equipment.
10. The method of claim 8, further comprising:
receiving authorization information of at least one user sent by terminal equipment of a manager, wherein the authorization information of each user comprises an account number, a password, an authority validity period, an authority level, single-use duration and an identification of sewing equipment capable of accessing data;
updating the original authorization information of the at least one user, which is stored locally, according to the authorization information of the at least one user;
and sending the authority information of at least one user to the corresponding sewing equipment according to the identification of the sewing equipment of the data accessible to each user, wherein each user authority information comprises an account number, a password, an authority validity period, an authority level and single-use duration of the user.
11. The method of claim 8, further comprising:
aiming at each sewing device, acquiring preset password updating time of the sewing device;
detecting the time length between the current time and the time of updating the password of the user last time at intervals of preset time length, and accumulating the preset time length to obtain accumulated time length;
judging whether the accumulated time length is greater than or equal to the password updating time length;
if the accumulated time length is greater than or equal to the password updating time length, updating the password of the user;
and sending the updated authority information of the user to the sewing equipment which can access the data by the user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210249796.9A CN114697084B (en) | 2022-03-14 | 2022-03-14 | Sewing equipment data access method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210249796.9A CN114697084B (en) | 2022-03-14 | 2022-03-14 | Sewing equipment data access method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114697084A true CN114697084A (en) | 2022-07-01 |
CN114697084B CN114697084B (en) | 2024-03-26 |
Family
ID=82139695
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210249796.9A Active CN114697084B (en) | 2022-03-14 | 2022-03-14 | Sewing equipment data access method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114697084B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115242546A (en) * | 2022-09-15 | 2022-10-25 | 浙江中控技术股份有限公司 | Industrial control system access control method based on zero trust architecture |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070043657A1 (en) * | 2004-11-05 | 2007-02-22 | First Data Corporation | Account management systems and methods |
US20130031604A1 (en) * | 2011-07-25 | 2013-01-31 | Ford Global Technologies, Llc | Method and Apparatus for Remote Authentication |
CN103648024A (en) * | 2013-12-27 | 2014-03-19 | 深圳Tcl新技术有限公司 | Method for monitoring running of application program of intelligent terminal |
CN105100028A (en) * | 2014-05-22 | 2015-11-25 | 中兴通讯股份有限公司 | Account number management method and account number management device |
CN105142143A (en) * | 2015-10-22 | 2015-12-09 | 上海斐讯数据通信技术有限公司 | Verification method and system thereof |
CN106534199A (en) * | 2016-12-26 | 2017-03-22 | 盐城工学院 | Distributed system authentication and permission management platform based on XACML and SAML under big data environment |
WO2017071496A1 (en) * | 2015-10-26 | 2017-05-04 | 阿里巴巴集团控股有限公司 | Method and device for realizing session identifier synchronization |
CN106716968A (en) * | 2016-12-26 | 2017-05-24 | 深圳前海达闼云端智能科技有限公司 | Account management method, device and account management system |
CN107689966A (en) * | 2017-10-12 | 2018-02-13 | 京东方科技集团股份有限公司 | Account resource share method, system, equipment and computer-readable recording medium |
CN108521347A (en) * | 2018-04-10 | 2018-09-11 | 江苏亨通工控安全研究院有限公司 | Industry control O&M behavior auditing method, apparatus and system |
CN111355713A (en) * | 2020-02-20 | 2020-06-30 | 深信服科技股份有限公司 | Proxy access method, device, proxy gateway and readable storage medium |
CN111404918A (en) * | 2020-03-11 | 2020-07-10 | 广州微算互联信息技术有限公司 | Cloud mobile phone distributed service emergency authentication method, device and system |
CN112291375A (en) * | 2020-12-30 | 2021-01-29 | 杭州海康威视数字技术股份有限公司 | Internet of things equipment access control method, Internet of things equipment and Internet of things system |
CN112597481A (en) * | 2020-12-29 | 2021-04-02 | 平安银行股份有限公司 | Sensitive data access method and device, computer equipment and storage medium |
CN112765629A (en) * | 2021-01-25 | 2021-05-07 | 山西青峰软件股份有限公司 | Method and system for preventing unauthorized access of education system |
CN113329403A (en) * | 2021-05-24 | 2021-08-31 | 爱讯智联科技(北京)有限公司 | One-number multi-terminal authentication network access method and system |
CN113392415A (en) * | 2021-06-18 | 2021-09-14 | 作业帮教育科技(北京)有限公司 | Access control method and system for data warehouse and electronic equipment |
-
2022
- 2022-03-14 CN CN202210249796.9A patent/CN114697084B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070043657A1 (en) * | 2004-11-05 | 2007-02-22 | First Data Corporation | Account management systems and methods |
US20130031604A1 (en) * | 2011-07-25 | 2013-01-31 | Ford Global Technologies, Llc | Method and Apparatus for Remote Authentication |
CN103648024A (en) * | 2013-12-27 | 2014-03-19 | 深圳Tcl新技术有限公司 | Method for monitoring running of application program of intelligent terminal |
CN105100028A (en) * | 2014-05-22 | 2015-11-25 | 中兴通讯股份有限公司 | Account number management method and account number management device |
CN105142143A (en) * | 2015-10-22 | 2015-12-09 | 上海斐讯数据通信技术有限公司 | Verification method and system thereof |
WO2017071496A1 (en) * | 2015-10-26 | 2017-05-04 | 阿里巴巴集团控股有限公司 | Method and device for realizing session identifier synchronization |
CN106534199A (en) * | 2016-12-26 | 2017-03-22 | 盐城工学院 | Distributed system authentication and permission management platform based on XACML and SAML under big data environment |
CN106716968A (en) * | 2016-12-26 | 2017-05-24 | 深圳前海达闼云端智能科技有限公司 | Account management method, device and account management system |
CN107689966A (en) * | 2017-10-12 | 2018-02-13 | 京东方科技集团股份有限公司 | Account resource share method, system, equipment and computer-readable recording medium |
CN108521347A (en) * | 2018-04-10 | 2018-09-11 | 江苏亨通工控安全研究院有限公司 | Industry control O&M behavior auditing method, apparatus and system |
CN111355713A (en) * | 2020-02-20 | 2020-06-30 | 深信服科技股份有限公司 | Proxy access method, device, proxy gateway and readable storage medium |
CN111404918A (en) * | 2020-03-11 | 2020-07-10 | 广州微算互联信息技术有限公司 | Cloud mobile phone distributed service emergency authentication method, device and system |
CN112597481A (en) * | 2020-12-29 | 2021-04-02 | 平安银行股份有限公司 | Sensitive data access method and device, computer equipment and storage medium |
CN112291375A (en) * | 2020-12-30 | 2021-01-29 | 杭州海康威视数字技术股份有限公司 | Internet of things equipment access control method, Internet of things equipment and Internet of things system |
CN112765629A (en) * | 2021-01-25 | 2021-05-07 | 山西青峰软件股份有限公司 | Method and system for preventing unauthorized access of education system |
CN113329403A (en) * | 2021-05-24 | 2021-08-31 | 爱讯智联科技(北京)有限公司 | One-number multi-terminal authentication network access method and system |
CN113392415A (en) * | 2021-06-18 | 2021-09-14 | 作业帮教育科技(北京)有限公司 | Access control method and system for data warehouse and electronic equipment |
Non-Patent Citations (1)
Title |
---|
潘鹏飞: "调度自动化系统运维技术", 东北大学出版社, pages: 169 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115242546A (en) * | 2022-09-15 | 2022-10-25 | 浙江中控技术股份有限公司 | Industrial control system access control method based on zero trust architecture |
Also Published As
Publication number | Publication date |
---|---|
CN114697084B (en) | 2024-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7505758B2 (en) | Apparatus and method for setting use restriction of mobile communication terminal | |
EP2152033B1 (en) | Method and device for generating a time-dependent password | |
US11443024B2 (en) | Authentication of a client | |
USRE40791E1 (en) | Method and system for verifying the authenticity of a first communication participants in a communications network | |
US9131377B2 (en) | Method and apparatus for unlocking operating system | |
RU2441337C2 (en) | Authentication token for identifying cloning attack onto said authentication token | |
US20120149331A1 (en) | Method and system for remote control of smart card | |
KR20080066956A (en) | Remote activation of a user account in a telecommunication network | |
CN101815116A (en) | Mobile telephone method and device based on multi-user | |
US9785761B2 (en) | Unlocking a locked user device using a computer generated unlock code provided by a user | |
JP2009181153A (en) | User authentication system and method, program, medium | |
US20110250867A1 (en) | Method and apparatus for restricting network access in a mobile communication terminal | |
US20180098219A1 (en) | Securing access to vehicles | |
CN114697084B (en) | Sewing equipment data access method | |
EP2293218A1 (en) | A chip card, an electronic system, a method being implemented by a chip card and a computer program product | |
JP2009288823A (en) | User authentication system, method, program | |
US8121580B2 (en) | Method of securing a mobile telephone identifier and corresponding mobile telephone | |
JP2009065282A (en) | Mobile terminal | |
JPH11510019A (en) | Access restriction process for communication networks, communication systems and units for such systems | |
KR100730468B1 (en) | System for exposure preventing individual information in an lost mobile terminal and method thereof | |
KR20010007291A (en) | Server for dialup connection | |
JP2895038B1 (en) | Mobile communication terminal and method for restricting unauthorized use thereof | |
JP5293931B2 (en) | Security management system and method for information processing terminal using RFID | |
JP5502049B2 (en) | Communication terminal and terminal control method | |
JP5432735B2 (en) | Information processing system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |