Method and device for controlling endurance mileage of new energy ship, electronic equipment and medium

By combining multiple parameters of the ship, the method of calculating the range of the cruising range solves the problem that the actual speed and range of electric ships cannot be obtained in real time in traditional technology, and achieves accurate and real-time range acquisition.

CN119305458APending Publication Date: 2025-01-14SANDIANSHUI NEW ENERGY TECH (ANHUI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411656810.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

Traditional technology cannot accurately obtain the actual speed and range of electric ships under different propulsion powers in real time.

Method used

The discharge power is determined by obtaining the transmission efficiency, battery capacity and residual power of the target ship, and combined with the power consumption of the accessories, battery power loss and travel loss power, the renewal time and speed are calculated to accurately obtain the range.

Benefits of technology

It achieves accurate and real-time acquisition of the range of new energy ships, and improves the accuracy and reliability of speed determination.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119305458A_ABST
    Figure CN119305458A_ABST
Patent Text Reader

Abstract

The invention provides an endurance mileage control method and device of a new energy ship, electronic equipment and a medium, and relates to the field of new energy ships, the method comprises the following steps: determining discharge power according to the obtained transmission efficiency, battery capacity and residual electric quantity of a target ship; determining the total power according to the accessory power consumption, the battery loss power and the driving loss power of the target ship; determining the continuation time based on the discharge power and the total power; calculating the continuation time and the ship navigational speed to obtain the continuation mileage; wherein the ship navigational speed is determined according to the preset time interval and the corresponding change mileage. According to the method, the endurance mileage of the target ship can be accurately obtained in real time by combining a plurality of parameters of the target ship.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of new energy ships, and more specifically, to a method, device, electronic equipment and medium for controlling the cruising range of new energy ships. Background Art

[0002] With the development of green and intelligent shipping, the development and application trend of new energy ships represented by power batteries is significant. Lead-acid batteries are gradually withdrawing from the stage of ship power due to their shortcomings such as easy to cause environmental pollution, low energy density, short life, and poor safety. Compared with lead-acid batteries, lithium iron phosphate batteries have the advantages of good safety performance, long cycle life, good high temperature performance, high energy density, and zero emissions. They have become the first choice for power sources for electric bicycles and electric vehicles.

[0003] In traditional technology, the speed determination scheme of electric ships is to obtain the total power consumption of the battery through the power management system (PMS) installed on the electric ship, and then obtain the theoretical speed of the electric ship through the total power consumption of the battery. However, the speed determination scheme of electric ships with traditional technology cannot detect the actual speed of the ship under different propulsion powers from the current to the future in real time, and cannot accurately obtain the cruising range of the ship. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method, device, electronic device and medium for controlling the cruising range of a new energy ship, so as to solve the above-mentioned problems existing in the prior art and to accurately and real-time obtain the cruising range of the target ship.

[0005] In a first aspect, a method for controlling the cruising range of a new energy ship is provided, and the method may include:

[0006] Determine the discharge power based on the transmission efficiency, battery capacity and remaining power of the target ship;

[0007] Determine the total power based on the target ship's accessory power consumption, battery loss power and driving loss power;

[0008] Determining a running time based on the discharge power and the total power;

[0009] The travel time and the ship speed are calculated to obtain the travel mileage; wherein the ship speed is determined based on a preset time interval and a corresponding change in mileage.

[0010] In a possible implementation, the power consumption of the accessory is determined based on the output power of the power distribution cabinet and the output power of the electrical equipment other than the main propulsion power.

[0011] In a possible implementation, the method for determining the battery power loss includes:

[0012] The battery loss power is determined according to the accessory power consumption, the battery operating current and the battery internal resistance loss rate.

[0013] In a possible implementation, the battery operating current is determined according to the battery operating voltage, the battery discharge rate and the battery capacity.

[0014] In a possible implementation, the driving loss power is determined based on friction resistance, shape resistance, wave-making resistance and the ship speed.

[0015] In a possible implementation, the ship speed is determined according to a preset time interval and a corresponding change mileage, including:

[0016] Acquire a first ship position of the target ship at a first time;

[0017] Acquiring a second ship position of the target ship at a second time according to a preset time interval;

[0018] determining a change in mileage based on the first ship position and the second ship position;

[0019] The ship speed is determined based on the changed mileage and a preset time interval.

[0020] In a second aspect, a cruising range control device for a new energy ship is provided, and the device may include:

[0021] A determination unit, used to determine the discharge power according to the acquired transmission efficiency, battery capacity and remaining power of the target ship;

[0022] and, determining the total power based on the power consumption of the target ship's accessories, the battery loss power, and the running loss power;

[0023] and, determining a running time based on the discharge power and the total power;

[0024] A calculation unit is used to calculate the travel time and the ship speed to obtain the travel mileage; wherein the ship speed is determined based on a preset time interval and a corresponding change in mileage.

[0025] In a third aspect, an electronic device is provided, the electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0026] Memory, used to store computer programs;

[0027] The processor is used to implement any method step described in the first aspect when executing the program stored in the memory.

[0028] In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any method step described in the first aspect is implemented.

[0029] The present application provides a method for controlling the cruising range of a new energy ship, the method comprising: determining the discharge power according to the transmission efficiency, battery capacity and remaining power of the target ship; determining the total power according to the power consumption of the accessories of the target ship, the battery loss power and the driving loss power; determining the cruising time based on the discharge power and the total power; calculating the cruising time and the ship speed to obtain the cruising range; wherein the ship speed is determined according to the preset time interval and the corresponding change mileage. The method can accurately and real-time obtain the cruising range of the target ship by combining multiple parameters of the target ship. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 A system architecture diagram of a cruising range control method for a new energy ship provided in an embodiment of the present application;

[0032] Figure 2 A schematic diagram of a flow chart of a method for controlling the cruising range of a new energy ship provided in an embodiment of the present application;

[0033] Figure 3 A schematic diagram of the structure of a cruising range control device for a new energy ship provided in an embodiment of the present application;

[0034] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0035] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0036] The cruising range control method of the new energy ship provided in the embodiment of the present application can be applied in Figure 1 In the system architecture shown in Figure 1 As shown, the system may include: a server and a ship detection system. The server may be a physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0037] The ship detection system is used to obtain the transmission efficiency, battery capacity, remaining power, output power of electrical equipment, battery internal resistance loss rate, battery operating voltage, battery discharge rate, friction resistance, shape resistance and wave-making resistance of the target ship, and send the obtained data to the server.

[0038] The server is used to receive data sent by the ship detection system to execute a cruising range control method for new energy ships provided in this application.

[0039] With the development of green and intelligent shipping, the development and application trend of new energy ships represented by power batteries is significant. Lead-acid batteries are gradually withdrawing from the stage of ship power due to their shortcomings such as easy to cause environmental pollution, low energy density, short life, and poor safety. Compared with lead-acid batteries, lithium iron phosphate batteries have the advantages of good safety performance, long cycle life, good high temperature performance, high energy density, and zero emissions. They have become the first choice for power sources for electric bicycles and electric vehicles.

[0040] In traditional technology, the speed determination scheme of electric ships is to obtain the total power consumption of the battery through the power management system (PMS) installed on the electric ship, and then obtain the theoretical speed of the electric ship through the total power consumption of the battery. However, the speed determination scheme of electric ships with traditional technology cannot detect the actual speed of the ship under different propulsion powers from the current to the future in real time, nor can it accurately obtain the cruising range of the ship.

[0041] Therefore, the present application provides a method for controlling the cruising range of a new energy ship, which is used to solve the above-mentioned problems existing in the prior art and can accurately and real-time obtain the cruising range of the target ship.

[0042] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application may be combined with each other if there is no conflict.

[0043] Figure 2 The present invention provides a flow chart of a method for controlling the cruising range of a new energy ship. Figure 2 As shown, the method may include:

[0044] Step S210: Determine the discharge power according to the acquired transmission efficiency, battery capacity and remaining power of the target ship.

[0045] Specifically, the ship detection system detects the transmission efficiency, battery capacity and remaining power of the target ship, and sends the transmission efficiency, battery capacity and remaining power of the target ship to the server.

[0046] The server uses the configured first algorithm to calculate the transmission efficiency η, battery capacity V, and remaining power SOC of the target ship. max , the efficiency of the motor controller η Mcu 、Motor efficiency η M Calculate and obtain the discharge power.

[0047] The first algorithm can be expressed as:

[0048] W 放 =η Mcu ×η M ×η×V×SOC max

[0049] Among them, SOC max It can also be understood as the maximum SOC; η Mcu The general value is 95%, M The general value is 99%, and the general value of η is 60%.

[0050] Step S220: determine the total power according to the power consumption of the accessories of the target ship, the battery loss power and the driving loss power.

[0051] Specifically, A. the process of determining the power consumption of the accessory may include:

[0052] Determine the power consumption of accessories based on the output power of electrical equipment other than the main propulsion power of the distribution cabinet.

[0053] Among them, the output power of the distribution cabinet is not the power directly consumed by the distribution cabinet itself. The function of the distribution cabinet is to distribute and control power to different circuits and loads. Without monitoring the output power of the distribution cabinet, the total power consumption of various electrical equipment on board can be understood.

[0054] The output power of the power distribution cabinet refers to the output power of the electrical equipment other than the main propulsion power, which can refer to the sum of the power of all other electrical equipment except the propulsion system. This includes but is not limited to lighting, air conditioning, pumps, compressors, navigation equipment, communication systems, living facilities, etc.

[0055] It should be noted that the power consumption of the accessory is the sum of the power consumption of multiple accessories, that is, the power consumption of each accessory is accumulated.

[0056] B. The process of determining battery power loss includes:

[0057] Determine the battery loss power based on the accessory power consumption, battery operating current and battery internal resistance loss rate.

[0058] Specifically, the first algorithm is used to calculate the accessory power consumption, the battery operating current and the battery internal resistance loss rate to obtain the battery loss power.

[0059] The first algorithm can be expressed as:

[0060] P B =(I S ^2×R 内 ) / 1000

[0061] Among them, P B is the battery power consumption, R 内 is the battery internal resistance loss rate, I S It is the battery operating current.

[0062] Furthermore, the battery operating current I S The determination process includes:

[0063] Determine the battery operating current based on the battery operating voltage, battery discharge rate and battery capacity.

[0064] Specifically, the third algorithm is used to calculate the battery operating voltage, the battery discharge rate and the battery capacity to obtain the battery operating current.

[0065] The third algorithm can be expressed as:

[0066] I S =(1000×V) / U B ×G

[0067] Where V is the battery capacity, U B is the battery operating voltage, and G is the battery discharge rate.

[0068] It is understandable that the battery operating voltage, battery discharge rate and battery capacity are all data corresponding to a preset time interval.

[0069] C. The process of determining driving power loss includes:

[0070] The driving loss power is determined based on the friction resistance, shape resistance, wave-making resistance, other resistances and ship speed.

[0071] Specifically, the total resistance at a corresponding preset time interval is determined according to the friction resistance, shape resistance, wave-making resistance, and other resistances.

[0072] Total resistance F t It can be expressed as: F t =F 摩 +F 形 +F 兴 +F 其他

[0073] Among them, F 摩 is the friction resistance, F 形 is the shape resistance, F 兴 is the wave resistance, F 其他 For other resistance.

[0074] Furthermore, the frictional resistance is the resistance caused by the friction of water flow on the surface of the target ship.

[0075] Form drag is the resistance caused by fluid separation and eddies caused by the shape of the hull.

[0076] Wave resistance is the resistance caused by waves generated when the target ship moves forward.

[0077] Other resistances may be additional resistance caused by other factors including water flow resistance.

[0078] In some embodiments, air resistance, that is, resistance caused by wind to the superstructure of the target ship, may also be considered in the process of determining the total resistance.

[0079] Then, according to the total resistance and the ship speed, the driving loss power P is determined. 损 .

[0080] P 损 =(F t ×V') / 3600

[0081] Where V' is the ship speed.

[0082] Furthermore, the process of determining the ship's speed may include:

[0083] Obtain the first ship position of the target ship at the first time;

[0084] According to the time interval, obtaining a second ship position of the target ship at a second time;

[0085] Based on the first ship position and the second ship position, the change mileage is determined. This process can also be understood as the radar continuously updating the target ship position information, and detecting the position information at preset time intervals to obtain the change mileage; for example: checking the ship position once every 1 minute.

[0086] Based on the change in mileage L 船 and the preset time interval t1, determine the ship speed V'.

[0087] The ship speed V' can be specifically expressed as:

[0088] V'=L 船 / t1

[0089] In some embodiments, the balance between the total resistance and the propulsion force provided by the propeller can also be considered to obtain the theoretical ship speed. Specifically, the propulsion force can be obtained by an open water test of the propeller or by using a propeller performance chart. The propulsion coefficient (K_T) of the propeller is related to the thrust coefficient (C_T) of the propeller, and the propulsion force can be expressed by the following formula: T(K_T or C_T) = K T ×ρ×n 2 ×D 4 , where ρ is the density of water, n is the speed of the propeller, and D is the diameter of the propeller. Then, T reflects the performance of the propeller at a given speed ratio (J), which is defined as: J = V a / nD, where V a The speed of the propeller axial advance, that is, the ship's speed. The relationship between the propeller's propulsion coefficient (K_T) and the propeller's thrust coefficient (C_T) and the speed ratio J is usually determined through an open water test of the propeller. This test room establishes the thrust, torque and efficiency curves of the propeller at different speeds and speed ratios without the influence of the hull. From these data, the characteristic curve of the propeller can be obtained, which characterizes the relationship between the propeller's propulsion coefficient (K_T) and the propeller's thrust coefficient (C_T) and the speed ratio J.

[0090] Afterwards, the sum of the target ship's accessory power consumption, battery loss power, and driving loss power is calculated to obtain the total power P.

[0091] The total power P can be expressed as:

[0092] P=P 损 +P B +P 附

[0093] Among them, P 附 Power consumption for accessories.

[0094] Step S230: Determine the running time based on the discharge power and the total power.

[0095] Specifically, the fourth algorithm is used to calculate the discharge power and the total power to obtain the running time.

[0096] The continuation time t can be expressed as:

[0097]

[0098] Step S240: Calculate the travel time and the ship speed to obtain the travel mileage.

[0099] Specifically, the fifth algorithm is used to calculate the travel time and the ship speed to obtain the travel mileage S.

[0100] The mileage S can be expressed as:

[0101] S=V'×t.

[0102] The present application provides a method for controlling the cruising range of a new energy ship, the method comprising: determining the discharge power according to the transmission efficiency, battery capacity and remaining power of the target ship; determining the total power according to the power consumption of the accessories of the target ship, the battery loss power and the driving loss power; determining the cruising time based on the discharge power and the total power; calculating the cruising time and the ship speed to obtain the cruising range; wherein the ship speed is determined according to the preset time interval and the corresponding change mileage. The method can accurately and real-time obtain the cruising range of the target ship by combining multiple parameters of the target ship.

[0103] Corresponding to the above method, the embodiment of the present application also provides a cruising range control device for a new energy ship, such as Figure 3 As shown, the device comprises:

[0104] The determination unit 310 is used to determine the discharge power according to the acquired transmission efficiency, battery capacity and remaining power of the target ship;

[0105] and, determining the total power based on the power consumption of the target ship's accessories, the battery loss power, and the running loss power;

[0106] and, determining a running time based on the discharge power and the total power;

[0107] The calculation unit 320 is used to calculate the travel time and the ship speed to obtain the travel mileage; wherein the ship speed is determined according to a preset time interval and a corresponding change mileage.

[0108] The functions of each functional unit of a cruising range control device for a new energy ship provided in the above-mentioned embodiment of the present application can be realized through the above-mentioned method steps. Therefore, the specific working process and beneficial effects of each unit in a cruising range control device for a new energy ship provided in the embodiment of the present application will not be repeated here.

[0109] The present application also provides an electronic device, such as Figure 4 As shown, it includes a processor 410 , a communication interface 420 , a memory 430 and a communication bus 440 , wherein the processor 410 , the communication interface 420 , and the memory 430 communicate with each other via the communication bus 440 .

[0110] Memory 430, for storing computer programs;

[0111] The processor 410 is used to execute the program stored in the memory 430 to implement the following steps:

[0112] Determine the discharge power based on the transmission efficiency, battery capacity and remaining power of the target ship;

[0113] Determine the total power based on the target ship's accessory power consumption, battery loss power and driving loss power;

[0114] Determining a running time based on the discharge power and the total power;

[0115] The travel time and the ship speed are calculated to obtain the travel mileage; wherein the ship speed is determined based on a preset time interval and a corresponding change in mileage.

[0116] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0117] The communication interface is used for communication between the above electronic device and other devices.

[0118] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0119] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0120] The implementation methods and beneficial effects of the components of the electronic device in the above embodiments to solve the problems can be seen in Figure 2 The various steps in the illustrated embodiment are implemented, therefore, the specific working process and beneficial effects of the electronic device provided by the embodiment of the present application are not repeated here.

[0121] In another embodiment provided in the present application, a computer-readable storage medium is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes a method for controlling the cruising range of a new energy ship as described in any of the above embodiments.

[0122] In another embodiment provided in the present application, a computer program product including instructions is also provided. When the computer program product is run on a computer, the computer executes a method for controlling the cruising range of a new energy ship as described in any one of the above embodiments.

[0123] Those skilled in the art will appreciate that the embodiments in the present application may be provided as methods, systems, or computer program products. Therefore, the embodiments of the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0124] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0125] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0126] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0127] Unless otherwise defined, the technical terms or scientific terms used in this application should be understood by people with ordinary skills in the field to which the present invention belongs. "First", "second" and similar words used in this application do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect", "couple" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0128] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic creative concepts. Therefore, the present application embodiments are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application embodiments.

[0129] Obviously, those skilled in the art can make various changes and modifications to the embodiments in the present application without departing from the spirit and scope of the embodiments in the present application. Thus, if these modifications and variations of the embodiments in the present application are within the scope of the embodiments in the present application and their equivalents, the embodiments in the present application are also intended to include these modifications and variations.

Claims

1. A method for controlling the cruising range of a new energy ship, characterized in that: The method comprises: Determine the discharge power based on the transmission efficiency, battery capacity and remaining power of the target ship; Determine the total power based on the target ship's accessory power consumption, battery loss power and driving loss power; Determining a running time based on the discharge power and the total power; The travel time and the ship speed are calculated to obtain the travel mileage; wherein the ship speed is determined based on a preset time interval and a corresponding change in mileage.

2. The method according to claim 1, characterized in that The power consumption of the accessories is determined based on the output power of the power distribution cabinet and the output power of the electrical equipment other than the main propulsion power.

3. The method according to claim 2, characterized in that The method for determining the battery power loss includes: The battery loss power is determined according to the accessory power consumption, the battery operating current and the battery internal resistance loss rate.

4. The method according to claim 3, characterized in that The battery operating current is determined according to the battery operating voltage, the battery discharge rate and the battery capacity.

5. The method according to claim 1, characterized in that The driving loss power is determined based on friction resistance, shape resistance, wave-making resistance and the ship's speed.

6. The method according to claim 1, characterized in that The ship speed is determined according to the preset time interval and the corresponding change mileage, including: Acquire a first ship position of the target ship at a first time; Acquiring a second ship position of the target ship at a second time according to a preset time interval; Determining a change in mileage based on the first ship position and the second ship position; The ship speed is determined based on the changed mileage and a preset time interval.

7. A cruising range control device for a new energy ship, characterized in that: The device comprises: A determination unit, used to determine the discharge power according to the acquired transmission efficiency, battery capacity and remaining power of the target ship; and, determining the total power based on the power consumption of the target ship's accessories, the battery loss power, and the running loss power; and, determining a running time based on the discharge power and the total power; A calculation unit is used to calculate the travel time and the ship speed to obtain the travel mileage; wherein the ship speed is determined based on a preset time interval and a corresponding change in mileage.

8. An electronic device, characterized in that: The electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 6 when executing a program stored in a memory.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 6 are implemented.