Music sharing system
By using edge servers and near-field communication technology, combined with blockchain evidence storage mechanisms, efficient, secure, and reliable local music sharing and personalized recommendations are achieved in a local area network environment. This solves the problems of music permission protection and low sharing efficiency, and improves the user experience.
Patent Information
- Application Number
- CN202611101280.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-23
- Publication Date
- 2026-11-17
AI Technical Summary
In environments with limited network connectivity, such as local area networks, enclosed venues, and other environments, existing technologies cannot effectively protect the permissions of local music, and music sharing efficiency is low, making it difficult to meet users' personalized needs and expectations for social interaction.
Lightweight metadata indexing and scheduling are achieved through edge servers, efficient point-to-point file delivery is enabled using short-range communication links, copyright ownership is guaranteed by blockchain notarization mechanism, music files are transmitted using dual-channel short-range communication, and personalized recommendations and social interaction functions are combined with physiological characteristics.
It enables efficient, secure, and reliable local music sharing in a local area network environment, improving transmission efficiency and stability, while providing personalized recommendations and social interaction experiences.
Smart Images

Figure CN123123329A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of artificial intelligence technology, specifically to a music sharing system. Background Technology
[0002] With the widespread adoption of mobile internet and smart devices, users' demand for personalized management and social sharing of local music is growing. To enable point-to-point local music sharing and social interaction among users in special environments with limited or dependent network connections, such as local area networks, enclosed venues, and transportation, the relevant technologies mainly rely on Bluetooth and satellite network transmission. However, Bluetooth and satellite network transmission cannot protect the permissions of local music, and the sharing efficiency is relatively low. Summary of the Invention
[0003] This application provides a music sharing system.
[0004] In a first aspect, embodiments of this application provide a music sharing system, the system comprising: First user terminal, second user terminal, and edge server; The first user terminal and the second user terminal are respectively connected to the edge server. The first user terminal obtains the metadata of the local music file and uploads the metadata to the edge server; the edge server generates a music list required by the second user terminal based on the metadata; the second user terminal triggers a selection operation for the target music based on the music list; in response to the selection operation of the target music, the edge server sends a sharing request to the first user terminal; based on the sharing request, the first user terminal establishes a short-range communication connection with the second user terminal and sends the target music file of the target music to the second user terminal through the short-range communication connection.
[0005] In some embodiments, the first user terminal is further configured to: In response to the first user's music authorization operation, obtain the metadata and hash value of the local music file in the first user's terminal; Associate and combine metadata and hash values into a data package for evidence storage; The evidence storage data packet is encapsulated as a transaction and broadcast to the blockchain network to obtain the evidence storage transaction identifier of the local music file returned by the blockchain network. And the blockchain transaction records corresponding to the stored transactions.
[0006] In some embodiments, the first user terminal uploads metadata to the edge server, including: The first user terminal uses a symmetric encryption algorithm to encrypt the metadata and then uploads the encrypted metadata to the edge server.
[0007] In some embodiments, the edge server is also used for: Stores metadata uploaded by the first user terminal; Establish the correspondence between metadata and the device identifier of the first user terminal, and establish the association between metadata and the notarized transaction identifier in the blockchain network.
[0008] In some embodiments, the edge server is also used for: An inverted index is built using music attribute information in the metadata as the index item, so that the second user terminal can determine the target music from the music list based on the inverted index.
[0009] In some embodiments, the first user terminal establishes a short-range communication connection with the second user terminal based on a sharing request, and sends the target music file of the target music to the second user terminal through the short-range communication connection, including: In response to the sharing request, the first user terminal obtains the location of the second user terminal. After confirming that the second user terminal is within a preset distance range based on the location, it establishes a short-range communication connection with the second user terminal. The first user terminal encrypts the target music file and sends the encrypted target music file, along with the decryption password, to the second user terminal via a short-range communication connection.
[0010] In some embodiments, the proximity communication connection includes a Bluetooth connection and / or a near-field communication connection.
[0011] In some embodiments, the first user terminal sends an encrypted target music file and a decryption password for the encrypted target music file to the second user terminal via a short-range communication connection, including: The first user terminal sends the encrypted target music file to the second user terminal via Bluetooth connection, and sends the decryption password to the second user terminal via near field communication connection.
[0012] In some embodiments, the second user terminal is further configured to: Receive the encrypted target music file and decryption password sent by the first user terminal via a short-range communication connection; Decrypt the encrypted target music file based on the decryption password; Based on the blockchain transaction records stored on the first user terminal, the legality of the decrypted target music file is verified, and the verified target music file is played.
[0013] In some embodiments, the edge server is also used for: Obtain physiological characteristic data from the second user terminal; Based on the matching degree between physiological characteristic data and the metadata of each music file in the music list, the music files in the music list are filtered and sorted to obtain a recommended music list, which is then sent to the second user terminal.
[0014] This application provides a music sharing system including a first user terminal, a second user terminal, and an edge server. The first and second user terminals are communicatively connected to the edge server. The first user terminal obtains metadata of a local music file and uploads it to the edge server. The edge server generates a music list required by the second user terminal based on the metadata. The second user terminal triggers a selection operation for a target music file based on the music list. In response to the selection operation, the edge server sends a sharing request to the first user terminal. Based on the sharing request, the first user terminal establishes a short-range communication connection with the second user terminal and sends the target music file to the second user terminal through this short-range communication connection. This application achieves efficient sharing of local music while reducing the bandwidth pressure on the central network by having the edge server transmit only lightweight metadata to schedule sharing requests, and then having the first and second user terminals establish a short-range communication connection to directly transmit the complete music file.
[0015] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are merely embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort, and this application can be applied to other similar scenarios based on the provided drawings.
[0017] Figure 1 A schematic diagram of a music sharing system provided in an embodiment of this application; Figure 2 A flowchart illustrating a music sharing implementation method provided in this application embodiment; Figure 3 A flowchart illustrating a music sharing method provided in this application embodiment; Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0018] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. The described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0019] It should be noted that the terms "system," "device," "unit," and / or "module" used in this application are methods of distinguishing different components, elements, parts, sections, or assemblies at different levels. However, if other terms can achieve the same purpose, they can be replaced by other expressions.
[0020] Hereinafter, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include one or more of that feature.
[0021] With the widespread adoption of mobile internet and smart devices, users' demand for personalized management and social sharing of local music is growing. To enable point-to-point local music sharing and social interaction among users in special environments with limited or dependent network connections, such as local area networks, enclosed venues, and transportation, the relevant technologies mainly rely on Bluetooth and satellite network transmission. However, Bluetooth and satellite network transmission cannot protect the permissions of local music, and the sharing efficiency is relatively low.
[0022] Taking the aircraft cabin scenario as an example, during flight, passengers are in a relatively closed environment with limited network connectivity (usually relying on satellite networks or onboard WiFi). Long-haul flights objectively create a demand for personalized music entertainment and social interaction.
[0023] Currently, relevant technologies enable point-to-point music sharing and social interaction among passengers in an aircraft cabin primarily through the following two methods: 1) During flight, passengers can share music files or streaming media via Bluetooth or onboard satellite network; 2) For data management in the aviation field, a decentralized blockchain network is introduced. Relying on the characteristics of timestamps and immutability, various aircraft maintenance data of leased aircraft during flight missions are collected from multiple parties, jointly maintained, and stored on the blockchain to provide the public with real and reliable aircraft status data.
[0024] However, all of the above methods have obvious shortcomings: the former, which uses Bluetooth or satellite networks for music sharing, not only has poor transmission efficiency and stability, but also lacks an effective mechanism for defining and protecting the ownership of users' local music copyrights, and cannot trace and verify the permission characteristics of music files; the latter, although utilizing blockchain technology, is limited to the maintenance and sharing of aviation maintenance data, and is not geared towards passengers' in-flight music entertainment needs. It cannot solve the practical problems of passengers legally sharing local music, personalized recommendations, and social interaction during flights, and is difficult to meet the growing expectations of in-flight passengers for entertainment and social experiences.
[0025] To address the aforementioned issues, this application uploads the metadata of local music to an edge server via a first user terminal to generate a music list. A second user terminal then selects and triggers a sharing request. Based on this request, the first user terminal establishes a short-range communication connection with the second user terminal and directly transmits the target music file. This system architecture achieves lightweight metadata indexing and scheduling via an edge server and efficient point-to-point file delivery via a short-range communication link, without requiring the complete music file to be relayed through a central server. This effectively reduces the transmission bandwidth and storage pressure on the central network and edge servers, while ensuring the speed and stability of large-capacity music file transmission in a local area network environment. Furthermore, by keeping the complete music file locally on the source terminal and sharing and discovering only through metadata, it provides system architecture support for subsequent blockchain-based copyright registration and authorization tracing, significantly improving the efficiency and security of local music sharing between users in closed or local area network environments.
[0026] The following is a detailed description of a music sharing system provided in this application, with reference to the accompanying drawings.
[0027] Figure 1 A schematic diagram of a music sharing system provided in an embodiment of this application is shown. Figure 1 As shown, the music sharing system includes a first user terminal, a second user terminal, and an edge server, wherein the first user terminal and the second user terminal are respectively connected to the edge server.
[0028] To realize the music sharing system of this application, it is necessary to pre-deploy dedicated wireless local area network equipment in the cabin to form a wireless communication network covering the entire cabin, and install edge servers in appropriate locations to reduce data transmission latency and improve response speed; at the same time, a microservice architecture is adopted to develop the music sharing platform, which is divided into multiple functional modules such as user management, music management, recommendation system, and social interaction.
[0029] When the system is running, the first user terminal obtains the metadata of the local music file and uploads it to the edge server. The edge server generates a music list for the second user terminal to view based on the metadata. After the second user terminal selects the target music from the list, the edge server sends a sharing request to the first user terminal. The first user terminal responds to the request and establishes a short-range communication connection with the second user terminal. Through this connection, the target music file is sent directly to the second user terminal, completing the music sharing.
[0030] In this application, before uploading metadata, the first user terminal is also used to perform a blockchain-based local music rights confirmation and notarization operation. Specifically, in response to the first user's music authorization operation, the first user terminal obtains the metadata of the local music file (including song name, artist, album, duration, etc.), and calculates the corresponding file hash value using the SHA-256 hash algorithm; the metadata and hash value are associated and combined into a notarization data packet, and the notarization data packet is encapsulated as a transaction and broadcast to the blockchain network.
[0031] The blockchain network is a pre-built consortium blockchain network, inviting relevant parties such as airlines and music copyright management organizations to join as consortium nodes. It adopts the Ethereum blockchain framework and uses the Practical Byzantine Fault Tolerance (PBFT) algorithm as its consensus mechanism. Each node maintains a complete blockchain ledger to ensure the immutability and traceability of the data. After a transaction is verified through the consortium blockchain network's consensus mechanism, it is recorded in a blockchain block, completing the confirmation and notarization of the local music file's ownership. The blockchain network returns the corresponding notarization transaction identifier to the first user terminal, which stores the corresponding blockchain transaction record (including timestamp, transaction ID, etc.) for subsequent querying and verification of the music file's copyright ownership.
[0032] Through the above-mentioned on-chain evidence storage operation, this application completes the proof of ownership of the user's local music before music sharing, providing a credible blockchain evidence storage foundation for subsequent legal sharing and authorization traceability.
[0033] In this application, the first user terminal uploads metadata to the edge server, including: the first user terminal encrypts the metadata using a symmetric encryption algorithm and uploads the encrypted metadata to the edge server.
[0034] Considering the instability of the network environment and the limited bandwidth resources, this application adopts a lightweight title index transmission method to avoid excessive network load and transmission interruption risks caused by transmitting complete audio files. Specifically, after the user selects the local music to be shared on the first user terminal, the first user terminal only extracts the key metadata of the local music file (including but not limited to song name, artist, album, duration, etc.), without encrypting and uploading the complete audio file. Then, a symmetric encryption algorithm is used to encrypt the key metadata, generating a lightweight encrypted data packet, which is then uploaded to the edge server via a wireless LAN. Since the amount of data transmitted is significantly reduced compared to the complete audio file, it not only significantly reduces network bandwidth load and improves transmission efficiency, but also effectively reduces the risk of transmission interruption or delay caused by excessive data volume, ensuring the stability and reliability of the music sharing process in weak network environments.
[0035] In this application, the edge server is also used to: receive and store metadata uploaded by the first user terminal (the encrypted lightweight data packet is decrypted to obtain the original metadata); establish a correspondence between the metadata and the device identifier of the first user terminal in the local storage device and the music sharing platform database, and establish an association between the metadata and the evidence transaction identifier in the blockchain network, so that in the subsequent music request process, the music source terminal can be quickly located according to the device identifier, and the corresponding blockchain confirmation and evidence storage information can be associated according to the evidence transaction identifier, so as to realize convenient traceability and verification of copyright ownership.
[0036] In addition, to further improve the efficiency of the second user terminal in retrieving target music from the music list, the edge server is also used to: construct an inverted index using music attribute information in the metadata (including but not limited to music title, artist name and other high-frequency search fields) as index items and adopt inverted index technology; when performing music retrieval, the second user terminal matches and searches in the inverted index according to the input keywords, thereby quickly and accurately determining the target music from the music list and significantly improving the efficiency of music discovery and selection.
[0037] In this application, a first user terminal establishes a short-range communication connection with a second user terminal based on a sharing request, and sends the target music file of the target music to the second user terminal through the short-range communication connection. Specifically, this includes: the first user terminal responding to a sharing request sent by an edge server, the sharing request containing at least the device identifier of the second user terminal; the first user terminal obtaining the precise spatial location of the second user terminal using ultra-wideband (UWB) technology based on the device identifier, and confirming that the second user terminal is within a preset distance range (e.g., ensuring that both are within an effective distance for short-range communication) based on the obtained location, and then establishing a short-range communication connection with the second user terminal. The short-range communication connection includes Bluetooth and / or Near Field Communication (NFC) connections.
[0038] After establishing a short-range communication connection, the first user terminal encrypts the complete audio file corresponding to the target music stored locally (for example, by using the AES symmetric encryption algorithm), and sends the encrypted target music file and the corresponding decryption password to the second user terminal through the short-range communication connection.
[0039] In one specific implementation, the first user terminal sends an encrypted target music file to the second user terminal via Bluetooth, and simultaneously sends a decryption password to the second user terminal via Near Field Communication (NFC). The decryption password is generated by the first user terminal using the HMAC-SHA256 algorithm based on the hash value of the target music file, and transmitted to the second user terminal via NFC near field sensing. This separates the large file data stream and the authorization certificate into two communication links with different physical characteristics, ensuring both the efficiency of file transmission (Bluetooth has high bandwidth) and the security of authorization certificate transmission (NFC provides near field sensing, physical isolation, and anti-interception).
[0040] The second user terminal is also used to: receive the encrypted target music file and decryption password sent by the first user terminal via a short-range communication connection; decrypt the encrypted target music file based on the decryption password to obtain the original audio data; and, based on the blockchain transaction records stored in the first user terminal (the first user terminal, as a storage node of the blockchain network, synchronously stores the corresponding blockchain transaction records and hash values locally after uploading music metadata to complete the confirmation and notarization), verify the legality of the copyright ownership and / or data integrity of the decrypted target music file (e.g., comparing the currently received file hash value with the hash value stored in the blockchain), and send the verified target music file to the player for playback; if the verification fails, playback is refused and an error is reported. Through the above-mentioned end-side verification mechanism, this application ensures that the received music file is of legal origin, complete in content, and has not been tampered with, further strengthening copyright protection and data credibility in the music sharing process.
[0041] In this application, the edge server is also used to obtain the physiological characteristic data of the second user terminal, and to filter and sort the music files in the music list according to the matching degree between the physiological characteristic data and the metadata of each music file in the music list, so as to generate a recommended music list and send the recommended music list to the second user terminal.
[0042] Specifically, the second user terminal has a built-in or external physiological feature acquisition device, including but not limited to photoelectric pulse sensors and accelerometers. During the operation of the music sharing platform, the second user terminal collects the second user's pulse data and motion status data in real time through the pulse sensor and accelerometer, and uses Bluetooth Low Energy (BLE) technology to transmit the collected physiological feature data to the music sharing application on the second user terminal.
[0043] The second user terminal or edge server processes the collected physiological characteristic data as follows: First, the pulse data is preprocessed, and the heart rate variability (HRV) feature parameters are extracted using the Fast Fourier Transform (FFT) algorithm. Combined with motion state data, the user's current emotional state and activity intensity are analyzed (e.g., determining whether the user is currently relaxed, excited, or fatigued). After feature extraction, a fusion recommendation strategy is used to generate a recommendation list: On one hand, based on the user's historical music playback records, sharing behavior, and current physiological characteristics, a collaborative filtering algorithm is used to calculate the similarity between the user and other users, recalling music liked by other users with high similarity as the first candidate set; on the other hand, based on the metadata information of each music file in the music list (including music style, rhythm, lyrical emotion, etc.), a content-based recommendation algorithm is used to filter music that matches the user's current physiological characteristics and preferences as the second candidate set; finally, the recommendation results of the collaborative filtering algorithm and the content-based recommendation algorithm are weighted and fused to obtain the final recommended music list. The edge server sends the recommended music list to the second user's terminal for display, thereby providing the second user with personalized music recommendations that match their current mood and music preferences, improving the accuracy of music discovery and user experience.
[0044] After the second user selects the target music through a recommended music list or a music list and completes the reception and decryption of the music file, the second user's terminal is also used to play the target music file and provide social interaction functions. Specifically, in response to the second user's social interaction operations on the music playback interface, the second user's terminal generates comment information and / or like information, and associates the comment information and / or like information with the target music's display page on the music sharing platform through an edge server. Simultaneously, it broadcasts the comment information and / or like information to the first user's terminal and / or other online user terminals on the music sharing platform to support real-time chat communication between the second user, the first user, and other listeners, forming a social interaction circle around music sharing. Through the above mechanism, this application, based on realizing music sharing, further constructs social connections between users, enhancing user stickiness and platform interactivity.
[0045] In summary, this application constructs a music sharing system comprising a first user terminal, a second user terminal, and an edge server. By combining multi-dimensional technical means such as blockchain notarization, lightweight metadata data transmission, dual-channel short-range communication, and personalized recommendations based on physiological characteristics, it achieves efficient, secure, and reliable sharing of local music in weak network or local area network environments. Specifically, the blockchain-based rights confirmation and notarization mechanism provides tamper-proof and traceable protection for music copyright ownership; the lightweight title index transmission method significantly reduces network bandwidth load and transmission interruption risks; separating large file data streams and authorization credentials through Bluetooth and NFC dual physical links balances transmission efficiency and authorization security; edge-side file legality verification based on blockchain transaction records further strengthens copyright protection and data integrity verification; combining physiological characteristic collection and hybrid recommendation algorithms provides users with personalized music recommendations tailored to their current emotional state; and simultaneously, based on social interaction functions such as comments, likes, and real-time chat, it constructs a user social circle around music sharing, enhancing user stickiness and platform interactivity, and significantly improving the music sharing experience for users in local area network environments.
[0046] Furthermore, for ease of understanding, Figure 2 A schematic diagram of a music sharing implementation method is shown.
[0047] In the embodiments of this application, reference is made to Figure 2 The music sharing implementation method provided in this application first involves building an in-cabin music library sharing platform, including deploying hardware facilities such as WLAN devices and edge servers, and developing a software platform that includes modules such as user management, music management, recommendation system, and social interaction using a microservice architecture.
[0048] Once the platform is ready, it uses blockchain technology to confirm and store the ownership of users' local music. By building a consortium blockchain and adopting the PBFT consensus mechanism, it packages the collected music metadata and SHA-256 hash values onto the blockchain to ensure that the copyright ownership is immutable and traceable.
[0049] After the rights are confirmed, the user uploads the local music metadata to the edge server in a lightweight manner after AES-256 encryption. The edge server then creates an index for other users to browse and retrieve.
[0050] During the music recommendation phase, the system collects physiological characteristic data such as the user's pulse and exercise status, uses the FFT algorithm to extract heart rate variability features, and combines collaborative filtering and content recommendation algorithms for weighted fusion to generate a personalized recommendation list for the user.
[0051] Once a user selects a target song, the system sends a sharing request to the music owner via WLAN. The music owner then transmits a hash password generated by the HMAC-SHA256 algorithm to the requesting user via NFC+UWB technology, while simultaneously transmitting the encrypted complete music file via Bluetooth. After receiving the file, the requesting user verifies its legitimacy based on blockchain-based evidence. Once verified, the file is decrypted and played, and users can engage in social interactions such as commenting, liking, and real-time chat, thus completing a closed-loop process from music ownership confirmation, discovery, transmission to social sharing.
[0052] The specific implementation process of each of the above steps can be found in [reference]. Figure 1 The embodiments shown will not be described in detail here.
[0053] In summary, this application enables convenient and personalized local music sharing and social interaction among users, while ensuring copyright credibility, efficient transmission, and secure authorization.
[0054] Figure 3 A flowchart of a music sharing method provided in an embodiment of this application is shown. This method is applied to the aforementioned music sharing system, such as... Figure 3 As shown, the music sharing method includes steps 101-103.
[0055] Step 101: Obtain the metadata of the local music file.
[0056] In some embodiments, in response to a music authorization operation by a first user, the first user terminal obtains metadata of a local music file in the first user terminal; wherein, the metadata includes information such as song name, artist, album, and duration. In a feasible implementation, simultaneously with or after obtaining the metadata, the first user terminal also uses the SHA-256 hash algorithm to calculate the corresponding file hash value for the local music file, and associates and combines the metadata and hash value into a notarization data packet. The notarization data packet is then encapsulated as a transaction and broadcast to the blockchain network for notarization and authentication, thereby obtaining the notarization transaction identifier returned by the blockchain network and storing the corresponding blockchain transaction record.
[0057] In one feasible implementation, the first user terminal uploads metadata to the edge server. Specifically, the first user terminal encrypts the metadata using a symmetric encryption algorithm and uploads the encrypted metadata to the edge server. Upon receiving the encrypted metadata, the edge server decrypts it to obtain the original metadata and establishes a mapping between the metadata and the device identifier of the first user terminal in its local storage device and the music sharing platform database, as well as a link between the metadata and the notarized transaction identifier in the blockchain network. Furthermore, to further improve retrieval efficiency, the edge server uses music attribute information (including but not limited to music titles and artist names) from the metadata as index items and constructs an inverted index using inverted index technology, enabling the second user terminal to quickly determine the target music from the music list based on the inverted index.
[0058] Step 102: Generate a music list based on metadata so that the user can trigger the selection of target music based on the music list.
[0059] In some embodiments, a first user terminal uploads metadata to an edge server; the edge server receives and stores the metadata, and generates a music list that can be viewed by a second user terminal based on the metadata; the second user terminal displays the music list and selects a target music from the music list in response to the second user's operation.
[0060] Step 103: In response to the user's selection of the target music, send the target music file to the user.
[0061] In some embodiments, in response to the second user terminal's selection of target music, the edge server sends a sharing request to the first user terminal; based on the sharing request, the first user terminal establishes a short-range communication connection with the second user terminal and sends the target music file of the target music to the second user terminal through the short-range communication connection.
[0062] In one feasible implementation, in response to a sharing request, the first user terminal obtains the precise spatial location of the second user terminal using Ultra-Wideband (UWB) technology. After confirming that the second user terminal is within a preset distance range based on the obtained location, it establishes a near-field communication (NFC) connection with the second user terminal. The NFC connection includes a Bluetooth connection and / or a Near Field Communication (NFC) connection. The first user terminal encrypts the complete audio file corresponding to the target music stored locally and sends the encrypted target music file and its corresponding decryption password to the second user terminal via the NFC connection. In a specific implementation, the first user terminal sends the encrypted target music file to the second user terminal via Bluetooth and simultaneously sends the decryption password via NFC. The decryption password is generated by the first user terminal using the HMAC-SHA256 algorithm based on the hash value of the target music file.
[0063] In one feasible implementation, the second user terminal receives the encrypted target music file and decryption password sent by the first user terminal via a short-range communication connection; decrypts the encrypted target music file based on the decryption password; and verifies the legality of the decrypted target music file based on the blockchain transaction records stored in the first user terminal, and plays the verified target music file.
[0064] In one feasible implementation, the edge server also acquires the physiological characteristic data of the second user terminal, and filters and sorts the music files in the music list based on the matching degree between the physiological characteristic data and the metadata of each music file in the music list to generate a recommended music list, which is then sent to the second user terminal. Specifically, the second user terminal collects the user's pulse data and motion state data in real time through built-in or external physiological characteristic acquisition devices (including photoelectric pulse sensors and accelerometers), and transmits the collected physiological characteristic data to the music sharing application on the second user terminal using Bluetooth Low Energy (BLE) technology; the second user terminal or the edge server uses the Fast Fourier Transform (FFT) algorithm to extract heart rate variability (HRV) feature parameters from the physiological characteristic data, and analyzes the user's current emotional state and activity intensity in combination with motion state data; then, a fusion recommendation strategy is adopted to weight and fuse the first recommendation result based on the collaborative filtering algorithm and the second recommendation result based on the content recommendation algorithm to obtain the final recommended music list.
[0065] In one feasible implementation, after playing the target music file, the second user terminal also responds to the second user's social interaction on the music playback interface by generating comment information and / or like information, and associates the comment information and / or like information with the display page of the target music on the music sharing platform through the edge server, while broadcasting the comment information and / or like information to the first user terminal and / or other online user terminals on the music sharing platform.
[0066] The specific implementation process of each of the above steps can be found in [reference]. Figure 1 and Figure 2 The embodiments shown will not be described in detail here.
[0067] The methods and systems provided in the embodiments of this application have been described above. To implement the functions of the methods provided in the embodiments of this application, the electronic device may include hardware structures and software modules, and may implement the above functions in the form of hardware structures, software modules, or a combination of hardware structures and software modules. One of the above functions may be executed in the form of hardware structures, software modules, or a combination of hardware structures and software modules.
[0068] Figure 4 This is a block diagram illustrating an electronic device 400 for implementing the music sharing method described above, according to an exemplary embodiment. For example, the electronic device 400 may be a mobile phone, computer, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0069] Reference Figure 4 The electronic device 400 may include a communication interface 401, capable of interacting with other devices; a processor 402, connected to the communication interface 401 to interact with other devices, used to execute the methods provided by one or more of the above-described technical solutions when running a computer program; and a memory 403, on which the computer program is stored. Specifically, the specific processing procedure of the processor 402 can refer to the music sharing method described in the above embodiments of this disclosure.
[0070] Of course, in practical applications, the various components in electronic device 400 are coupled together through bus system 404. It can be understood that bus system 404 is used to realize the connection and communication between these components. In addition to a data bus, bus system 404 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, in... Figure 4 The general designated all buses as Bus System 404.
[0071] The memory 403 in this embodiment is used to store various types of data to support the operation of the electronic device 400. Examples of such data include any computer program used to operate on the electronic device 400.
[0072] The methods disclosed in the embodiments of this application can be applied to processor 402, or implemented by processor 402. Processor 402 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 402 or by instructions in the form of software. The processor 402 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 402 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in memory 403. Processor 402 reads the information in memory 403 and combines its hardware to complete the steps of the aforementioned method.
[0073] In an exemplary embodiment, the electronic device 400 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.
[0074] Embodiments of this disclosure also propose a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to perform the music sharing method described in the above embodiments of this disclosure.
[0075] Embodiments of this disclosure also provide a computer program product, including a computer program that is executed by a processor using the music sharing method described in the above embodiments of this disclosure.
[0076] Embodiments of this disclosure also propose a chip including one or more interface circuits and one or more processors; the interface circuits are used to receive signals from the memory of an electronic device and send signals to the processors, the signals including computer instructions stored in the memory, which, when executed by the processor, cause the electronic device to perform the music sharing method described in the above embodiments of this disclosure.
[0077] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0078] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0079] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.
[0080] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processing module, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (control method), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0081] It should be understood that various parts of the embodiments of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0082] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0083] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc.
[0084] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A music sharing system, characterized in that, include: First user terminal, second user terminal, and edge server; The first user terminal and the second user terminal are respectively connected to the edge server. The first user terminal obtains the metadata of the local music file and uploads the metadata to the edge server; The edge server generates a music list required by the second user terminal based on the metadata; the second user terminal triggers a selection operation for the target music based on the music list. In response to the selection of the target music, the edge server sends a sharing request to the first user terminal; Based on the sharing request, the first user terminal establishes a short-range communication connection with the second user terminal, and sends the target music file of the target music to the second user terminal through the short-range communication connection.
2. The system according to claim 1, characterized in that, The first user terminal is also used for: In response to the music authorization operation of the first user, obtain the metadata and hash value of the local music file in the first user's terminal; The metadata and hash value are associated and combined into a data package for evidence storage; The evidence storage data packet is encapsulated into a transaction and broadcast to the blockchain network to obtain the evidence storage transaction identifier of the local music file returned by the blockchain network; And to store the blockchain transaction records corresponding to the transactions.
3. The system according to claim 1, characterized in that, The first user terminal uploads the metadata to the edge server, including: The first user terminal uses a symmetric encryption algorithm to encrypt the metadata and uploads the encrypted metadata to the edge server.
4. The system according to claim 1, characterized in that, The edge server is also used for: Store the metadata uploaded by the first user terminal; Establish a correspondence between the metadata and the device identifier of the first user terminal, and establish an association between the metadata and the notarized transaction identifier in the blockchain network.
5. The system according to claim 1, characterized in that, The edge server is also used for: An inverted index is created using the music attribute information in the metadata as the index item, so that the second user terminal can determine the target music from the music list based on the inverted index.
6. The system according to claim 1, characterized in that, Based on the sharing request, the first user terminal establishes a short-range communication connection with the second user terminal, and sends the target music file of the target music to the second user terminal through the short-range communication connection, including: In response to the sharing request, the first user terminal obtains the location of the second user terminal, and after confirming that the second user terminal is within a preset distance range based on the location, establishes the short-range communication connection with the second user terminal. The first user terminal encrypts the target music file and sends the encrypted target music file and the decryption password of the encrypted target music file to the second user terminal through the short-range communication connection.
7. The system according to claim 6, characterized in that, The near-field communication connection includes Bluetooth connection and / or near-field communication connection.
8. The system according to claim 6, characterized in that, The first user terminal sends an encrypted target music file and a decryption password for the encrypted target music file to the second user terminal via the short-range communication connection, including: The first user terminal sends the encrypted target music file to the second user terminal via Bluetooth connection, and sends the decryption password to the second user terminal via near field communication connection.
9. The system according to claim 8, characterized in that, The second user terminal is also used for: The encrypted target music file and the decryption password sent by the first user terminal are received through the short-range communication connection. Decrypt the encrypted target music file based on the decryption password; Based on the blockchain transaction records stored in the first user terminal, the legality of the decrypted target music file is verified, and the verified target music file is played.
10. The system according to claim 1, characterized in that, The edge server is also used for: Obtain physiological characteristic data from the second user terminal; Based on the matching degree between the physiological characteristic data and the metadata of each music file in the music list, the music files in the music list are filtered and sorted to obtain a recommended music list, and the recommended music list is sent to the second user terminal.
