Split television screen end USB port adaptation method and device, split television and medium
By judging the connection status of the external storage device in the split TV and automatically updating the configuration parameters, the problem of low USB port connection success rate is solved, and a higher connection success rate and more stable device adaptation is achieved.
Patent Information
- Application Number
- CN202411996477.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-05-06
Smart Images

Figure CN119946345A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technology, and in particular to a split TV screen USB (Universal Serial Bus) port adaptation method, device, split TV and medium. Background Art
[0002] The split TV is mainly composed of three components: the host box, the signal transmission electronic wire and the display screen. In order to facilitate users to play multimedia files such as videos directly through external storage devices (such as USB flash drives, hard drives), a USB interface is usually integrated on the side of the display screen. Inside the split TV, the physical link of the USB interface is: starting from the USB port on the main board of the host box, transmitted via the electronic wire, connected to the adapter board at the display screen end, and further extended to the buffer board (buffer board), which acts as a relay station and finally connects to the USB interface on the side of the display screen through a dedicated USB board cable.
[0003] However, since the physical link length of the USB port on the side of the screen is too long, it is easy to cause abnormal recognition of external storage devices such as U disks and hard disks. Therefore, how to improve the success rate of connecting the USB port on the screen with external storage devices has become a problem to be solved in this field.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a split TV screen USB port adaptation method, device, split TV and medium, aiming to solve the technical problem of how to improve the success rate of connecting the screen USB port with an external storage device.
[0006] To achieve the above purpose, the present application proposes a method for adapting a USB port on a split TV screen, the method comprising:
[0007] Determine whether the external storage device of the split TV is successfully connected;
[0008] If the external storage device is not connected successfully, and the array sequence number of the current configuration parameters of the split television in the preset parameter polling array does not exceed the preset maximum sequence number, then the configuration parameters of the split television are updated to the next set of configuration parameters in the parameter polling array, wherein the parameter polling array includes multiple groups of configuration parameters arranged in a preset first order;
[0009] After sleeping for a preset time, return to the step of determining whether the external storage device is successfully connected, until the external storage device is successfully connected.
[0010] In one embodiment, the step of determining whether the external storage device of the split television is successfully connected further includes:
[0011] When it is detected that the split television is connected to an external storage device, obtaining a value of a preset flag bit;
[0012] If the value matches the preset value, it is determined that the external storage device is connected successfully;
[0013] If the value does not match the preset value, it is determined that the external storage device connection fails.
[0014] In one embodiment, after the step of determining whether the external storage device of the split television is successfully connected, the method further includes:
[0015] If the external storage device is not connected successfully and the array number exceeds the preset maximum number, a preset prompt message is displayed through the split television.
[0016] In one embodiment, before the step of determining whether the external storage device of the split television is successfully connected, the method further includes:
[0017] When the split television is initialized and operated, determining preset initial configuration parameters;
[0018] The initial configuration parameters are used as configuration parameters of the split television.
[0019] In one embodiment, the step of determining the preset initial configuration parameters includes:
[0020] Determining a configuration type of the split television;
[0021] Acquire a first configuration parameter from a preset storage address corresponding to the configuration type;
[0022] If the first configuration parameter meets the preset condition, the first configuration parameter is used as the initial configuration parameter;
[0023] If the first configuration parameter does not meet the preset conditions, and the multiple groups of second configuration parameters arranged in the preset second order in the preset screen parameter file all meet the preset format, then the first group of second configuration parameters among the multiple groups of second configuration parameters will be used as the initial configuration parameters.
[0024] In one embodiment, after the step of acquiring the first configuration parameter from the preset storage address corresponding to the configuration type, the method further includes:
[0025] Obtain multiple groups of second configuration parameters in a preset screen parameter file;
[0026] A polling array is generated according to the first configuration parameter and each of the second configuration parameters.
[0027] In one embodiment, after the step of using the first group of second configuration parameters among the multiple groups of second configuration parameters as initial configuration parameters, the method further includes:
[0028] The first set of second configuration parameters is stored in the preset storage address.
[0029] In addition, to achieve the above purpose, the present application also proposes a split TV screen USB port adapter device, the split TV screen USB port adapter device comprising:
[0030] A connection module, used to determine whether the external storage device of the split TV is successfully connected;
[0031] an adaption module, configured to update the configuration parameters of the split television to the next set of configuration parameters in the parameter polling array if the external storage device is not successfully connected and the array sequence number of the current configuration parameters of the split television in the preset parameter polling array does not exceed the preset maximum sequence number, wherein the parameter polling array includes a plurality of groups of configuration parameters arranged in a preset first order;
[0032] The polling module is used to return to the step of determining whether the external storage device is successfully connected after sleeping for a preset time period until the external storage device is successfully connected.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a split TV, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the split TV screen-end USB port adaptation method as described above.
[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the split TV screen USB port adaptation method described above are implemented.
[0035] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the split TV screen USB port adaptation method as described above.
[0036] The present application provides a method for adapting a USB port on a split TV screen. When detecting that an external storage device is connected, the present application determines whether the external storage device is successfully connected. If the external storage device is not successfully connected, and the serial number corresponding to the current configuration parameter of the split TV in a preset polling array does not exceed the preset maximum serial number, the configuration parameters of the split TV are updated according to the next set of configuration parameters in the polling array. After waiting for a preset period of time in sleep mode, the present application re-determines whether the external storage device is successfully connected, and polls the configuration parameters until the external storage device is successfully connected.
[0037] In summary, the present application sets multiple groups of configuration parameters, and when the external device fails to connect successfully, adapts the external storage device by polling each group of configuration parameters in the array. Compared with the traditional split TV that cannot connect to the external storage device if the configuration fails, the present application can automatically switch the configuration parameters to adapt to the external storage device, thereby improving the success rate of the connection between the USB port on the screen and the external storage device. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0040] Figure 1 A flowchart of the first embodiment of the USB port adaptation method for a split TV screen of the present application is provided;
[0041] Figure 2 A schematic diagram of a USB polling process provided in Example 1 of the USB port adaptation method for a split TV screen of the present application;
[0042] Figure 3 A schematic diagram of the initialization process provided for the second embodiment of the USB port adaptation method for a split TV screen of the present application;
[0043] Figure 4 A schematic diagram of the parameter loading process provided in Example 2 of the USB port adaptation method for a split TV screen of the present application;
[0044] Figure 5 This is a schematic diagram of the module structure of the USB port adapter device for a split TV screen according to an embodiment of the present application;
[0045] Figure 6This is a schematic diagram of the device structure of the hardware operating environment involved in the split TV screen USB port adaptation method in the embodiment of the present application.
[0046] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0047] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0048] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0049] The main solution of the embodiment of the present application is: to determine whether the external storage device of the split TV is successfully connected; if the external storage device is not successfully connected, and the array sequence number of the current configuration parameters of the split TV in the preset parameter polling array does not exceed the preset maximum sequence number, then the configuration parameters of the split TV are updated to the next set of configuration parameters in the parameter polling array, wherein the parameter polling array includes multiple groups of configuration parameters arranged in a preset first order; after sleeping for a preset period of time, return to execute the step of determining whether the external storage device is successfully connected until the external storage device is successfully connected.
[0050] The split TV is mainly composed of three components: the host box, the signal transmission electronic wire and the display screen. In order to facilitate users to play multimedia files such as videos directly through external storage devices (such as USB flash drives, hard drives), a USB interface is usually integrated on the side of the display screen. Inside the split TV, the physical link of the USB interface is: starting from the USB port on the main board of the host box, transmitted via the electronic wire, connected to the adapter board at the display screen end, and further extended to the buffer board (buffer board), which acts as a relay station and finally connects to the USB interface on the side of the display screen through a dedicated USB board cable.
[0051] However, since the physical link length of the USB port on the side of the screen is too long, it is easy to cause abnormal recognition of external storage devices such as U disks and hard disks. Therefore, how to improve the success rate of connecting the USB port on the screen with external storage devices has become a problem to be solved in this field.
[0052] In response to the above problems, the present application provides a method for adapting a USB port on a split TV screen. When detecting that an external storage device is connected, the present application determines whether the external storage device is successfully connected. If the external storage device is not successfully connected, and the serial number corresponding to the current configuration parameters of the split TV in the preset polling array does not exceed the preset maximum serial number, the configuration parameters of the split TV are updated according to the next set of configuration parameters in the polling array. After waiting for a preset period of time in sleep mode, the present application re-determines whether the external storage device is successfully connected, and polls the configuration parameters until the external storage device is successfully connected.
[0053] In summary, the present application sets multiple groups of configuration parameters, and when the external device fails to connect successfully, adapts the external storage device by polling each group of configuration parameters in the array. Compared with the traditional split TV that cannot connect to the external storage device if the configuration fails, the present application can automatically switch the configuration parameters to adapt to the external storage device, thereby improving the success rate of the connection between the USB port on the screen and the external storage device.
[0054] In this embodiment, for the convenience of description, the following description is made by taking the split TV as the execution subject.
[0055] Based on this, the embodiment of the present application provides a split TV screen USB port adaptation method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the split TV screen USB port adaptation method of the present application.
[0056] In this embodiment, the USB port adaptation method of the split TV screen includes steps S10 to S30:
[0057] Step S10, determining whether the external storage device of the split TV is successfully connected;
[0058] In this embodiment, after the split TV is started, the connection status of its external storage device (such as a USB hard disk, etc.) is first checked. There are many ways to detect, for example, the built-in interface detection module can be used to identify whether the external storage device has been correctly connected and an effective data transmission channel has been established.
[0059] Furthermore, in a feasible implementation manner, the above step S10 may further include steps S11 to S13:
[0060] Step S11, when it is detected that the split television is connected to an external storage device, obtaining a value of a preset flag bit;
[0061] It should be noted that, in this embodiment, the flag bit is a specific bit used to indicate a connection state or a device state.
[0062] In this embodiment, when the split television detects that an external storage device is connected, the value of the flag bit in the middleware is read.
[0063] Step S12, if the value matches the preset value, it is determined that the external storage device is connected successfully;
[0064] Step S13: if the value does not match the preset value, it is determined that the connection of the external storage device fails.
[0065] In this embodiment, the value of the flag bit indicates whether the external storage device is successfully connected. If the value of the flag bit matches the preset value, it means that the external storage device has been successfully connected and is in the expected working state. At this time, the split TV can consider that the connection process has been successfully completed. If the read flag bit value is inconsistent with the preset value, this usually means that the external storage device is not correctly connected or some problems occur during the connection process. In this case, the split TV will determine that the connection fails and prepare to enter the next step of the processing flow.
[0066] Furthermore, in a feasible implementation manner, after the above step S10, the method may further include step A10:
[0067] Step A10: If the external storage device is not connected successfully and the array number exceeds a preset maximum number, a preset prompt message is displayed through the split television.
[0068] In this embodiment, after the parameter polling process, if the external storage device still fails to connect successfully, and all preset parameter combinations have been tried (i.e., the array number exceeds the preset maximum number), the split TV will no longer continue to try new configuration parameters. At this time, the split TV will output a preset prompt message to the user through its built-in prompt template (such as text prompts on the display screen, sound prompts, etc.). This prompt message may include the reason for the connection failure, the measures recommended for the user to take (such as checking the connection line, restarting the device, etc.), popping up a manual configuration interface, or prompting the user to contact customer support, etc.
[0069] Step S20, if the external storage device is not successfully connected, and the array sequence number of the current configuration parameters of the split TV in the preset parameter polling array does not exceed the preset maximum sequence number, then the configuration parameters of the split TV are updated to the next set of configuration parameters in the parameter polling array, wherein the parameter polling array includes multiple groups of configuration parameters arranged in a preset first order;
[0070] It should be noted that, in this embodiment, a polling array is pre-stored in the split TV, which includes a plurality of preset configuration parameters arranged in a first order. The order of the configuration parameters in the polling array can be set according to actual needs. For example, the more conventional configuration parameters with more configuration times can be arranged at the front position in the array, or they can be sorted according to the numerical value of the configuration parameters. The position of each configuration parameter in the array is the serial number corresponding to the configuration parameter. The maximum serial number can be the number of configuration parameters in the polling array.
[0071] It should be noted that, in this embodiment, the electrical performance parameters of the USB port at the split TV screen end include but are not limited to USB impedance, drive current, and disconnection.
[0072] The value range of impedance (Z0 Real Value) is [0-31], the value range of drive current (Swing) is [0-31], and the value range of disconnection (Disconnect Level) is [0-15].
[0073] As an example, when the configuration parameters in the polling array are preset, the three electrical performance parameters can be adjusted on three split TVs respectively, and eight sets of better configuration parameters can be selected. Then, through compatibility testing of multiple USB flash drives and hard drives, five sets of optimal electrical performance parameters that can normally identify USB flash drives and hard drives can be further selected. If there are still problems with abnormal USB flash drive and hard drive recognition when using these five sets of electrical performance parameters during mass production, you can only enter the factory menu and manually adjust one set of USB impedance, drive current, and disconnection parameters.
[0074] In this embodiment, if the external storage device fails to connect, the split TV will not immediately report an error or stop trying, but will enter the configuration parameter adjustment phase, first determining whether the configuration parameters currently being used (these parameters are stored in a preset parameter polling array, and each set of parameters has a unique serial number) have tried all preset options. If the maximum preset serial number is not exceeded, that is, there are configuration parameters that have not been tried, the split TV will automatically update its configuration parameters to the next set of configuration parameters in the parameter polling array.
[0075] Step S30, after sleeping for a preset time, return to the step of determining whether the external storage device is successfully connected, until the external storage device is successfully connected.
[0076] In this embodiment, after updating the configuration parameters, the split TV will pause for a period of time (i.e., the preset sleep time) to allow the new configuration parameters to take effect and stabilize, and then return to execute step S10 again to re-determine whether the external storage device has been successfully connected. This cycle will continue until the external storage device is successfully connected or all preset configuration parameters have been tried.
[0077] For example, in order to help understand the implementation process of the split TV screen USB port adaptation method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 2 , Figure 2 A USB polling flow diagram of a split TV screen USB port adaptation method is provided, specifically:
[0078] When the user connects a USB flash drive or hard drive to the USB interface on the screen, these devices will be mounted on the EHCI (Enhanced Host Controller Interface) bus. If they are successfully mounted on the EHCI bus, the flag will be set to 1. If they cannot be mounted on the EHCI bus, the system will try to mount them on the OHCI (Open Host Controller Interface) bus. After confirming the success or failure of mounting the OHCI, the kernel driver will set the flag to 0 and maintain the current mounting state. The USB flash drive or hard drive will not be automatically disconnected and reconnected. The operation of disconnecting and reconnecting the USB flash drive or hard drive will only be performed after the middleware sets the USB impedance, drive current, and disconnection / connection electrical performance parameters by calling the interface.
[0079] Furthermore, when the user connects a USB flash drive or a hard drive to the USB interface of the screen, the middleware will check the status of the flag bit. If the flag bit is 1, it indicates that the kernel driver has mounted and recognized the USB flash drive or the hard drive normally, and the polling process will end at this time. If the flag bit is 0, it means that the kernel driver cannot mount and recognize the USB flash drive or the hard drive normally, and the identification status of the USB flash drive or the hard drive will start to be polled. If the USB flash drive or the hard drive cannot be recognized, the middleware will disconnect and reconnect the USB flash drive or the hard drive by setting the USB impedance, driving current, and disconnect / connect electrical performance parameters. The middleware will continue to obtain the status of the flag bit of the kernel driver identifying the USB disk or hard disk. If the flag bit is 1, it means that the kernel driver has mounted and identified the USB disk or hard disk normally, and the current electrical performance parameters (i.e. configuration parameters) are stored in the address corresponding to the skyeep partition, and the polling process ends. If the flag bit is still 0, it means that the kernel driver has not mounted and identified the USB disk or hard disk normally. At this time, it is determined whether the polling has reached the end of the array. If it is, the polling ends. If not, it will continue to set the next set of USB electrical performance related parameters, and try to disconnect and reconnect the USB disk or hard disk again. After sleeping for 200 milliseconds, re-determine the mounting status of the USB disk or hard disk. This process will continue until all parameters in the polling array are tried, or the USB disk or hard disk can be recognized normally. For some TVs that may have large differences in electrical performance parameters, if all parameters in the polling array have been tried, but the USB disk or hard disk still cannot be recognized, the user needs to enter the factory menu and manually adjust a set of USB impedance, drive current and disconnect / connect parameters.
[0080] The present embodiment provides a method for adapting the USB port on a split TV screen. The present application sets multiple groups of configuration parameters. When the external device fails to connect successfully, the external storage device is adapted by polling each group of configuration parameters in the array. Compared with the traditional split TV that cannot connect to the external storage device if the configuration fails, the present application can automatically switch the configuration parameters to adapt the external storage device, thereby improving the success rate of the connection between the screen USB port and the external storage device.
[0081] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above embodiment 1 can be referred to the above introduction, and will not be repeated later. On this basis, before the above step S10, the method can also include steps S01 to S02:
[0082] Step S01, when the split TV is initialized and operated, determining preset initial configuration parameters;
[0083] In this embodiment, when the split TV is turned on for the first time or after being reset, the system will enter an initialization operation phase. In this phase, the split TV will determine the initial configuration parameters of the USB interface according to the preset information stored internally.
[0084] Furthermore, in a feasible implementation manner, the above step S01 further includes steps S011 to S014:
[0085] Step S011, determining the configuration type of the split TV;
[0086] It should be noted that, in this embodiment, in different configuration types, the storage addresses of the adopted configuration parameters are different, and the configuration types may include automatic configuration and manual configuration.
[0087] In this embodiment, the split TV first identifies its own configuration type during the initialization phase.
[0088] The configuration type can be distinguished by setting a detection mode flag.
[0089] Step S012, obtaining a first configuration parameter from a preset storage address corresponding to the configuration type;
[0090] In this embodiment, according to the determined configuration type, the split television reads a set of first configuration parameters matching the type from an internal preset storage address.
[0091] Furthermore, before the above step S012, the method may further include steps B10 to B20:
[0092] Step B10, obtaining multiple groups of second configuration parameters preset in the screen parameter file;
[0093] In this embodiment, before the split TV is initialized or in the early stage of initialization, the configuration parameters preset in the screen parameter file are read. This file is usually stored in the non-volatile memory of the split TV (such as EEPROM, flash memory, etc.), and includes multiple sets of second configuration parameters.
[0094] Step B20: Generate a polling array according to the first configuration parameter and each of the second configuration parameters.
[0095] In this embodiment, after obtaining the first configuration parameters and multiple groups of second configuration parameters, the split TV will combine these parameters into a polling array. Each element in this array represents a group of possible configuration parameters. The split TV will try these parameters in turn during the subsequent connection detection and parameter adjustment process. The purpose of generating the polling array is to automatically try different configuration parameter combinations when the external storage device fails to connect, so as to improve the success rate of the connection.
[0096] Step S013: if the first configuration parameter meets a preset condition, the first configuration parameter is used as an initial configuration parameter;
[0097] In this embodiment, the first configuration parameter read is checked to determine whether it meets the preset conditions (such as whether the parameter value is within a reasonable range, whether the parameter format is correct, etc.). If the conditions are met, it means that this set of parameters is valid and can be directly used as the initial configuration parameters of the split TV.
[0098] Step S014: if the first configuration parameters do not meet the preset conditions, and the multiple groups of second configuration parameters arranged in the preset second order in the preset screen parameter file all meet the preset format, then the first group of second configuration parameters in the multiple groups of second configuration parameters are used as initial configuration parameters.
[0099] In this embodiment, if the first configuration parameter does not meet the preset condition, the split TV will try to read multiple groups of second configuration parameters arranged in a second order from another preset storage location (such as a screen parameter file). The second order can be the order in which these configuration parameters are recorded in the configuration file, or the configuration parameters with more configuration times can be arranged at the front position in the array, or they can be sorted according to the numerical value of the configuration parameters. These parameters are usually preset according to different hardware and software configurations during the production or debugging process of the split TV. The split TV will perform format verification on these second configuration parameters. If all parameters meet the preset format requirements, it will select the first group (or select one of the groups according to a certain priority) of second configuration parameters as the initial configuration parameters.
[0100] In a feasible implementation manner, after the above step S014, the method further includes step C10:
[0101] Step C10: storing the first set of second configuration parameters to the preset storage address.
[0102] In this embodiment, once the valid second configuration parameters are determined as the initial configuration parameters, the split TV will store these parameters to a preset storage address, thereby ensuring that after the split TV is restarted or powered off, it can still remember and load this set of valid configuration parameters, thereby avoiding the tedious parameter selection and verification process again.
[0103] Step S02: Using the initial configuration parameters as configuration parameters of the split TV.
[0104] In this embodiment, after the initial configuration parameters are determined, the split TV will load these parameters into the kernel and use them as current working configuration parameters.
[0105] For example, in order to help understand the implementation process of the split TV screen USB port adaptation method obtained by combining this embodiment with the above-mentioned embodiment 2, please refer to Figure 3 , Figure 3A schematic diagram of the initialization process of a split TV screen USB port adaptation method is provided, specifically:
[0106] When the split TV is initialized, it first initializes the screen-side USB service, registers the screen-side USB debugging command, registers to listen to messages from the upper-layer application, reads a set of USB electrical performance data stored in the factory skyeep partition and 5 sets of USB electrical performance data preset in the screen parameter .ini file to generate a polling array. Determine whether the current USB detection mode is the automatic matching mode. If it is the automatic matching mode, use the set of USB electrical performance data stored at the addresses 0x503, 0x504, and 0x505 of the skyeep partition as the current actual setting parameters. If it is the manual debugging mode, use the set of USB electrical performance data stored at the addresses 0x500, 0x501, and 0x502 of the skyeep partition as the current actual setting parameters, and then start the message processing thread and the polling status thread.
[0107] For the initial parameter configuration of the USB interface, please refer to Figure 4 , Figure 4 A schematic diagram of the parameter loading process of a split TV screen USB port adaptation method is provided, specifically:
[0108] During the boot power-on phase, the detection mode A of the screen USB port is obtained from the address 0x506 of the skyeep partition of the motherboard, where A=0 indicates that the current mode is manual debugging mode, and other values indicate that the current mode is automatic matching mode.
[0109] If the current detection mode is the automatic matching mode, obtain the automatically matched USB impedance, drive current, and disconnection parameters from the skyeep partition 0x503, 0x504, and 0x505 addresses, and determine whether the automatically matched USB impedance, drive current, and disconnection parameters meet the value range. If they meet the value range, pass the currently obtained automatically matched USB impedance, drive current, and disconnection parameters to the kernel. If they do not meet the range, enter the manual debugging mode, obtain the manually debugged USB impedance, drive current, and disconnection parameters from the skyeep partition 0x500, 0x501, and 0x502 addresses, and pass the currently obtained manually debugged USB impedance, drive current, and disconnection parameters that meet the value range to the kernel to complete the USB driver configuration;
[0110] If the current detection mode is manual debugging mode, the USB impedance, drive current, and disconnection parameters for manual debugging are obtained from the addresses 0x500, 0x501, and 0x502 of the skyeep partition. Then determine whether the USB impedance, drive current, and disconnection parameters for manual debugging meet the value range. If they meet the value range, pass the currently obtained USB impedance, drive current, and disconnection parameters for manual debugging to the kernel. If they do not meet the range, then determine whether the USB impedance, drive current, and disconnection parameters in the screen parameter .ini (each screen configuration corresponds to a screen parameter .ini file) are configured in the specified format. If they are configured in the specified format, pass the first set of USB impedance, drive current, and disconnection parameters configured in the screen parameter .ini loaded by the current screen configuration to the kernel to complete the USB driver configuration, and then After that, if the current mode is manual debugging, the first group of USB impedance, drive current, and disconnection parameters configured in the current screen parameter.ini are written into the skyeep of manual debugging, that is, 0x500, 0x501, and 0x502; if the current mode is automatic matching, the first group of USB impedance, drive current, and disconnection parameters configured in the current screen parameter.ini are written into the skyeep of manual debugging and automatic matching, that is, 0x500, 0x501, and 0x502 of manual debugging, and 0x503, 0x504, and 0x505 of automatic matching. If the configuration parameters in the screen parameter.ini are not configured in the specified format, no value transfer operation is performed, and the kernel uses the default value.
[0111] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the USB port adaptation method of the split TV screen of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0112] This application also provides a split TV screen USB port adapter device, please refer to Figure 5 , the split TV screen USB port adapter device comprises:
[0113] A connection module 10 is used to determine whether the external storage device of the split TV is successfully connected;
[0114] The adaption module 20 is used to update the configuration parameters of the split TV to the next set of configuration parameters in the parameter polling array if the external storage device is not successfully connected and the array sequence number of the current configuration parameters of the split TV in the preset parameter polling array does not exceed the preset sequence number maximum value, wherein the parameter polling array includes multiple groups of configuration parameters arranged in a preset first order;
[0115] The polling module 30 is used to return to the step of determining whether the external storage device is successfully connected after sleeping for a preset time period until the external storage device is successfully connected.
[0116] Optionally, the connection module 10 is further used for:
[0117] When it is detected that the split television is connected to an external storage device, obtaining a value of a preset flag bit;
[0118] If the value matches the preset value, it is determined that the external storage device is connected successfully;
[0119] If the value does not match the preset value, it is determined that the external storage device connection fails.
[0120] Optionally, the split TV screen USB port adapter is also used for:
[0121] If the external storage device is not connected successfully and the array number exceeds the preset maximum number, a preset prompt message is displayed through the split television.
[0122] Optionally, the split TV screen USB port adapter is also used for:
[0123] When the split television is initialized and operated, determining preset initial configuration parameters;
[0124] The initial configuration parameters are used as configuration parameters of the split television.
[0125] Optionally, the split TV screen USB port adapter is also used for:
[0126] Determining a configuration type of the split television;
[0127] Acquire a first configuration parameter from a preset storage address corresponding to the configuration type;
[0128] If the first configuration parameter meets the preset condition, the first configuration parameter is used as the initial configuration parameter;
[0129] If the first configuration parameter does not meet the preset conditions, and the multiple groups of second configuration parameters arranged in the preset second order in the preset screen parameter file all meet the preset format, then the first group of second configuration parameters among the multiple groups of second configuration parameters will be used as the initial configuration parameters.
[0130] Optionally, the split TV screen USB port adapter is also used for:
[0131] Obtain multiple groups of second configuration parameters preset in the screen parameter file;
[0132] A polling array is generated according to the first configuration parameter and each of the second configuration parameters.
[0133] Optionally, the split TV screen USB port adapter is also used for:
[0134] The first set of second configuration parameters is stored in the preset storage address.
[0135] The split TV screen-side USB port adapter device provided by the present application adopts the split TV screen-side USB port adapter method in the above embodiment, which can solve the technical problem of how to improve the success rate of connecting the screen-side USB port with the external storage device. Compared with the prior art, the beneficial effects of the split TV screen-side USB port adapter device provided by the present application are the same as the beneficial effects of the split TV screen-side USB port adapter method provided by the above embodiment, and the other technical features of the split TV screen-side USB port adapter device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0136] The present application provides a split TV, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the split TV screen-side USB port adaptation method in the above-mentioned embodiment one.
[0137] Reference below Figure 6 , which shows a structural schematic diagram of a split television suitable for implementing an embodiment of the present application. Figure 6 The split TV shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0138] like Figure 6As shown, the split TV may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the split TV are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the split TV to communicate with other devices wirelessly or by wire to exchange data. Although the split TV with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0139] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0140] The split TV provided by the present application adopts the split TV screen-side USB port adaptation method in the above embodiment, which can solve the technical problem of how to improve the success rate of connecting the screen-side USB port with the external storage device. Compared with the prior art, the beneficial effects of the split TV provided by the present application are the same as the beneficial effects of the split TV screen-side USB port adaptation method provided by the above embodiment, and the other technical features in the split TV are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0141] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0142] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0143] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the split TV screen USB port adaptation method in the above-mentioned embodiment.
[0144] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0145] The computer-readable storage medium may be included in the split television; or may exist independently without being assembled into the split television.
[0146] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the split television, the split television:
[0147] Determine whether the external storage device of the split TV is successfully connected; if the external storage device is not successfully connected, and the array sequence number of the current configuration parameters of the split TV in the preset parameter polling array does not exceed the preset sequence number maximum value, then update the configuration parameters of the split TV to the next set of configuration parameters in the parameter polling array, wherein the parameter polling array includes multiple groups of configuration parameters arranged in a preset first order; after sleeping for a preset period of time, return to execute the step of determining whether the external storage device is successfully connected until the external storage device is successfully connected.
[0148] The computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0149] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0150] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0151] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned split-TV screen-side USB port adaptation method, and can solve the technical problem of how to improve the success rate of connecting the screen-side USB port with an external storage device. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the split-TV screen-side USB port adaptation method provided by the above-mentioned embodiment, and will not be repeated here.
[0152] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned split TV screen USB port adaptation method.
[0153] The computer program product provided by the present application can solve the technical problem of how to improve the success rate of connecting the screen-side USB port to the external storage device. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the split TV screen-side USB port adaptation method provided by the above embodiment, and will not be repeated here.
[0154] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for adapting a USB port on a split TV screen, characterized in that: The method comprises: Determine whether the external storage device of the split TV is successfully connected; If the external storage device is not connected successfully, and the array sequence number of the current configuration parameters of the split television in the preset parameter polling array does not exceed the preset maximum sequence number, then the configuration parameters of the split television are updated to the next set of configuration parameters in the parameter polling array, wherein the parameter polling array includes multiple groups of configuration parameters arranged in a preset first order; After sleeping for a preset time, return to the step of determining whether the external storage device is successfully connected, until the external storage device is successfully connected.
2. The USB port adaptation method for a split TV screen as claimed in claim 1, characterized in that: The step of determining whether the external storage device of the split TV is successfully connected also includes: When it is detected that the split television is connected to an external storage device, obtaining a value of a preset flag bit; If the value matches the preset value, it is determined that the external storage device is connected successfully; If the value does not match the preset value, it is determined that the external storage device connection fails.
3. The USB port adaptation method for a split TV screen as claimed in claim 1, characterized in that: After the step of determining whether the external storage device of the split television is successfully connected, the method further includes: If the external storage device is not connected successfully and the array number exceeds the preset maximum number, a preset prompt message is displayed through the split television.
4. The USB port adaptation method for a split TV screen as claimed in claim 1, characterized in that: Before the step of determining whether the external storage device of the split television is successfully connected, the method further includes: When the split television is initialized and operated, determining preset initial configuration parameters; The initial configuration parameters are used as configuration parameters of the split television.
5. The USB port adaptation method for a split TV screen as claimed in claim 4, characterized in that: The step of determining the preset initial configuration parameters comprises: Determining a configuration type of the split television; Acquire a first configuration parameter from a preset storage address corresponding to the configuration type; If the first configuration parameter meets the preset condition, the first configuration parameter is used as the initial configuration parameter; If the first configuration parameter does not meet the preset conditions, and the multiple groups of second configuration parameters arranged in the preset second order in the preset screen parameter file all meet the preset format, then the first group of second configuration parameters among the multiple groups of second configuration parameters will be used as the initial configuration parameters.
6. The USB port adaptation method for a split TV screen as claimed in claim 5, characterized in that: After the step of acquiring the first configuration parameter from the preset storage address corresponding to the configuration type, the method further includes: Obtain multiple groups of second configuration parameters in a preset screen parameter file; A polling array is generated according to the first configuration parameter and each of the second configuration parameters.
7. The USB port adaptation method for a split TV screen as claimed in claim 5, characterized in that: After the step of using the first group of second configuration parameters among the multiple groups of second configuration parameters as initial configuration parameters, the method further includes: The first set of second configuration parameters is stored in the preset storage address.
8. A split TV screen USB port adapter, characterized in that: The device comprises: A connection module, used to determine whether the external storage device of the split TV is successfully connected; an adaption module, configured to update the configuration parameters of the split television to the next set of configuration parameters in the parameter polling array if the external storage device is not successfully connected and the array sequence number of the current configuration parameters of the split television in the preset parameter polling array does not exceed the preset maximum sequence number, wherein the parameter polling array includes a plurality of groups of configuration parameters arranged in a preset first order; The polling module is used to return to the step of determining whether the external storage device is successfully connected after sleeping for a preset time period until the external storage device is successfully connected.
9. A split television, characterized in that: The device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the split TV screen USB port adaptation method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the split TV screen USB port adaptation method as described in any one of claims 1 to 7 are implemented.