IP Library Granted Patent US 11,316,712
Granted Patent B2
US 11,316,712 · App. 16/625,348 · Granted Apr 26, 2022

Canopen-based data transmission gateway changeover method, system and apparatus thereof

Inventors: Xiaohui Zhan (Shenzhen, CN); Wenxiao Zeng (Shenzhen, CN); Long Zhao (Shenzhen, CN)
Assignee: BYD COMPANY LIMITED
H04L12/40176H04L12/40071H04L12/40097H04L12/46H04L43/10H04L2012/40215H04L2012/40273
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,316,712
App. No.
16/625,348
Granted
Apr 26, 2022
Kind
B2
Abstract

A CANopen-based data transmission gateway changeover method includes: making an active gateway go alive, and mutually monitoring heartbeat packet status together with a standby gateway over an active-standby gateway communications network; keeping the active gateway alive and recording a breakdown of the standby gateway if no heartbeat packet of the standby gateway is detected within a preset heartbeat period and a heartbeat packet of the active gateway is successfully transmitted on the active-standby gateway communications network; requesting the standby gateway to go alive if the heartbeat packet of the active gateway fails to be transmitted on the active-standby gateway communications network; stopping requesting the standby gateway in a first in-vehicle communications network to go alive, and requesting the standby gateway to go alive; and keeping the active gateway alive and recording a breakdown of the standby gateway if still no response is received from the standby gateway.

Claims (89)

1. A CANopen-based data transmission gateway changeover method, comprising:

powering on an active gateway to go alive, and mutually monitoring heartbeat packet status together with a standby gateway over an active-standby gateway communications network;

keeping the active gateway alive and recording a breakdown of the standby gateway if no heartbeat packet of the standby gateway is detected within a preset heartbeat period and a heartbeat packet of the active gateway is successfully transmitted on the active-standby gateway communications network;

requesting, by the active gateway over any in-vehicle communications network, the standby gateway to go alive if the heartbeat packet of the active gateway fails to be transmitted on the active-standby gateway communications network;

stopping requesting, by the active gateway, the standby gateway in a first in-vehicle communications network to go alive and also requesting, over another in-vehicle communications network, the standby gateway to go alive if no response is received from the standby gateway on the first in-vehicle communications network; and

keeping the active gateway alive and recording a breakdown of the standby gateway if still no response is received from the standby gateway on a second in-vehicle communications network.

2. The method according to claim 1 , further comprising:

monitoring heartbeat packet status of the standby gateway over the active-standby gateway communications network when the active gateway fails to receive data of an inter-vehicle communications network or the inter-vehicle communications network has a port fault;

determining, if no heartbeat packet of the standby gateway is detected within the preset heartbeat period, whether the heartbeat packet of the active gateway can be successfully transmitted on the active-standby gateway communications network;

keeping the active gateway alive and recording a breakdown of the standby gateway if the heartbeat packet of the active gateway is successfully transmitted; or

requesting, by the active gateway over the second in-vehicle communications network, the standby gateway to keep alive if the transmission fails; and

determining, if a response is received from the standby gateway on the second in-vehicle communications network, current receiving status of data received by the standby gateway from each network, and performing corresponding processing based on the receiving status.

3. The method according to claim 2 , further comprising:

stopping requesting, by the active gateway, the standby gateway in the first in-vehicle communications network to keep alive and further requesting, on the second in-vehicle communications network, the standby gateway to keep alive if no response is received from the standby gateway on the second in-vehicle communications network;

keeping the active gateway alive and requesting, over the second in-vehicle communications network, the standby gateway to stop operating if no response is received from the standby gateway; and

determining, if a response is received from the standby gateway, current receiving status of data received by the standby gateway from each network, and performing corresponding processing based on the receiving status.

4. The method according to claim 2 , further comprising:

determining, by the active gateway if the heartbeat packet of the standby gateway is received normally, current receiving status of data received by the standby gateway from each network, and performing corresponding processing based on the receiving status.

5. The method according to claim 1 , further comprising:

determining, by the active gateway when the active gateway fails to receive data of the first in-vehicle communications network or the first in-vehicle communications network has a port fault, whether the first in-vehicle communications network has switched services over to the standby gateway currently;

performing redundant network switching if the services have not been switched over to the standby gateway, or keeping the active gateway alive if the switching succeeds;

monitoring the heartbeat packet status of the standby gateway over the active-standby gateway communications network if the services have been switched over to the standby gateway but still no data of the first in-vehicle communications network is received; and

determining, by the active gateway if the heartbeat packet of the standby gateway is received normally, current receiving status of data received by the standby gateway from each network, and performing corresponding processing based on the receiving status of data received from each network.

6. The method according to claim 5 , further comprising:

keeping the active gateway alive if no heartbeat packet of the standby gateway is detected within the preset heartbeat period, and if the heartbeat packet of the active gateway is successfully transmitted on the active-standby gateway communications network;

requesting, by the active gateway over the second in-vehicle communications network, the standby gateway to keep alive if the heartbeat packet of the active gateway fails to be transmitted on the active-standby gateway communications network;

keeping the active gateway alive if no response is received from the standby gateway in the second in-vehicle communications network; and

monitoring, if a response is received from the standby gateway on the second in-vehicle communications network, receiving status of data received by the standby gateway from each network, and performing corresponding processing based on the receiving status of data from each network.

7. The method according to claim 1 , further comprising:

determining, by the active gateway when the active gateway receives neither data of the first in-vehicle communications network nor data of the inter-vehicle communications network or when both the first in-vehicle communications network and the inter-vehicle communications network have a port fault, whether the first in-vehicle communications network has switched services over to a standby network currently, and performing redundant network switching if the services have not been switched over to the standby network, or performing preset processing if the switching succeeds;

monitoring the heartbeat packet status of the standby gateway over the active-standby gateway communications network if the services have been switched over to the standby gateway but still no data of the first in-vehicle communications network is received; and

determining, by the active gateway if the heartbeat packet of the standby gateway is received normally, current receiving status of data received by the standby gateway from each network, and performing corresponding processing based on the receiving status of data received from each network.

8. The method according to claim 7 , further comprising:

keeping the active gateway alive if no heartbeat packet of the standby gateway is detected within the preset heartbeat period, and if the heartbeat packet of the active gateway is successfully transmitted on the active-standby gateway communications network, and requesting, by the active gateway over the second in-vehicle communications network, the standby gateway to keep alive if the transmission fails;

keeping the active gateway alive if no response is received from the standby gateway; and

monitoring, if a response is received from the standby gateway, receiving status of data received by the standby gateway from each network, and performing corresponding processing based on the receiving status of data from each network.

9. The method according to claim 1 , further comprising:

determining, by the active gateway when the active gateway fails to receive data of the second in-vehicle communications network or the second in-vehicle communications network has a port fault, whether the second in-vehicle communications network has switched services over to a standby network currently, and performing redundant network switching if the services have not been switched over to the standby network, or keeping the active gateway alive if the switching succeeds;

monitoring the heartbeat packet status of the standby gateway over the active-standby gateway communications network if the services have been switched over to the standby gateway but still no data of the second in-vehicle communications network is received; and

determining, by the active gateway if the heartbeat packet of the standby gateway is received normally, current receiving status of data received by the standby gateway from each network, and performing corresponding processing based on the receiving status of data received from each network.

10. The method according to claim 9 , further comprising:

keeping the active gateway alive if no heartbeat packet of the standby gateway is detected within the preset heartbeat period, and if the heartbeat packet of the active gateway is successfully transmitted on the active-standby gateway communications network;

requesting, by the active gateway over the first in-vehicle communications network, the standby gateway to keep alive if the transmission fails; and

monitoring, if a response is received from the standby gateway on the first in-vehicle communications network, receiving status of data received by the standby gateway from each network, and performing corresponding processing based on the receiving status of data from each network.

11. The method according to claim 1 , further comprising:

determining, by the active gateway when the active gateway receives neither data of the second in-vehicle communications network nor data of the inter-vehicle communications network or when both the second in-vehicle communications network and the inter-vehicle communications network have a port fault, whether the second in-vehicle communications network has switched services over to the standby gateway currently, and performing redundant network switching if the services have not been switched over to the standby gateway, or performing preset processing if the switching succeeds;

monitoring the heartbeat packet status of the standby gateway over the active-standby gateway communications network if the services have been switched over to the standby gateway but still no data of the second in-vehicle communications network is received; and

determining, by the active gateway if the heartbeat packet of the standby gateway is received normally, current receiving status of data received by the standby gateway from each network, and performing corresponding processing based on the receiving status of data received from each network.

12. The method according to claim 11 , further comprising:

keeping the active gateway alive if no heartbeat packet of the standby gateway is detected within the preset heartbeat period, and if the heartbeat packet of the active gateway is successfully transmitted on the active-standby gateway communications network;

requesting, by the active gateway over the first in-vehicle communications network, the standby gateway to keep alive if the transmission fails; and

determining, by the active gateway if a response is received from the standby gateway, current receiving status of data received by the standby gateway from each network, and performing corresponding processing based on the receiving status of data from each network.

13. An active gateway, comprising:

a monitoring module, configured to mutually monitor heartbeat packet status together with a standby gateway over an active-standby gateway communications network when the active gateway is powered on to go alive;

a first processing module, configured to keep alive and record a breakdown of the standby gateway when no heartbeat packet of the standby gateway is detected within a preset heartbeat period and a heartbeat packet of the active gateway is successfully transmitted on the active-standby gateway communications network;

a requesting module, configured to request, over any in-vehicle communications network, the standby gateway to go alive when the heartbeat packet of the active gateway fails to be transmitted on the active-standby gateway communications network, wherein

the requesting module is further configured to stop requesting the standby gateway in a first in-vehicle communications network to go alive and also request, over another in-vehicle communications network, the standby gateway to go alive when no response is received from the standby gateway on the first in-vehicle communications network; and

the first processing module is further configured to keep alive and record a breakdown of the standby gateway when still no response is received from the standby gateway on a second in-vehicle communications network.

14. The active gateway according to claim 13 , wherein

the monitoring module is further configured to monitor heartbeat packet status of the standby gateway over the active-standby gateway communications network when the active gateway fails to receive data of an inter-vehicle communications network or the inter-vehicle communications network has a port fault;

a first determining module, configured to determine, when no heartbeat packet of the standby gateway is detected within the preset heartbeat period, whether the heartbeat packet of the active gateway can be successfully transmitted on the active-standby gateway communications network;

the first processing module is further configured to control the active gateway to keep alive and record a breakdown of the standby gateway when the heartbeat packet of the active gateway is successfully transmitted; or

the requesting module is further configured to request, over the second in-vehicle communications network, the standby gateway to keep alive when the transmission fails; and

the first processing module is configured to determine, when a response is received from the standby gateway on the second in-vehicle communications network, current receiving status of data received by the standby gateway from each network, and perform corresponding processing based on the receiving status.

15. The active gateway according to claim 14 , wherein

the requesting module is further configured to stop requesting the standby gateway in the first in-vehicle communications network to keep alive and further request, over the second in-vehicle communications network, the standby gateway to keep alive when no response is received from the standby gateway on the second in-vehicle communications network;

the first processing module is configured to control the active gateway to keep alive and request, over the second in-vehicle communications network, the standby gateway to stop when no response is received from the standby gateway; and

the first processing module is configured to determine, when a response is received from the standby gateway, current receiving status of data received by the standby gateway from each network, and perform corresponding processing based on the receiving status.

16. The active gateway according to claim 14 , wherein

the first processing module is configured to determine, when a heartbeat packet is received from the standby gateway normally, current receiving status of data received by the standby gateway from each network, and perform corresponding processing based on the receiving status.

17. The active gateway according to claim 13 , further comprising:

a second determining module, configured to determine, when the active gateway fails to receive data of the first in-vehicle communications network or the first in-vehicle communications network has a port fault, whether the first in-vehicle communications network has switched services over to the standby gateway currently, wherein

the first processing module is configured to perform redundant network switching when the services have not been switched over to the standby gateway, or control the active gateway to keep alive if the switching succeeds;

the monitoring module is configured to monitor the heartbeat packet status of the standby gateway over the active-standby gateway communications network when the services have been switched over to the standby gateway but still no data of the first in-vehicle communications network is received; and

the first processing module is configured to determine, when a heartbeat packet is received from the standby gateway normally, current receiving status of data received by the standby gateway from each network, and perform corresponding processing based on the receiving status of data from each network.

18. The active gateway according to claim 17 , wherein

the first processing module is configured to control the active gateway to keep alive when no heartbeat packet of the standby gateway is detected within the preset heartbeat period, and if the heartbeat packet of the active gateway is successfully transmitted on the active-standby gateway communications network;

the requesting module is configured to request, over the second in-vehicle communications network, the standby gateway to keep alive when the heartbeat packet of the active gateway fails to be transmitted on the active-standby gateway communications network;

the first processing module is configured to control the active gateway to keep alive when no response is received from the standby gateway in the second in-vehicle communications network; and

the first processing module is configured to monitor, when a response is received from the standby gateway on the second in-vehicle communications network, receiving status of data received by the standby gateway from each network, and perform corresponding processing based on the receiving status of data from each network.

19. The active gateway according to claim 13 , further comprising:

a third determining module, configured to determine, when the active gateway receives neither data of the first in-vehicle communications network nor data of the inter-vehicle communications network or when both the first in-vehicle communications network and the inter-vehicle communications network have a port fault, whether the first in-vehicle communications network has switched services over to a standby network currently, wherein

the first processing module is configured to perform redundant network switching when the services have not been switched over to the standby gateway, or perform preset processing when the switching succeeds;

the monitoring module is configured to monitor the heartbeat packet status of the standby gateway over the active-standby gateway communications network when if the services have been switched over to the standby gateway but still no data of the first in-vehicle communications network is received; and

the first processing module is configured to determine, when a heartbeat packet is received from the standby gateway normally, current receiving status of data received by the standby gateway from each network, and perform corresponding processing based on the receiving status of data from each network.

20. A CANopen-based data transmission gateway changeover system including the active gateway according to claim 17 , comprising:

a standby gateway, wherein the standby gateway comprises: a seventh determining module, configured to determine, if no heartbeat packet of the active gateway is detected on the active-standby gateway communications network within a preset heartbeat period when the standby gateway is powered on and in a stop state, whether a heartbeat packet of the standby gateway is successfully transmitted on the active-standby gateway communications network; a second processing module, configured to control the standby gateway to keep alive when the heartbeat packet of the standby gateway is successfully transmitted; and a deciding module, configured to: when the heartbeat packet of the standby gateway fails to be transmitted but the heartbeat packet of the active gateway is detected on the first in-vehicle communications network and a second in-vehicle communications network or the heartbeat packet of the standby gateway is received normally, decide a current state of the standby gateway based on a result of determining a responsive state of the standby gateway that is requested in the heartbeat packet of the active gateway;

an active-standby gateway communications network; and

an inter-vehicle communications network.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 20, 2019
From: ZHAN, XIAOHUI; ZENG, WENXIAO; ZHAO, LONG
To: BYD COMPANY LIMITED
Reel/Frame 051346/0534 →
Priority Claims (1)
CN 201710475925.5 · Jun 21, 2017 · national
Continuity (1)
Related Publication 20210367808A1 · Nov 25, 2021
Cited By (1)
US 12,386,771