CN118301592A - Data transmission method and device based on smart card, equipment and product - Google Patents

Data transmission method and device based on smart card, equipment and product Download PDF

Info

Publication number
CN118301592A
CN118301592A CN202410319951.9A CN202410319951A CN118301592A CN 118301592 A CN118301592 A CN 118301592A CN 202410319951 A CN202410319951 A CN 202410319951A CN 118301592 A CN118301592 A CN 118301592A
Authority
CN
China
Prior art keywords
command
smart card
identification information
data packet
operation result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410319951.9A
Other languages
Chinese (zh)
Inventor
彭虹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiede Jiangxi Technology Co ltd
Original Assignee
Jiede Jiangxi Technology Co ltd
Filing date
Publication date
Application filed by Jiede Jiangxi Technology Co ltd filed Critical Jiede Jiangxi Technology Co ltd
Publication of CN118301592A publication Critical patent/CN118301592A/en
Pending legal-status Critical Current

Links

Abstract

The application discloses a data transmission method and device based on a smart card, the smart card, equipment and a product, and belongs to the technical field of data processing. The embodiment of the application utilizes the inherent fixed dialing channel of the electronic equipment to carry out data transmission with the intelligent card in the electronic equipment, can effectively avoid the problem that the data cannot be transmitted due to the fact that an additionally installed application in the electronic equipment is not authorized to call the operating system of the electronic equipment, and can respectively process different types of command contents transmitted through the fixed dialing channel and return the processing result to the electronic equipment, thereby increasing the processing type of the data and realizing the bidirectional transmission of the data.

Description

Data transmission method and device based on smart card, equipment and product
Technical Field
The application belongs to the technical field of data processing, and particularly relates to a data transmission method and device based on a smart card, the smart card, equipment and a product.
Background
Smart cards, also known as subscriber identity cards, are a necessary arrangement for electronic devices to be used for authentication of a subscriber. Electronic devices with smart cards currently perform data transmission with smart cards mainly by calling the operating system of the electronic device.
With the development of electronic devices, the requirements of the electronic devices on security are higher, and the restrictions of the electronic devices on the call of an operating system are also higher, so that the data transmission between certain applications in the electronic devices and the smart card is blocked.
Disclosure of Invention
The embodiment of the application aims to provide a data transmission method and device based on a smart card, the smart card, equipment and medium, which can solve the problem that some applications of electronic equipment in the related technology cannot perform data transmission with the smart card.
In order to solve the technical problems, the application is realized as follows:
In a first aspect, an embodiment of the present application provides a data transmission method based on a smart card, including:
receiving a command data packet through a fixed dialing channel of the electronic equipment, wherein the command data packet comprises identification information and command content;
executing corresponding operation on the command content according to the identification information to obtain an operation result;
and sending the operation result to the electronic equipment through the fixed dialing channel.
In a second aspect, an embodiment of the present application provides a data transmission method based on a smart card, including:
Acquiring a command data packet;
transmitting a command data packet to a smart card of the electronic equipment through the fixed dialing channel;
and receiving an operation result sent by the smart card and aiming at the command data packet, wherein the operation result is a result obtained by the smart card executing corresponding operation on command contents in the command data packet according to the identification information in the command data packet.
In a third aspect, an embodiment of the present application provides a data transmission device based on a smart card, including:
the receiving module is used for receiving a command data packet through a fixed dialing channel of the electronic equipment, wherein the command data packet comprises identification information and command content;
The processing module is used for executing corresponding operation on the command content according to the identification information to obtain an operation result;
And the sending module is used for sending the operation result to the electronic equipment through the fixed dialing channel.
In a fourth aspect, an embodiment of the present application provides a data transmission device based on a smart card, including:
the acquisition module is used for acquiring the command data packet;
the sending module is used for sending a command data packet to the intelligent card of the electronic equipment through the fixed dialing channel;
The receiving module is used for receiving an operation result sent by the intelligent card and aiming at the command data packet, wherein the operation result is obtained by the intelligent card executing corresponding operation on the command content in the command data packet according to the identification information in the command data packet.
In a fifth aspect, an embodiment of the present application provides a smart card, including: a processor and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the method as described in the first aspect.
In a sixth aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the method as described in the first aspect.
In a seventh aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement a method as described in the first aspect, or a method as described in the second aspect.
In an eighth aspect, embodiments of the present application provide a computer program product comprising a computer program which, when executed by a processor, implements a method as described in the first aspect, or a method as described in the second aspect.
The embodiment of the application utilizes the inherent fixed dialing channel of the electronic equipment to carry out data transmission with the intelligent card in the electronic equipment, can effectively avoid the problem that the data cannot be transmitted due to the fact that an additionally installed application in the electronic equipment is not authorized to call the operating system of the electronic equipment, and can respectively process different types of command contents transmitted through the fixed dialing channel and return the processing result to the electronic equipment, thereby increasing the processing type of the data and realizing the bidirectional transmission of the data.
Drawings
Fig. 1 is a flowchart of a data transmission method based on a smart card according to an embodiment of the present application;
FIG. 2 is a flowchart of another data transmission method based on a smart card according to an embodiment of the present application;
fig. 3 is a schematic diagram of a display interface of a fixed dialing channel according to an embodiment of the present application;
fig. 4 is a schematic diagram of a process of inputting a command packet through a fixed dial-up channel interface according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data transmission device based on a smart card according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another data transmission device based on smart card according to an embodiment of the present application
Fig. 7 is a schematic diagram of a hardware structure of a smart card according to an embodiment of the present application;
fig. 8 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
Features and exemplary embodiments of various aspects of the present application will be described in detail below, and in order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail below with reference to the accompanying drawings and the detailed embodiments. It should be understood that the particular embodiments described herein are meant to be illustrative of the application only and not limiting. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the application by showing examples of the application.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
Electronic devices with smart cards are currently mainly used for data transmission by calling an operating system of the electronic device with the smart card, and along with the improvement of the requirements of the electronic device on security, the electronic device has more and more restrictions on the operating system, for example, only supporting the application of the electronic device to call the operating system and perform data transmission with the smart card.
With the increase of functions of the electronic device, more and more applications are additionally installed in the electronic device, so that according to the current data transmission method of the electronic device and the smart card, certain applications in the electronic device are easy to cause that the applications do not have permission to call an operating system, and further cannot perform data transmission with the smart card.
Therefore, the embodiment of the application provides a data transmission method and device based on a smart card, the smart card, equipment and medium, which can solve the problem that some applications of electronic equipment in the related technology cannot perform data transmission with the smart card.
The data transmission method, device, smart card, device and medium based on the smart card provided by the embodiment of the application are described in detail below with reference to specific scenes and embodiments.
Fig. 1 is a flowchart of a data transmission method based on a smart card according to an embodiment of the present application, where, as shown in fig. 1, the data transmission method based on a smart card may include the following steps:
S110, receiving a command data packet through a fixed dialing channel of the electronic equipment.
Wherein the command data packet includes identification information and command content.
S120, corresponding operation is carried out on the command content according to the identification information, and an operation result is obtained.
S130, sending an operation result to the electronic equipment through the fixed dialing channel.
The embodiment of the application utilizes the inherent fixed dialing channel of the electronic equipment to carry out data transmission with the intelligent card in the electronic equipment, can effectively avoid the problem that the data cannot be transmitted due to the fact that an additionally installed application in the electronic equipment is not authorized to call the operating system of the electronic equipment, and can respectively process different types of command contents transmitted through the fixed dialing channel and return the processing result to the electronic equipment, thereby increasing the processing type of the data and realizing the bidirectional transmission of the data.
The following describes the above steps in detail, as follows:
In S110, the electronic device may be a mobile phone, a smart band, a smart watch, a vehicle-mounted communication device, etc. mounted with a smart card, and a fixed dial channel is provided in the electronic device. Through the fixed dialing channel, the self-contained application or the non-self-contained application in the electronic equipment can carry out data transmission with the intelligent card, and the problem that certain applications of the electronic equipment in the related technology cannot carry out data transmission with the intelligent card is effectively solved. And the data transmitted by the fixed dialing channel can be monitored at fixed time through the fixed dialing channel.
The command data packet is a data packet generated by the electronic device and sent to the smart card. For example, the command packet may include identification information and command content, the identification information being used to characterize a command type of the command content, different identification information may correspond to different command types. The identification information may be represented by a tag, for example. The manner of representation and meaning of the identification information may be agreed with the operating system of the electronic device.
The command type can comprise a read type or a write type, for example, that is, the embodiment of the application can not only write data into the smart card, but also read data from the smart card, thereby realizing two-way communication of the data.
The command content may include, for example, fixed dialing content or non-fixed dialing content, which may be set according to actual needs.
In S120, the smart card may perform a corresponding operation on the command content based on the identification information carried by the command packet, to obtain an operation result.
Illustratively, the smart card may determine a command type of the command content according to the identification information; and executing corresponding operation on the command content according to the command type to obtain an operation result.
For example, when the command type is a read type, i.e., the electronic device needs to read data from the smart card, the smart card may take the data content of the read data as the operation result. For another example, when the command type is a writing type, that is, the electronic device needs to write data into the smart card, for example, needs to switch the code number 1 to the code number 2 to log on the network, and after the smart card is switched, an operation result of successful or failed switching can be generated.
For example, in the case that the identification information is empty, determining that the command type of the command content is a read type or a write type;
under the condition that the identification information is the first identification information, determining that the command type of the command content is a reading type;
and in the case that the identification information is the second identification information, determining that the command type of the command content is a writing type.
For example, when the identification information is empty, that is, no tag, the command content may be determined to be the fixed dialing content, and at this time, the electronic device may write the fixed dialing content into the smart card, or may read the fixed dialing content from the smart card, that is, the corresponding command type is a read type or a write type.
For example, the electronic device may write the fixed dialing content to the smart card when the fixed dialing content is not present in the smart card, and may read the fixed dialing content from the smart card when the fixed dialing content is present in the smart card.
The first identification information is used to characterize the read type, e.g. the first identification information may be denoted 0070, but may of course be denoted in other forms, in particular in relation to the commitment of the operating system.
The second identification information is used to characterize the writing type, for example, the second identification information may be represented as 0371, or 0599, etc., where 0371 is used to represent the update operation and 0599 is used to represent the code number switching operation.
For example, when the tag is #0070# 364637445 (6F 7E ASCII), it indicates that the electronic device needs to read the 6F7E file from the smart card, and the smart card finds the 6F7E file according to the tag, and returns the content in the 6F7E file to the electronic device through the fixed dial channel.
Illustratively, when tag is #0371# 36463142, it indicates that the electronic device needs the smart card to update the 6F7B file, and instructs the smart card to encrypt the updated 6F7B file using the 03 group key. Wherein, the operating system presets 10 groups of keys, and the key index serial numbers are 01, 02, … and 10 respectively.
For example, when tag is #0599#03, it indicates that the electronic device needs the smart card to perform the code number switching operation, and the electronic device switches from the code number 1 to the code number 2 to log on.
In the embodiment of the application, after the intelligent card receives the command data packet sent by the electronic equipment, the identification information in the command data packet can be analyzed, the command type of the command content is judged, and the reading or writing operation is executed on the command content based on the command type, so that the data can be written into the intelligent card, the data can be read from the intelligent card, and the processing type of the data is increased.
In S130, after the smart card obtains the operation result, the operation result may be returned to the electronic device, so as to implement bidirectional communication between the electronic device and the smart card.
In some embodiments, when the identification information is non-null, that is, the command content is non-fixed dial content, in order to ensure the security of data transmission, the electronic device may encrypt the command content, where the encryption key may use any one of 01-10 sets of keys, and at this time, the command data packet may include a key index sequence number corresponding to the encryption key.
Based on this, in some embodiments, the smart card-based data transmission method may further include the steps of, prior to S120:
Acquiring a key corresponding to the key index serial number;
Decrypting the command content according to the secret key to obtain decrypted command content;
executing corresponding operation on the command content according to the identification information to obtain an operation result, wherein the operation result comprises the following steps:
And executing corresponding operation on the decrypted command content according to the identification information to obtain an operation result.
And obtaining a corresponding key from the preset 10 groups of keys according to the key index sequence number, and decrypting the command content by using the key to obtain the decrypted command content.
Accordingly, the step S120 may include the steps of:
And executing corresponding operation on the decrypted command content according to the identification information to obtain an operation result.
Illustratively, the smart card can execute corresponding operation on the decrypted command content according to the identification information to obtain an operation result.
In the embodiment of the application, when the command content is the non-fixed dialing content, the electronic equipment can encrypt the command content, so that the safety of data transmission is ensured.
In some embodiments, after S110, the smart card-based data transmission method may further include the steps of:
The command packet is stored.
In the embodiment of the application, after the intelligent card receives the command data packet sent by the electronic equipment, the command data packet can be cached, so that the condition that the intelligent card loses data due to power failure, card pulling and other reasons in the data processing process can be prevented.
Taking application to electronic devices as an example, as shown in fig. 2, the data transmission method based on the smart card may include the following steps:
s210, acquiring a command data packet.
S220, the command data packet is sent to the intelligent card of the electronic equipment through the fixed dialing channel.
S230, receiving an operation result sent by the intelligent card and aiming at the command data packet.
The intelligent card executes corresponding operation on the command content in the command data packet according to the identification information in the command data packet to obtain the operation result.
The embodiment of the application utilizes the inherent fixed dialing channel of the electronic equipment to carry out data transmission with the intelligent card in the electronic equipment, can effectively avoid the problem that the data cannot be transmitted due to the fact that an additionally installed application in the electronic equipment is not authorized to call the operating system of the electronic equipment, and can respectively process different types of command contents transmitted through the fixed dialing channel and return the processing result to the electronic equipment, thereby increasing the processing type of the data and realizing the bidirectional transmission of the data.
The following describes the above steps in detail, as follows:
In S210, the command packet may be obtained by the electronic device grouping the acquired data content, and the command packet may be identified by the smart card. The data content can be sent to the electronic device by a server or any other form, and when the data content is the non-fixed dialing content, the electronic device can encrypt the data content to ensure the security of data transmission.
In S220, after the electronic device generates the command data packet, the command data packet may be sent to the smart card through the fixed dial channel, so that the problem that the data cannot be transmitted due to the unauthorised call of the operating system of the electronic device by the application additionally installed in the electronic device can be effectively avoided.
In some embodiments, the fixed dial channel may be displayed through the interface shown in fig. 3, and when the user clicks on "fixed dial channel" in the interface, as shown in fig. 4, the user may enter a command packet at the fixed dial channel interface.
In some embodiments, the interface shown in fig. 3 may not be displayed, i.e. the electronic device may directly invoke the fixed dial channel and transmit the command packet via the application protocol data unit (Application Protocol data unit, APDU).
In S230, the electronic device may also receive the operation result sent by the smart card and directed against the command data packet, that is, the electronic device may not only send data to the smart card, but also receive data sent by the smart card, thereby implementing bidirectional data transmission and improving diversity of data transmission.
In some embodiments, the smart card-based data transmission method may further include the steps of, prior to S220:
the method comprises the steps of carrying out identity verification on a user of electronic equipment to determine whether the user has operation authority of a fixed dialing channel;
Accordingly, sending a command data packet to the smart card of the electronic device through the fixed dial-up channel includes:
and under the condition that the user is determined to have the operation authority of the fixed dialing channel, sending a command data packet to the intelligent card through the fixed dialing channel.
The identity of the user may be checked, for example, by means of a PIN2 (Personal identification number, PIN 2) before the data is transmitted using the fixed dial channel. The PIN2 code is a personal identification code to be input when entering a special function such as a fixed dialing function, a call charging function, etc. For example, in the embodiment of the present application, when data needs to be transmitted by using a fixed dial channel, a user is required to input a PIN2 code to verify the identity of the user.
Only if the identity of the user passes the verification, that is, if the user has the authority to operate the fixed dialing channel, the fixed dialing channel of the electronic device and the smart card can be used for data transmission, so that misoperation can be avoided.
In some embodiments, in case the command type of the command content is a read type, the smart card-based data transmission method may further include the steps of, after S230:
And displaying the operation result on the interface where the fixed dialing channel is located.
For example, taking the example of reading the 6F7E file, when the electronic device receives the operation result sent by the smart card, the content of the 6F7E file may be extracted, and the content may be displayed on the interface of the fixed dial channel in one or more forms. For example, it can be shown as: MCCMNC location information: xxxxx, location information update status: xxx.
In some embodiments, the operation result may further include a file for detecting a smart card network connection condition, and at this time, the electronic device may read a value of the corresponding file from the operation result, and determine whether the smart card network connection is successful based on the value.
In the embodiment of the application, after the intelligent card processes the command data packet, the processing result or the content needing to be returned is returned to the electronic equipment through the fixed dialing channel, so that the bidirectional transmission of data is realized, and meanwhile, the electronic equipment displays the processing result or the content returned by the intelligent card on the interface where the fixed dialing channel is located, so that the user can conveniently know the processing result of the data.
In some embodiments, in a case where the command type of the command content is a write type and the operation result is an operation failure, the smart card-based data transmission method may further include the steps of:
the command packet is retransmitted through the fixed dial channel.
By taking code number switching as an example, if the operation result returned to the electronic device by the smart card is switching failure, the electronic device can send relevant command data packets to the smart card again, so that the success rate of switching is ensured.
The embodiment of the application utilizes the inherent fixed dialing channel of the electronic equipment to carry out data transmission with the intelligent card, thereby not only avoiding the problem that the additionally installed application in the electronic equipment cannot transmit data due to unauthorized call of the operating system of the electronic equipment, but also realizing two-way communication, and carrying out data transmission through the fixed dialing channel, requiring certain authority, and avoiding misoperation.
Based on the same inventive concept, the embodiment of the present application further provides a data transmission device based on a smart card, as shown in fig. 5, the data transmission device 500 based on a smart card may include:
A receiving module 501, configured to receive a command packet through a fixed dial channel of an electronic device, where the command packet includes identification information and command content;
the processing module 502 is configured to perform a corresponding operation on the command content according to the identification information, so as to obtain an operation result;
a sending module 503, configured to send the operation result to the electronic device through the fixed dial channel.
The embodiment of the application utilizes the inherent fixed dialing channel of the electronic equipment to carry out data transmission with the intelligent card in the electronic equipment, can effectively avoid the problem that the data cannot be transmitted due to the fact that an additionally installed application in the electronic equipment is not authorized to call the operating system of the electronic equipment, and can respectively process different types of command contents transmitted through the fixed dialing channel and return the processing result to the electronic equipment, thereby increasing the processing type of the data and realizing the bidirectional transmission of the data.
In some embodiments, the processing module 502 includes:
A determining unit for determining a command type of the command content according to the identification information;
and the processing unit is used for executing corresponding operation on the command content according to the command type to obtain an operation result.
In some embodiments, the determining unit is specifically configured to:
Under the condition that the identification information is empty, determining that the command type of the command content is a read type or a write type;
under the condition that the identification information is the first identification information, determining that the command type of the command content is a reading type;
and in the case that the identification information is the second identification information, determining that the command type of the command content is a writing type.
In some embodiments, where the identification information is non-null, the command packet further includes a key index sequence number, the smart card-based data transfer device 500 may further include:
The obtaining module is configured to obtain a key corresponding to the key index sequence number before the processing module 502 performs a corresponding operation on the command content according to the identification information to obtain an operation result;
the decryption module is used for decrypting the command content according to the secret key to obtain decrypted command content;
the processing module 502 is specifically configured to:
And executing corresponding operation on the decrypted command content according to the identification information to obtain an operation result.
In some embodiments, the smart card-based data transfer device 500 may further include:
The storage module is configured to store the command data packet after the receiving module 501 receives the command data packet sent by the electronic device through the fixed dial channel of the electronic device.
The embodiment of the application utilizes the inherent fixed dialing channel of the electronic equipment to carry out data transmission with the intelligent card, thereby not only avoiding the problem that the additionally installed application in the electronic equipment cannot transmit data due to unauthorized call of the operating system of the electronic equipment, but also realizing two-way communication, and carrying out data transmission through the fixed dialing channel, requiring certain authority, and avoiding misoperation.
Based on the same inventive concept, the embodiment of the present application further provides a data transmission device based on a smart card, as shown in fig. 6, the data transmission device 600 based on a smart card may include:
an acquisition module 601, configured to acquire a command packet;
a sending module 602, configured to send a command packet to a smart card of the electronic device through a fixed dial channel;
The receiving module 603 is configured to receive an operation result sent by the smart card for the command data packet, where the operation result is a result obtained by the smart card executing a corresponding operation on the command content in the command data packet according to the identification information in the command data packet.
The embodiment of the application utilizes the inherent fixed dialing channel of the electronic equipment to carry out data transmission with the intelligent card in the electronic equipment, can effectively avoid the problem that the data cannot be transmitted due to the fact that an additionally installed application in the electronic equipment is not authorized to call the operating system of the electronic equipment, and can respectively process different types of command contents transmitted through the fixed dialing channel and return the processing result to the electronic equipment, thereby increasing the processing type of the data and realizing the bidirectional transmission of the data.
In some embodiments, the smart card-based data transfer device 600 may further include:
The verification module is used for verifying the identity of a user of the electronic device before the sending module 602 sends the command data packet to the smart card of the electronic device through the fixed dialing channel so as to determine whether the user has the operation authority of the fixed dialing channel;
The sending module 602 is specifically configured to:
and under the condition that the user is determined to have the operation authority of the fixed dialing channel, sending a command data packet to the intelligent card through the fixed dialing channel.
In some embodiments, in case that the command type of the command contents is a read type, the smart card-based data transmission apparatus 600 may further include:
and the display module is used for displaying the operation result on the interface where the fixed dialing channel is located.
In some embodiments, in a case where the command type of the command content is a write type and the operation result is an operation failure, the sending module 602 is further configured to resend the command packet through the fixed dial channel after the receiving module 603 receives the operation result for the command packet sent by the smart card.
The embodiment of the application utilizes the inherent fixed dialing channel of the electronic equipment to carry out data transmission with the intelligent card, thereby not only avoiding the problem that the additionally installed application in the electronic equipment cannot transmit data due to unauthorized call of the operating system of the electronic equipment, but also realizing two-way communication, and carrying out data transmission through the fixed dialing channel, requiring certain authority, and avoiding misoperation.
Based on the same inventive concept, the embodiment of the application also provides a smart card, and fig. 7 is a schematic hardware structure diagram of the smart card according to the embodiment of the application.
As shown in fig. 7, the smart card 700 may include a processor 701 and a memory 702 storing computer program instructions.
In particular, the processor 701 may include a central processing unit (Central Processing Unit, CPU), or Application SPECIFIC INTEGRATED Circuit (ASIC), or may be configured as one or more integrated circuits that implement embodiments of the present application.
Memory 702 may include mass storage for data or instructions. By way of example, and not limitation, memory 702 may include a hard disk drive (HARD DISK DRIVE, HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) drive, or a combination of two or more of the foregoing. In one example, the memory 702 may include removable or non-removable (or fixed) media, or the memory 702 is a non-volatile solid state memory. Memory 702 may be internal or external to the integrated gateway disaster recovery device.
In one example, memory 702 may be Read Only Memory (ROM). In one example, the ROM may be mask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.
Memory 702 may include read-only memory (ROM), random-access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible memory storage devices. Thus, in general, the memory comprises one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors) it is operable to perform the operations described with reference to the methods in accordance with the application.
The processor 701 reads and executes the computer program instructions stored in the memory 702 to implement the method/steps in the embodiment shown in fig. 1, and achieves the corresponding technical effects achieved by executing the method/steps in the embodiment shown in fig. 1, which are not described herein for brevity.
In one example, the smart card 700 may also include a communication interface 703 and a bus 704. As shown in fig. 7, the processor 701, the memory 702, and the communication interface 703 are connected by a bus 704 and perform communication with each other.
The communication interface 703 is mainly used for implementing communication between each module, device, unit and/or apparatus in the embodiment of the present application.
Bus 704 includes hardware, software, or both for coupling the components of smart card 700 to each other. By way of example, and not limitation, bus 704 may include an accelerated graphics Port (ACCELERATED GRAPHICS Port, AGP) or other graphics Bus, an enhanced industry Standard architecture (Extended Industry Standard Architecture, EISA) Bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an industry Standard architecture (Industry Standard Architecture, ISA) Bus, an Infiniband interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a Micro Channel Architecture (MCA) Bus, a Peripheral Component Interconnect (PCI) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a video electronics standards Association local (VLB) Bus, or other suitable Bus, or a combination of two or more of these. Bus 704 may include one or more buses, where appropriate. Although embodiments of the application have been described and illustrated with respect to a particular bus, the application contemplates any suitable bus or interconnect.
After receiving the command data packet through the fixed dial channel of the electronic device, the smart card 700 may execute the smart card-based data transmission method according to the embodiment of the present application, thereby implementing the smart card-based data transmission method described in connection with fig. 1 and the smart card-based data transmission device shown in fig. 5.
Based on the same inventive concept, the embodiment of the application also provides a smart card, and fig. 8 is a schematic hardware structure of an electronic device according to the embodiment of the application.
As shown in fig. 8, the electronic device 800 may include a processor 801 and a memory 802 storing computer program instructions.
In particular, the processor 801 may include a central processing unit (Central Processing Unit, CPU), or Application SPECIFIC INTEGRATED Circuit (ASIC), or may be configured as one or more integrated circuits that implement embodiments of the present application.
Memory 802 may include mass storage for data or instructions. By way of example, and not limitation, memory 802 may include a hard disk drive (HARD DISK DRIVE, HDD), a floppy disk drive, flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (Universal Serial Bus, USB) drive, or a combination of two or more of these. In one example, memory 802 may include removable or non-removable (or fixed) media, or memory 802 is a non-volatile solid state memory. Memory 802 may be internal or external to the integrated gateway disaster recovery device.
In one example, memory 802 may be Read Only Memory (ROM). In one example, the ROM may be mask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.
Memory 802 may include Read Only Memory (ROM), random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible memory storage devices. Thus, in general, the memory comprises one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors) it is operable to perform the operations described with reference to the methods in accordance with the application.
The processor 801 reads and executes the computer program instructions stored in the memory 802 to implement the method/steps in the embodiment shown in fig. 2, and achieves the corresponding technical effects achieved by the example shown in fig. 2 executing the method/steps thereof, which will not be described herein for brevity.
In one example, electronic device 800 may also include a communication interface 803 and a bus 804. As shown in fig. 8, the processor 801, the memory 802, and the communication interface 803 are connected to each other via a bus 804 and perform communication with each other.
Communication interface 803 is primarily used to implement communication between modules, devices, units, and/or apparatuses in an embodiment of the present application.
Bus 804 includes hardware, software, or both for coupling components of electronic device 800 to one another. By way of example, and not limitation, bus 804 may include an accelerated graphics Port (ACCELERATED GRAPHICS Port, AGP) or other graphics Bus, an enhanced industry Standard architecture (Extended Industry Standard Architecture, EISA) Bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an industry Standard architecture (Industry Standard Architecture, ISA) Bus, an Infiniband interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a Micro Channel Architecture (MCA) Bus, a Peripheral Component Interconnect (PCI) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a video electronics standards Association local (VLB) Bus, or other suitable Bus, or a combination of two or more of these. Bus 804 may include one or more buses, where appropriate. Although embodiments of the application have been described and illustrated with respect to a particular bus, the application contemplates any suitable bus or interconnect.
After the electronic device 800 obtains the command data packet, the smart card-based data transmission method in the embodiment of the present application may be executed, so as to implement the smart card-based data transmission method described in connection with fig. 2, and the smart card-based data transmission apparatus shown in fig. 6.
In addition, in combination with the smart card-based data transmission method in the above embodiment, the embodiment of the present application may be implemented by providing a computer storage medium. The computer storage medium has stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the smartcard based data transmission methods of the embodiments described above.
In addition, the embodiment of the application also provides a computer program product, which comprises a computer program, and when the computer program is executed by a processor, the data transmission method based on the smart card in any one of the above embodiments is realized.
It should be understood that the application is not limited to the particular arrangements and instrumentality described above and shown in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. The method processes of the present application are not limited to the specific steps described and shown, but various changes, modifications and additions, or the order between steps may be made by those skilled in the art after appreciating the spirit of the present application.
The functional blocks shown in the above block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic Circuit, application SPECIFIC INTEGRATED Circuit (ASIC), appropriate firmware, plug-in, function card, or the like. When implemented in software, the elements of the application are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this disclosure describe some methods or systems based on a series of steps or devices. The present application is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, or may be performed in a different order from the order in the embodiments, or several steps may be performed simultaneously.
Aspects of the present application are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to being, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware which performs the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In the foregoing, only the specific embodiments of the present application are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present application is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present application, and they should be included in the scope of the present application.

Claims (14)

1. A data transmission method based on a smart card, comprising:
Receiving a command data packet through a fixed dialing channel of the electronic equipment, wherein the command data packet comprises identification information and command content;
Executing corresponding operation on the command content according to the identification information to obtain an operation result;
And sending the operation result to the electronic equipment through the fixed dialing channel.
2. The method according to claim 1, wherein the performing a corresponding operation on the command content according to the identification information, to obtain an operation result, includes:
Determining the command type of the command content according to the identification information;
And executing corresponding operation on the command content according to the command type to obtain the operation result.
3. The method of claim 2, wherein determining the command type of the command content based on the identification information comprises:
Under the condition that the identification information is empty, determining that the command type of the command content is a read type or a write type;
under the condition that the identification information is first identification information, determining that the command type of the command content is a reading type;
and determining that the command type of the command content is a writing type in the case that the identification information is second identification information.
4. The method according to claim 1, wherein in the case that the identification information is non-null, the command packet further includes a key index sequence number, and the method further includes, before performing a corresponding operation on the command content according to the identification information to obtain an operation result:
acquiring a key corresponding to the key index serial number;
decrypting the command content according to the key to obtain decrypted command content;
and executing corresponding operation on the command content according to the identification information to obtain an operation result, wherein the operation result comprises the following steps:
and executing corresponding operation on the decrypted command content according to the identification information to obtain an operation result.
5. The method of any of claims 1-4, wherein after receiving the command packet sent by the electronic device through the fixed dial-up channel of the electronic device, the method further comprises:
And storing the command data packet.
6. A data transmission method based on a smart card, comprising:
Acquiring a command data packet;
transmitting the command data packet to a smart card of the electronic equipment through a fixed dialing channel;
And receiving an operation result sent by the intelligent card and aiming at the command data packet, wherein the operation result is a result obtained by the intelligent card executing corresponding operation on command content in the command data packet according to the identification information in the command data packet.
7. The method of claim 6, wherein prior to said sending the command packet to the smart card of the electronic device via the fixed dial-up channel, the method further comprises:
performing identity verification on a user of the electronic equipment to determine whether the user has the operation authority of the fixed dialing channel;
The sending the command data packet to the smart card of the electronic device through the fixed dialing channel comprises the following steps:
And under the condition that the user is determined to have the operation authority of the fixed dialing channel, sending the command data packet to the intelligent card through the fixed dialing channel.
8. Method according to claim 6 or 7, characterized in that, in case the command type of the command content is a read type, the method further comprises, after the reception of the result of the operation for the command data packet sent by the smart card:
And displaying the operation result on an interface where the fixed dialing channel is located.
9. The method according to claim 6 or 7, wherein, in case the command type of the command content is a write type and the operation result is an operation failure, after receiving the operation result for the command data packet sent by the smart card, the method further comprises:
and retransmitting the command data packet through the fixed dial channel.
10. A smart card-based data transmission apparatus, comprising:
the receiving module is used for receiving a command data packet through a fixed dialing channel of the electronic equipment, wherein the command data packet comprises identification information and command content;
The processing module is used for executing corresponding operation on the command content according to the identification information to obtain an operation result;
and the sending module is used for sending the operation result to the electronic equipment through the fixed dialing channel.
11. A smart card-based data transmission apparatus, comprising:
the acquisition module is used for acquiring the command data packet;
The sending module is used for sending the command data packet to the intelligent card of the electronic equipment through the fixed dialing channel;
And the receiving module is used for receiving an operation result sent by the intelligent card and aiming at the command data packet, wherein the operation result is a result obtained by the intelligent card executing corresponding operation on the command content in the command data packet according to the identification information in the command data packet.
12. A smart card, comprising: a processor and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the method of any of claims 1-5.
13. An electronic device, comprising: a processor and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the method of any of claims 6-9.
14. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-5 or the method according to any one of claims 6-9.
CN202410319951.9A 2024-03-20 Data transmission method and device based on smart card, equipment and product Pending CN118301592A (en)

Publications (1)

Publication Number Publication Date
CN118301592A true CN118301592A (en) 2024-07-05

Family

ID=

Similar Documents

Publication Publication Date Title
US8893234B2 (en) Method of securing access to a proximity communication module in a mobile terminal
US7360091B2 (en) Secure data transfer method of using a smart card
CN102056077B (en) Method and device for applying smart card by key
CN107733652B (en) Unlocking method and system for shared vehicle and vehicle lock
CN111127015B (en) Transaction data processing method and device, trusted application and electronic device
CN102223630A (en) Remote control system and method
CN103699997A (en) Method, device and electronic equipment for locking mobile payment service
CN110278083A (en) ID authentication request treating method and apparatus, equipment replacement method and apparatus
JP3139483B2 (en) Personal communication system and communication method therefor
CN102082669A (en) Security certification method and device
CN114463012A (en) Authentication method, payment method, device and equipment
CN107437997B (en) Radio frequency communication device and method
WO2000024218A1 (en) A method and a system for authentication
US10511946B2 (en) Dynamic secure messaging
CN102667806B (en) A chip card, an electronic system, a method being implemented by a chip card and a computer program product
CN104640112A (en) Authentication method, device and system
CN105025548B (en) A kind of the connection control method and device of SIM card
CN101588578B (en) Attack test method and device
CN118301592A (en) Data transmission method and device based on smart card, equipment and product
CN110110568A (en) A kind of NFC electronic lock card reader and card reading method based on random key
CN102624680A (en) Mobile payment system employing combined cipher and mobile payment method thereof
CN114386075A (en) Data transmission channel establishing method, data transmission device, data transmission equipment and medium
CN115344848A (en) Identification obtaining method, device, equipment and computer readable storage medium
CN104424453A (en) System and method for verifying non-contact inductive label
CN102404711B (en) Locking net device of mobile terminal and identifying method between modules

Legal Events

Date Code Title Description
PB01 Publication