TWI824316B - Encoding device and encoding method for state of traffic light - Google Patents

Encoding device and encoding method for state of traffic light Download PDF

Info

Publication number
TWI824316B
TWI824316B TW110138047A TW110138047A TWI824316B TW I824316 B TWI824316 B TW I824316B TW 110138047 A TW110138047 A TW 110138047A TW 110138047 A TW110138047 A TW 110138047A TW I824316 B TWI824316 B TW I824316B
Authority
TW
Taiwan
Prior art keywords
light
light state
state
signal
identification code
Prior art date
Application number
TW110138047A
Other languages
Chinese (zh)
Other versions
TW202316387A (en
Inventor
呂柏文
陳韋龍
莊茹茵
卓彥汝
洪聖欽
蔡秉達
同少聖
Original Assignee
中華電信股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中華電信股份有限公司 filed Critical 中華電信股份有限公司
Priority to TW110138047A priority Critical patent/TWI824316B/en
Publication of TW202316387A publication Critical patent/TW202316387A/en
Application granted granted Critical
Publication of TWI824316B publication Critical patent/TWI824316B/en

Links

Images

Landscapes

  • Optical Communication System (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)
  • Traffic Control Systems (AREA)

Abstract

An encoding device and an encoding method for a state of a traffic light are provided. The encoding method includes: receiving state information, wherein the state information includes a direction and at least one traffic light state of at least one traffic light; generating a state group identifier corresponding to the state information according to the direction and the at least one traffic light state; and outputting the state group identifier.

Description

號誌燈的燈態的編碼裝置和編碼方法Encoding device and encoding method for light status of signal lights

本發明是有關於一種號誌燈的燈態的編碼裝置和編碼方法。 The invention relates to a coding device and a coding method for the light status of a signal lamp.

自駕車輛行經市區道路之號誌路口時,應透過車載感知設備以確認路口交通號誌燈態進而確保自身及其他用路人安全。目前,已有部分自駕車廠提供可基於交通號誌燈態影像辨識之解決方案。然而,國內因缺乏良善都市與交通規畫且人口密集,都市道路型態相較於國外歐美來說更為複雜,且號誌燈的密度也較高,因此,影像辨識的技術難度將大幅提高。此外招牌林立、天候與強光等環境因素亦會影響車載攝影機取像品質及燈態辨識準確度。另一方面,其他種類的車載感知設備,如雷達或光達,其主要用於障礙物偵測而並無法有效地辨識號誌燈態。因此,單靠自駕車本身無法積極地解決此一問題。目前國際上朝向採用車聯網(vehicle-to-everything,V2X)通訊架構,由路側端主動廣播路口號誌燈燈態資訊以輔助自駕車輛安全地通過路口。 When self-driving vehicles pass through signalized intersections on urban roads, they should use on-board sensing equipment to confirm the traffic signal status at the intersection to ensure the safety of themselves and other passers-by. Currently, some self-driving car manufacturers have provided solutions based on traffic signal light state image recognition. However, due to the lack of good urban and traffic planning and the dense population in China, urban road patterns are more complex than those in Europe and the United States, and the density of traffic lights is also higher. Therefore, the technical difficulty of image recognition will be A substantial increase. In addition, environmental factors such as numerous signboards, weather, and strong light will also affect the image quality of the vehicle-mounted camera and the accuracy of light status recognition. On the other hand, other types of vehicle-mounted sensing equipment, such as radar or lidar, are mainly used for obstacle detection and cannot effectively identify signal light status. Therefore, self-driving cars alone cannot actively solve this problem. Currently, the international trend is to adopt the vehicle-to-everything (V2X) communication architecture, with the roadside end actively broadcasting the intersection sign and light status information to assist self-driving vehicles in safely passing the intersection.

參考圖1,圖1繪示基於V2X架構的通訊系統的示意圖。所述通訊系統的概念是將包含路口車道與號誌等資訊的地圖(MAP)訊息以及對應於路側之交通號誌控制器的時相與時制訊號(signal phase and timing,SPAT)訊息通過無線通訊技術(例如:IEEE 802.11p、DSRC或3GPPC-V2X)傳送至車載裝置(例如:具有通訊功能的行車電腦),再由車載裝置(on board unit,OBU)根據MAP訊息以及SPAT訊息進行自駕車的操控。上述的MAP訊息或SPAT訊息是符合國際SAE J2735標準的格式。 Referring to Figure 1, Figure 1 is a schematic diagram of a communication system based on V2X architecture. The concept of the communication system is to wirelessly communicate map (MAP) messages containing information such as intersection lanes and signals, as well as signal phase and timing (SPAT) messages corresponding to the traffic signal controllers on the roadside. technology (such as IEEE 802.11p, DSRC or 3GPPC-V2X) is transmitted to the vehicle-mounted device (such as a driving computer with communication functions), and then the vehicle-mounted device (on board unit, OBU) performs self-driving operations based on the MAP message and SPAT message. Control. The above-mentioned MAP message or SPAT message is in a format that complies with the international SAE J2735 standard.

隨著車流量增加,為了配合尖離峰時相、幹道的綠燈續進、優先車輛觸動或中心監控所需訊息回報等功能需求,交通部於民國93年頒布了都市交通控制通訊協定3.0版(以下簡稱為都3.0)。目前地方政府轄下新建或更換之交通號誌控制器均以符合此都3.0協定所規範之功能與通訊介面協定要求為準。因此交通控制中心可透過行動通訊或固網數據機介接交通號誌控制器的通訊介面(例如:RS-232序列埠或RJ-45網路埠)進行遠端的號誌燈操作。 As traffic volume increases, in order to meet functional requirements such as peak and peak hours, green light continuation of arterial roads, priority vehicle triggering, or information reporting required for central monitoring, the Ministry of Transportation promulgated the Urban Traffic Control Communication Protocol Version 3.0 in 1993 ( Hereinafter referred to as both 3.0). Currently, all new or replaced traffic signal controllers under local governments must comply with the functional and communication interface protocol requirements specified in the City 3.0 Agreement. Therefore, the traffic control center can connect to the communication interface of the traffic signal controller (such as RS-232 serial port or RJ-45 network port) through mobile communication or fixed-line modem for remote signal operation.

目前,基於V2X通訊架構的燈態廣播主要是將交通號誌控制器所廣播的都3.0訊號轉換為符合J2735規範的SPAT訊息,以使路側通訊設備(road-side unit,RSU)可通過SPAT訊息與各類型的車載裝置通訊。將都3.0訊號轉換為SPAT訊息的轉換過程可通過客製化的路側通訊設備或嵌入式電腦執行。以採用嵌入式電腦的架構為例,路側通訊裝置需取得對應於交通號誌控制器的 SPAT訊息,並且自交通控制中心取得載具行經之路口的MAP訊息。在取得SPAT訊息以及MAP訊息後,路側通訊裝置可將SPAT訊息以及MAP訊息轉發給車載裝置。車載裝置可根據該些訊息執行例如自駕車操控等相關操作。上述將都3.0訊號轉換為SPAT訊息的轉換過程存在標準格式轉換、同步轉換或欄位參數定義等議題,而這些議題也將牽涉到V2X設備間的相互操作性及區域標準化。 Currently, the light broadcast based on the V2X communication architecture mainly converts the 3.0 signals broadcast by the traffic signal controller into SPAT messages that comply with the J2735 specification, so that the road-side communication equipment (road-side unit, RSU) can pass the SPAT messages. Communicates with various types of vehicle-mounted devices. The conversion process of Du3.0 signals into SPAT messages can be performed through customized roadside communication equipment or embedded computers. Taking the architecture of an embedded computer as an example, the roadside communication device needs to obtain the information corresponding to the traffic signal controller. SPAT information, and obtain MAP information of the intersection where the vehicle travels from the traffic control center. After obtaining the SPAT message and the MAP message, the roadside communication device can forward the SPAT message and the MAP message to the vehicle-mounted device. The vehicle-mounted device can perform related operations such as self-driving control based on this information. The above-mentioned conversion process of converting Dudu 3.0 signals into SPAT messages involves issues such as standard format conversion, synchronous conversion, or field parameter definition, and these issues will also involve interoperability and regional standardization between V2X devices.

針對標準格式轉換的議題,目前V2X技術的資訊格式主要採用SAE J2735標準之資訊集,其中與號誌燈態相關部分為MAP訊息及SPAT訊息。MAP訊息主要用以描述路口及車道屬性,諸如路口座標、車道的索引、車道的允許用路人種類、車道的允許轉向或車道對應的燈態群組等資訊。SPAT訊息則為路口燈態群組之各種燈態之時制計畫描述,例如描述一燈態群組的綠燈、黃燈或紅燈的起訖時間資訊。另一方面,都3.0中對於燈態的描述方式,例如5F03命令(步階燈態之主動回報訊息中的前二位元組之十六進位代碼)可分成兩個部分:一是車輛所需之圓頭綠燈或箭頭綠燈(左轉、直走或右轉)及其對應的黃燈與紅燈,二是行人綠燈及其對應的行人綠閃與行人紅燈。也就是說,都3.0訊號描述當下允許車輛或行人行進方向的燈號啟閉狀態。時制計畫由時相和步階的排列組合以及步階秒數資訊等參數組成。不同的時制計畫意味著不同的時相步階排列組合。在將都3.0訊號的燈態資訊填入SPAT訊息的實作方式上,常見以5F03訊息之即時燈態與剩餘秒數填入, 或者需要進一步分析時制計畫之時相排列以取出完整週期之起迄時間,以填入SPAT訊息之對應燈態事件欄位。 Regarding the issue of standard format conversion, the current information format of V2X technology mainly adopts the information set of the SAE J2735 standard, of which the parts related to the signal light status are MAP messages and SPAT messages. MAP messages are mainly used to describe intersection and lane attributes, such as intersection coordinates, lane indexes, permitted types of pedestrians in the lane, permitted turns in the lane, or light status groups corresponding to the lane, etc. The SPAT message is a timing plan description of various light states of an intersection light state group, such as describing the start and end time information of a green light, yellow light or red light of a light state group. On the other hand, the description method of light status in Du 3.0, such as the 5F03 command (the hexadecimal code of the first two bytes in the active reporting message of the step light status) can be divided into two parts: First, the vehicle needs The round green light or arrow green light (turn left, go straight or turn right) and its corresponding yellow light and red light, the second is the pedestrian green light and its corresponding pedestrian green flashing and pedestrian red light. In other words, both 3.0 signals describe the current on and off status of lights in the direction that allows vehicles or pedestrians to travel. The timing plan consists of parameters such as the arrangement and combination of phases and steps, as well as step second information. Different timing plans mean different arrangements and combinations of timing steps. In the implementation method of filling in the light status information of the Du3.0 signal into the SPAT message, it is common to fill in the real-time light status and remaining seconds of the 5F03 message. Or it may be necessary to further analyze the phase arrangement of the time plan to extract the start and end times of the complete cycle to fill in the corresponding light event fields of the SPAT message.

針對同步轉換的議題,自駕車輛因高速的移動對道路資訊具有高資料更新頻率與低延遲的需求。舉例來說,車載應用端可能要求資料更新頻率在10Hz,亦即路側的交通號誌控制器每秒需廣播10次訊息。然而,實務上可以發現這樣的需求在目前的國內號誌設備與規範上是無法達成的。例如都3.0協定的5F03命令可設定為固定秒數或步階轉換時回報,其中固定秒數最快可設定為每秒回報一次。所以在交通號誌控制器與路側通訊設備間,必須透過其他中介軟體或設備。中介軟體或設備除了進行不同規範的資料格式的轉換外,也進行資料的同步填補。此外,號誌可能因事件(例如:公車、鐵路或警消車輛優先)觸動或其他原因,號誌燈號之實際運作偏離了中心設定的時制計畫。當達到一設定門檻值時,交通號誌控制器將透過暫時調整當下設備運作的時制計畫週期(即:時制補償)以同步中心的時制計畫,其中的補償機制將存在廠商差異性。此外,交通號誌控制器在執行燈態切換指令時亦可能存在著數百毫秒的變動,並隨著燈態資訊傳遞路徑上的設備數增加,將使得車載裝置所接收到的燈態訊息中所含的剩餘秒數與實際的燈態轉換秒數間存在著數百毫秒甚至數秒的落差。綜上所述,若需要確保車載端接收到與路口燈頭同步之燈態訊息,則該中介軟體或設備亦須納入動態的時間補償機制以便進行同步轉換。 Regarding the issue of synchronous conversion, self-driving vehicles have high data update frequency and low latency requirements for road information due to their high-speed movement. For example, the vehicle application may require the data update frequency to be 10Hz, which means the traffic signal controller on the roadside needs to broadcast messages 10 times per second. However, in practice, it can be found that such a demand cannot be achieved with the current domestic signaling equipment and specifications. For example, the 5F03 command of the Du3.0 protocol can be set to report at a fixed number of seconds or at step transition. The fixed number of seconds can be set to report once per second at the earliest. Therefore, other intermediary software or equipment must be used between the traffic signal controller and the roadside communication equipment. In addition to converting data formats of different standards, intermediary software or devices also perform synchronous filling of data. In addition, the signal may be triggered due to events (for example: buses, railways or police vehicles have priority) or other reasons, and the actual operation of the signal deviates from the time plan set by the center. When a set threshold is reached, the traffic signal controller will synchronize the center's timing plan by temporarily adjusting the timing planning cycle of the current equipment operation (ie: timing compensation). The compensation mechanism will have manufacturer differences. In addition, there may be hundreds of milliseconds of changes when the traffic signal controller executes the light status switching instructions. As the number of devices on the light status information transmission path increases, the light status information received by the vehicle-mounted device will change. There is a gap of hundreds of milliseconds or even seconds between the remaining seconds contained and the actual light state transition seconds. To sum up, if it is necessary to ensure that the vehicle terminal receives the light status information synchronized with the intersection light head, the intermediary software or device must also incorporate a dynamic time compensation mechanism to facilitate synchronous conversion.

針對欄位參數定義的議題,符合SAE J2735標準的V2X 訊息中,所有欄位均被賦予功能描述與適合的變數型態,但為了保留不同地區需求的應用彈性,部分欄位缺乏明確的參數值域定義。舉例來說,與號誌燈態相關部分之MAP訊息或SPAT訊息中的路口識別碼(IntersectionReferenceID)或燈態群組(SignalGroup)等欄位缺乏明確的定義。當國內引用此國際標準時,設備廠商須對訊息的運用方式(欄位選用或定義等)進行國內測試場域的客製化調整,造成個別設備廠商間對同一V2X訊息的解讀將存在歧義,因而衍生相互操作性與國內標準化議題。 Regarding the issue of field parameter definition, V2X that complies with the SAE J2735 standard In the message, all fields are given functional descriptions and appropriate variable types. However, in order to retain the application flexibility required by different regions, some fields lack clear parameter value range definitions. For example, fields such as the intersection identification code (IntersectionReferenceID) or light status group (SignalGroup) in the MAP message or SPAT message related to the signal light status lack clear definitions. When this international standard is cited in China, equipment manufacturers must make customized adjustments to the use of messages (field selection or definitions, etc.) in domestic test sites, resulting in ambiguities in the interpretation of the same V2X message between individual equipment manufacturers. Therefore, Derived interoperability and domestic standardization issues.

在號誌燈態訊息部分,車載裝置須透過MAP訊息中載具所在位置、行駛方向接近的路口以及所行駛車道所對應的號誌燈燈態群組之識別碼等資訊來檢索SPAT訊息中相對應的路口或號誌燈燈態群組的動作事件(包含事件燈態與時間欄位等)訊息後,再根據動作事件執行自動駕駛。在路口以及車道的數量眾多個情況下,車載裝置需花費大量運算資源或時間在檢索出正確的SPAT訊息。關於號誌燈態群組之識別碼的實作上,美國國家智慧型運輸系統標準通訊協定(NTCIP)採用自索引1開始依序對一路口號誌所有燈態群組進行編碼的方式。國內各示範場域的V2X設備商或營運商則以手動分析路口當下的所有燈態組合,再以上述方式進行燈態群組編碼以填入V2X路側通訊設備。當該路口號誌進行尖離峰時段、觸動操作甚或調撥車道時,時制計畫的時相排列的改變意味著燈態組合的改變,此時使用人工方式進行V2X訊息內容之調整將缺乏效率。此外,車載裝置在接收到V2X之MAP及SPAT 訊息時,須依據目前載具的位置與行進方向逐一判斷路口所有車道資訊及適用的號誌燈態群組。當一路口具備複雜車道或車輛本身定位精度無法鎖定正確的車道時,將會影響與降低車載裝置的號誌燈燈態解析之正確性與效能。 In the signal light status message part, the vehicle-mounted device must retrieve the relevant information in the SPAT message through the location of the vehicle in the MAP message, the approaching intersection in the driving direction, and the identification code of the signal light status group corresponding to the driving lane. After receiving the action event information (including event light status and time field, etc.) of the corresponding intersection or signal light status group, automatic driving is executed based on the action event. In situations where there are a large number of intersections and lanes, the vehicle-mounted device needs to spend a lot of computing resources or time to retrieve the correct SPAT information. Regarding the implementation of the identification code of the signal light state group, the National Intelligent Transportation System Standard Communication Protocol (NTCIP) adopts the method of encoding all light state groups of the road sign in sequence starting from index 1. V2X equipment vendors or operators in various domestic demonstration sites manually analyze all current light state combinations at intersections, and then use the above method to code the light state group to fill in the V2X roadside communication equipment. When the intersection sign reaches off-peak hours, triggers operations, or even changes lanes, the change in the phase arrangement of the timing plan means a change in light status combination. At this time, manual adjustment of V2X message content will be inefficient. In addition, when the vehicle-mounted device receives the V2X MAP and SPAT When receiving a message, all lane information and applicable signal light status groups at the intersection must be determined one by one based on the current location and direction of travel of the vehicle. When an intersection has complex lanes or the vehicle's own positioning accuracy cannot lock the correct lane, it will affect and reduce the accuracy and efficiency of the vehicle-mounted device's signal light state analysis.

本發明提供一種號誌燈的燈態的編碼裝置和編碼方法,可自動地為號誌燈的燈態進行編碼,藉以產生可改善車載裝置對號誌燈燈態之解析正確性的編碼訊息。 The present invention provides a coding device and a coding method for the lighting status of a traffic light, which can automatically code the lighting status of a traffic light, thereby generating coding information that can improve the accuracy of analysis of the traffic light status by a vehicle-mounted device.

本發明的一種號誌燈的燈態的編碼裝置,包含處理器、儲存媒體以及收發器。儲存媒體儲存多個模組。處理器耦接儲存媒體以及收發器,並且存取和執行多個模組,其中多個模組包含資料收集模組、運算模組以及輸出模組。資料收集模組通過收發器接收燈態資訊,其中燈態資訊包含方向以及至少一號誌燈的至少一號誌燈燈態。運算模組根據方向以及至少一號誌燈燈態產生對應於燈態資訊的燈態群組識別碼。輸出模組通過收發器輸出燈態群組識別碼。 The invention provides a device for encoding the light status of a signal light, including a processor, a storage medium and a transceiver. Storage media stores multiple modules. The processor is coupled to the storage medium and the transceiver, and accesses and executes multiple modules, where the multiple modules include a data collection module, a computing module, and an output module. The data collection module receives light state information through the transceiver, where the light state information includes direction and at least one signal light state of at least one signal light. The computing module generates a light state group identification code corresponding to the light state information based on the direction and the light state of at least one indicator light. The output module outputs the light status group identification code through the transceiver.

在本發明的一實施例中,上述的燈態群組識別碼包含車道方位碼,其中車道方位碼對應於依方向進入路口的第一車道以及依方向離開路口的第二車道的其中之一。 In an embodiment of the present invention, the above-mentioned light group identification code includes a lane orientation code, wherein the lane orientation code corresponds to one of the first lane entering the intersection according to the direction and the second lane leaving the intersection according to the direction.

在本發明的一實施例中,上述的燈態資訊包含閃光指示符,其中運算模組響應於燈態資訊包含閃光指示符並且至少一號 誌燈燈態對應於黃燈而編碼燈態群組識別碼中的燈態為閃光黃燈燈態,其中運算模組響應於燈態資訊包含閃光指示符並且至少一號誌燈燈態對應於紅燈而編碼燈態群組識別碼中的燈態為閃光紅燈燈態。 In an embodiment of the present invention, the above-mentioned light status information includes a flash indicator, and the computing module responds to the light status information including a flash indicator and at least one number. The indicator light state corresponds to the yellow light and the light state in the encoded light state group identification code is the flashing yellow light state, wherein the computing module responds to the light state information including the flash indicator and at least one indicator light state corresponds to Red light and the light state in the coded light state group identification code is the flashing red light state.

在本發明的一實施例中,上述的燈態資訊包含閃光指示符,其中運算模組響應於燈態資訊包含閃光指示符並且至少一號誌燈燈態對應於行人綠閃燈而編碼燈態群組識別碼中的燈態為閃光黃燈燈態,其中運算模組響應於燈態資訊包含閃光指示符並且至少一號誌燈燈態對應於行人紅燈而編碼燈態群組識別碼中的燈態為閃光紅燈燈態。 In an embodiment of the present invention, the above-mentioned light status information includes a flash indicator, wherein the computing module encodes the light status in response to the light status information including the flash indicator and the at least one signal light status corresponds to the pedestrian green flashing light. The light state in the group identification code is a flashing yellow light state, wherein the computing module encodes the light state in the group identification code in response to the light state information including the flashing indicator and at least one signal light state corresponding to the pedestrian red light. The light state is flashing red light state.

在本發明的一實施例中,上述的運算模組判斷至少一號誌燈燈態是否對應於圓頭綠燈,其中運算模組響應於至少一號誌燈燈態對應於圓頭綠燈而編碼燈態群組識別碼中的燈態為圓頭綠燈燈態。 In an embodiment of the present invention, the above-mentioned computing module determines whether the light state of at least one signal light corresponds to a round green light, wherein the computing module encodes the light in response to the light state of the at least one signal light corresponding to a round green light. The light status in the status group identification code is the round green light status.

在本發明的一實施例中,上述的運算模組響應於至少一號誌燈燈態未對應於圓頭綠燈而判斷至少一號誌燈燈態是否對應於三向綠燈,其中運算模組響應於至少一號誌燈燈態對應於三向綠燈而編碼燈態群組識別碼中的燈態為三向綠燈燈態。 In an embodiment of the present invention, the above-mentioned computing module determines whether the light state of at least one traffic light corresponds to a three-way green light in response to the light state of at least one traffic light not corresponding to a round green light, wherein the computing module responds At least one signal light state corresponds to a three-way green light and the light state in the encoded light state group identification code is a three-way green light state.

在本發明的一實施例中,上述的運算模組響應於至少一號誌燈燈態未對應於三向燈態而判斷至少一號誌燈燈態是否對應於雙向綠燈,其中運算模組響應於至少一號誌燈燈態對應於雙向綠燈而編碼燈態群組識別碼中的燈態為雙向綠燈燈態。 In an embodiment of the present invention, the above-mentioned computing module determines whether the lighting state of the at least one traffic light corresponds to the two-way green light in response to the light state of the at least one traffic light not corresponding to the three-way light state, wherein the computing module responds At least one signal light state corresponds to a two-way green light and the light state in the encoded light state group identification code is a two-way green light state.

在本發明的一實施例中,上述的運算模組響應於至少一號誌燈燈態未對應於雙向綠燈而判斷至少一號誌燈燈態是否對應於單向綠燈,其中運算模組響應於至少一號誌燈燈態對應於單向綠燈而編碼燈態群組識別碼中的燈態為單向綠燈燈態。 In an embodiment of the present invention, the above-mentioned computing module determines whether the lighting state of at least one traffic signal corresponds to a one-way green light in response to the lighting state of at least one traffic light not corresponding to a two-way green light, wherein the computing module responds to At least the light state of the signal light 1 corresponds to the one-way green light and the light state in the encoded light state group identification code is the one-way green light state.

在本發明的一實施例中,上述的運算模組判斷至少一號誌燈燈態是否對應於行人綠燈,其中運算模組響應於至少一號誌燈燈態對應於行人綠燈而編碼燈態群組識別碼中的燈態為行人綠燈燈態。 In an embodiment of the present invention, the above-mentioned computing module determines whether the light state of at least one signal lamp corresponds to a green light for pedestrians, wherein the computing module encodes the light state group in response to the light state of at least one signal lamp corresponding to a green light for pedestrians. The light state in the group identification code is the pedestrian green light state.

在本發明的一實施例中,上述的燈態群組識別碼包含一位元組,其中位元組的一半記載車道方位碼,並且位元組的另一半記載燈態,其中一半包含最高有效位元,並且另一半包含最低有效位元。 In an embodiment of the present invention, the above-mentioned light status group identification code includes a byte, half of the byte records the lane position code, and the other half of the byte records the light status, and half of the byte contains the most significant bits, and the other half contains the least significant bits.

本發明的一種號誌燈的燈態的編碼方法,包含:接收燈態資訊,其中燈態資訊包含方向以及至少一號誌燈的至少一號誌燈燈態;根據方向以及至少一號誌燈燈態產生對應於燈態資訊的燈態群組識別碼;以及輸出燈態群組識別碼。 A method for encoding the light state of a signal light of the present invention includes: receiving light state information, wherein the light state information includes a direction and at least one light state of at least one signal light; according to the direction and at least one signal light state The light state generates a light state group identification code corresponding to the light state information; and outputs the light state group identification code.

基於上述,本發明可自動地將自都3.0訊號取得的資訊轉換為符合J2735標準之SPAT訊息格式的燈態群組識別碼,其中燈態群組識別碼可包含車道方位碼以及號誌燈燈態等資訊。 Based on the above, the present invention can automatically convert the information obtained from the Capital 3.0 signal into a light group identification code that complies with the SPAT message format of the J2735 standard. The light group identification code can include a lane position code and a signal light. Status and other information.

100:編碼裝置 100: Encoding device

110:處理器 110: Processor

120:儲存媒體 120:Storage media

121:資料收集模組 121:Data collection module

122:運算模組 122:Operation module

123:輸出模組 123:Output module

130:收發器 130:Transceiver

S100、S200、S300、S400、S501、S502、S503、S504、S505、S506、S507、S601、S602、S603、S604、S605、S606、S607、S608、S609、S610、S611、S612、S613、S614、S615、S616、S617、S618、S701、S702、S703、S704、S705、S706、S707、S708、S709、S801、S802、S803:步驟 S100, S200, S300, S400, S501, S502, S503, S504, S505, S506, S507, S601, S602, S603, S604, S605, S606, S607, S608, S609, S610, S611, S612, S613, S614 , S615, S616, S617, S618, S701, S702, S703, S704, S705, S706, S707, S708, S709, S801, S802, S803: Steps

圖1繪示基於V2X架構的通訊系統的示意圖。 Figure 1 shows a schematic diagram of a communication system based on V2X architecture.

圖2根據本發明的一實施例繪示都3.0訊號定義的車道方向與MAP訊息定義的車道方向的映射關係的示意圖。 FIG. 2 is a schematic diagram illustrating the mapping relationship between the lane direction defined by the Du3.0 signal and the lane direction defined by the MAP message according to an embodiment of the present invention.

圖3根據本發明的一實施例繪示一種號誌燈的燈態的編碼裝置的示意圖。 FIG. 3 is a schematic diagram of an encoding device for the light state of a signal light according to an embodiment of the present invention.

圖4根據本發明的一實施例繪示編碼裝置產生燈態群組識別碼的流程圖。 FIG. 4 illustrates a flow chart of a coding device generating a light state group identification code according to an embodiment of the present invention.

圖5根據本發明的一實施例繪示步驟S300的流程圖。 FIG. 5 illustrates a flowchart of step S300 according to an embodiment of the present invention.

圖6根據本發明的一實施例繪示步驟S511的流程圖。 FIG. 6 illustrates a flowchart of step S511 according to an embodiment of the present invention.

圖7根據本發明的一實施例繪示步驟S400的流程圖。 FIG. 7 illustrates a flowchart of step S400 according to an embodiment of the present invention.

圖8根據本發明的一實施例繪示一種號誌燈的燈態的編碼方法的流程圖。 FIG. 8 illustrates a flow chart of a method for encoding the light status of a signal light according to an embodiment of the present invention.

前述的號誌燈態群組欄位參數定義議題中,車載裝置須先取出MAP訊息中載具所在的位置及方向以確認載具所接近之路口的識別碼以及載具所行駛之車道對應的號誌燈態群組。接著,車載裝置須檢索SPAT訊息中對應之路口識別碼及號誌燈態群組的燈態事件訊息後運用。 In the aforementioned signal light status group field parameter definition issue, the vehicle-mounted device must first retrieve the location and direction of the vehicle in the MAP message to confirm the identification code of the intersection that the vehicle is approaching and the lane corresponding to the vehicle's driving lane. Signal light status group. Then, the vehicle-mounted device must retrieve the corresponding intersection identification code and the light status event information of the signal light status group in the SPAT message before using it.

例如在MAP訊息中,一路口的每一方位可能具有一個左轉車道、一或多個直行車道及一個右轉車道,此外,可能還有機車道及行人專用道等車道與適用車種資訊。當車載裝置透過V2X車 載通訊設備(OBU)自路側通訊設備(RSU)接收到在鄰近區域內之多個路口的MAP訊息及SPAT訊息時,車載裝置需要依據目前車輛的方位以自諸多MAP訊息的路口座標中,篩選出訊息中屬於接近中之路口的路口識別碼,並取得對應該路口識別碼的MAP訊息及SPAT訊息。而後,車載裝置須依據MAP訊息的所有車道座標,篩選出車輛所行駛的車道及其對應的號誌燈態群組。接著,車載裝置須由SPAT訊息中的適用號誌燈態群組取出燈態事件資料。車載裝置可依據燈態事件資料進行載具的操作,例如,依據綠燈燈態剩餘秒數來判斷是否減速,或依據紅燈燈態剩餘秒數判斷車輛是否起步加速。對於一車輛而言,可能需要依序篩檢該路口所有車道座標與方位後才能確定自身所屬車道。上述的篩檢機制將造成車載裝置極大的運算負荷。 For example, in the MAP message, each direction of an intersection may have a left turn lane, one or more through lanes, and a right turn lane. In addition, there may be lanes and applicable vehicle type information such as motorcycle lanes and pedestrian lanes. When the vehicle-mounted device passes through the V2X vehicle When the on-board communication unit (OBU) receives MAP messages and SPAT messages from multiple intersections in the nearby area from the roadside communication unit (RSU), the vehicle-mounted device needs to filter the intersection coordinates of many MAP messages based on the current vehicle position. The intersection identification code belonging to the intersection near the middle road in the outgoing message is obtained, and the MAP message and SPAT message corresponding to the intersection identification code are obtained. Then, the vehicle-mounted device must filter out the lane the vehicle is driving and its corresponding signal light status group based on all lane coordinates in the MAP message. Next, the vehicle-mounted device must retrieve the light event data from the applicable signal light group in the SPAT message. The vehicle-mounted device can operate the vehicle based on the light state event data. For example, it can determine whether to decelerate based on the remaining seconds of the green light state, or determine whether the vehicle starts to accelerate based on the remaining seconds of the red light state. For a vehicle, it may be necessary to sequentially screen the coordinates and directions of all lanes at the intersection before determining the lane to which it belongs. The above-mentioned screening mechanism will cause a huge computing load on the vehicle-mounted device.

有鑑於此,本發明提出一種將都3.0訊號轉換為MAP訊息或SPAT訊息的編碼方法。依據本發明所產生的編碼訊息(例如:MAP訊息或SPAT訊息)可包含車道方位與允許轉向等資訊,車載裝置可依據此資訊選擇合適的燈態群組,再進而判斷是否行駛在正確車道上。車道方位可包含車道的方向且可指示車道為駛向路口的車道或駛離路口的車道。 In view of this, the present invention proposes a coding method for converting Dual 3.0 signals into MAP messages or SPAT messages. The encoded message (for example, MAP message or SPAT message) generated according to the present invention can include information such as lane orientation and allowed steering. The vehicle-mounted device can select an appropriate light group based on this information, and then determine whether the vehicle is driving in the correct lane. . The lane bearing may include the direction of the lane and may indicate whether the lane is a lane heading toward the intersection or a lane heading away from the intersection.

針對車道方向,SAE J2735標準的MAP及SPAT訊息中的號誌燈態群組(SignalGroup)為一位元組型態參數,其值域為0~255(十進制)或0x00~0xFF(十六進制)。本發明可將都3.0訊號轉換為包含一位元組資料的燈態群組識別碼,其中燈態群組識 別碼的高半位元組(位元7-4),即位元組中包含最高有效位元(most significant bit,msb)的一半,可記載車道方位碼。燈態群組識別碼的低半位元組(位元3-0),即位元組中包含最低有效位元(least significant bit,lsb)的另一半,可記載路口號誌燈的燈態。本發明所產生的燈態群組識別碼可包含於MAP及SPAT訊息之中。 For the lane direction, the signal group (SignalGroup) in the MAP and SPAT messages of the SAE J2735 standard is a one-tuple type parameter, and its value range is 0~255 (decimal) or 0x00~0xFF (hexadecimal). system). The present invention can convert the 3.0 signal into a light state group identification code containing one byte data, wherein the light state group identification code The high half byte of the alias (bits 7-4), that is, the half of the byte containing the most significant bit (msb), can record the lane location code. The lower half of the byte (bits 3-0) of the light status group identification code, that is, the other half of the byte containing the least significant bit (lsb), can record the light status of the intersection sign. The light status group identification code generated by the present invention can be included in the MAP and SPAT messages.

本發明的燈態群組識別碼中的高半位元組(位元7-4)依據一米字形路口之8個方向,由北側開始順時針依序為北、東北、東、東南、南、西南、西及西北等8個方向表示可存在之車道方向,其中一路口之各方向車道又可分為進入路口與離開路口兩類,依序進行編碼,如表1所示。 The upper half byte (bits 7-4) in the light status group identification code of the present invention is based on the 8 directions of a meter-shaped intersection, starting from the north side and clockwise in order: north, northeast, east, southeast, and south. Eight directions, including , southwest, west and northwest, represent the possible lane directions. The lanes in each direction of an intersection can be divided into two categories: entering the intersection and leaving the intersection, and are coded in order, as shown in Table 1.

Figure 110138047-A0305-02-0013-1
Figure 110138047-A0305-02-0013-1
Figure 110138047-A0305-02-0014-2
Figure 110138047-A0305-02-0014-2

在將車道方位填入MAP訊息或SPAT訊息時,車道方位代表車道對此路口中心的相對方位。對交通號誌控制器而言,都3.0時相資料管理命令(如5F03)的燈態方向欄位(SignalMap)使用一位元組的8個位元定義一米字形路口8方向的燈態啟用狀態,其由低至高位元分別為北、東北、東、東南、南、西南、西及西北,其中的方向為車流方向,亦即都3.0與MAP兩者間對車道方向定義存在一體兩面的鏡向轉換關係,如圖2所示。圖2根據本發明的一實施例繪示都3.0訊號定義的車道方向與MAP訊息定義的車道方向的映射關係的示意圖。在圖2中,外環為路口號誌之都3.0訊號SignalMap欄位定義之車流方向,內環為本發明於該路口之MAP訊息燈態群組之識別碼高半位元組所儲存的車道方位碼,其中因都3.0訊號的號誌燈態主要用於管制進入路口的車流,因此對應內環的路口車道方向編碼採用進入路口之車道方向編碼。 When filling the lane orientation into the MAP message or SPAT message, the lane orientation represents the relative orientation of the lane to the center of the intersection. For traffic signal controllers, the light state direction field (SignalMap) of the 3.0 phase data management command (such as 5F03) uses 8 bits of a byte to define the light state activation in 8 directions of a one-meter-shaped intersection. Status, the bits from low to high are north, northeast, east, southeast, south, southwest, west and northwest. The direction is the direction of traffic flow, that is, the definition of lane direction between Du3.0 and MAP has two sides. The mirror conversion relationship is shown in Figure 2. FIG. 2 is a schematic diagram illustrating the mapping relationship between the lane direction defined by the Du3.0 signal and the lane direction defined by the MAP message according to an embodiment of the present invention. In Figure 2, the outer ring is the traffic flow direction defined by the SignalMap field of the Intersection Sign City 3.0 signal, and the inner ring is the lane where the high half byte of the identification code of the MAP message light group at the intersection is stored. Direction code, among which the signal light status of Dudu 3.0 signal is mainly used to control the traffic flow entering the intersection, so the lane direction code corresponding to the inner ring intersection uses the lane direction code entering the intersection.

針對允許轉向,在都3.0之交通號誌控制器中,一號誌的時制計畫係透過時段(例如:一般日或特殊日)、計畫編號、基準方向、時相排列、時制計畫內容(例如:定義綠燈與週期秒數)或時制計畫基本參數(例如:定義黃、紅燈秒數等)等諸多資料定義,並透過多個指令存取。另一方面,路口之號誌燈的燈態啟閉組合係透過一時相種類編碼(PhaseOrder)索引所對應的時相步階排列方式,其係藉由一個完整週期的燈態啟閉的邏輯狀態來描述,其中一步階為一路口所有方向之燈態啟閉邏輯組合,下一步階則為另一種不同的燈態啟閉邏輯組合。 Regarding allowed turns, in the traffic signal controller of Metropolis 3.0, the time-based plan of No. 1 sign is based on the time period (for example: ordinary day or special day), plan number, reference direction, time phase arrangement, and time-based plan content (For example: defining green light and cycle seconds) or basic parameters of time-based planning (for example: defining yellow, red light seconds, etc.) and many other data definitions, and accessed through multiple instructions. On the other hand, the combination of light status on and off of the intersection signal light is arranged through a phase step sequence corresponding to a phase type code (PhaseOrder) index, which is the logical state of the light status on and off in a complete cycle. To describe, one step is a logical combination of light status on and off in all directions of an intersection, and the next step is another different logical combination of light status on and off.

都3.0訊號的燈態資訊可包含方向(即:載具的行駛方向)、時相、每一個步階所對應的號誌燈燈號(「O」代表亮燈,「Δ」代表閃燈)以及閃光指示符。以表2為例,表2為對應於方向「東」的燈態資訊。時相I的步階1對應於「早開二時相」中的第一種綠燈分相(即:同向車道提早綠燈,對向車道尚未綠燈)。時相I的步階2-6對應於「早開二時相」中的第二種綠燈分相(即:同向車道與對向車道雙向綠燈)。時相II的步階7-11對應於「早開二時相」中的第三種綠燈分相(即:同向車道與對向車道雙向紅燈)。 The light status information of Du 3.0 signals can include direction (i.e., the driving direction of the vehicle), time phase, and the signal light corresponding to each step ("O" represents the light, "Δ" represents the flashing light) and flash indicators. Take Table 2 as an example. Table 2 shows the light status information corresponding to the direction "east". Step 1 of phase I corresponds to the first green light split in the "early opening two phases" (that is, the lane in the same direction has an early green light, and the opposite lane has not yet had a green light). Steps 2-6 of phase I correspond to the second green light split in the "early opening two phases" (ie: two-way green lights for the same direction lane and the opposite lane). Steps 7-11 of phase II correspond to the third green light split in the "early opening phase II" (ie: two-way red lights in the same direction and opposite direction).

Figure 110138047-A0305-02-0015-3
Figure 110138047-A0305-02-0015-3
Figure 110138047-A0305-02-0016-4
Figure 110138047-A0305-02-0016-4

在都3.0訊號中,一方向的一步階的號誌燈燈態可以一位元組的SignalStatus參數描述(即:都3.0協定之5F*3指令),其由高至低位元分別代表行人紅燈、行人綠燈、右轉綠燈、直行綠燈、左轉綠燈、圓頭綠燈、黃燈、紅燈等燈態(「1」為開啟,「0」為關閉)。以表2的步階1為例,都3.0訊號的燈態資訊包含的SignalStatus參數的值為「0x44」,代表在步階1時,行人綠燈以及圓頭綠燈亮起。也就是說,都3.0訊號的燈態資訊可描述一路口進入方向的步階燈態,並混合了用於車流的號誌燈與用於行人的號誌燈等兩類資訊。而在J2735標準中,車道的適用的用路人種類描 述於MAP訊息中,而SPAT訊息定義中,一個燈態群組可包含一至多個號誌操作事件(MovementEvent)。一號誌操作事件定義了一事件狀態及其運作時間資訊,而其中一事件狀態(eventState)列舉該車道的某一號誌狀態,對應國內現況有以下幾種號誌狀態:0(故障)、1(未啟用)、2(閃光紅燈)、3(紅燈)、4(預告綠燈/紅燈倒數)、5(圓頭綠燈)、6(箭頭綠燈)、7(對應非保護時相圓頭綠燈的黃燈)、8(對應箭頭綠燈的黃燈)、9(閃光黃燈)。 In the Metropolis 3.0 signal, the one-step signal light status in one direction can be described by the SignalStatus parameter of the one-tuple (ie: the 5F*3 command of the Metropolis 3.0 protocol). The high-to-low bits represent pedestrian red lights respectively. , pedestrian green light, right turn green light, straight green light, left turn green light, round green light, yellow light, red light and other light states ("1" means on, "0" means off). Taking step 1 in Table 2 as an example, the value of the SignalStatus parameter included in the light status information of the 3.0 signal is "0x44", which means that at step 1, the pedestrian green light and the round green light are on. In other words, the light status information of Du3.0 signal can describe the step-by-step light status in the direction of entering an intersection, and mixes two types of information, such as traffic lights and pedestrian lights. In the J2735 standard, the lane's applicable pedestrian classification As described in the MAP message, and in the SPAT message definition, a light state group can contain one or more signal operation events (MovementEvent). A signal operation event defines an event state and its operation time information, and one of the event states (eventState) lists a certain signal state of the lane. Corresponding to the current domestic situation, there are the following signal states: 0 (fault), 1 (not enabled), 2 (flash red light), 3 (red light), 4 (prediction green light/red light countdown), 5 (round green light), 6 (arrow green light), 7 (corresponding to non-protection phase circle (yellow light corresponding to the green head light), 8 (yellow light corresponding to the green light of the arrow), 9 (flash yellow light).

一個車道之適用燈態,是由一組號誌操作事件組成,並且是由MAP訊息中的號誌燈態群組所索引。由於都3.0與J2735等兩種規範對交通號誌控制器的燈態描述方式並不相同,因此無法直接地進行簡單的一對一轉換。本發明可將支援J2735標準的號誌燈的燈態群組識別碼的低半位元組(位元3-0)依據都3.0單一步階的時相排列可能的所有組合方式,採用如表3之編碼方式,其代表用路人適用的轉向。 The applicable light status of a lane is composed of a group of signal operation events and is indexed by the signal light status group in the MAP message. Since the two specifications, such as Du3.0 and J2735, describe the light status of the traffic signal controller in different ways, a simple one-to-one conversion cannot be performed directly. The present invention can arrange all possible combinations of the low half byte (bit 3-0) of the light state group identification code of the signal light that supports the J2735 standard according to the 3.0 single-step phase, as shown in the table 3 is the coding method, which represents the steering suitable for passers-by.

Figure 110138047-A0305-02-0017-5
Figure 110138047-A0305-02-0017-5
Figure 110138047-A0305-02-0018-6
Figure 110138047-A0305-02-0018-6

本發明所定義之燈態群組識別碼之高半位元組為號誌控制器端對路口車道群組的適用方位的概念性描述。當交通號誌控制器應用本發明來產生可供V2X設備使用之燈態群組識別碼時,交通號誌控制器在設定燈態方向時,可確保燈態群組識別碼中的方位資訊(例如:車道方位碼指示的方向)與實際路口的道路方位具一致性。就理論上而言,如圖2所示的8個方向分別在以路口中心座標自北順時針環繞一週(即:-179~180度)的0度、45度、90度、135度、180度、-135度、-90度以及-45度上,而實務上一車道群組相對於路口的方位不會剛好落在這些角度上。據此,本發明可將方向落在上述8個角度的其中之一角度的±22.5度內之車道的車道方位定義為與所述其中之一角度相對應。若角度計算上 超過值域-179~180度,則本發明可將角度分段或轉換至連續值域變數方式處理。路口之車道群組方向的定義方式,例如可採用內車道中線兩點座標連線指出路口角度,或可採用群組中所有車道每一者的中線兩點座標連線指出路口角度的平均值。 The upper half byte of the light status group identification code defined in the present invention is a conceptual description of the applicable direction of the intersection lane group on the signal controller side. When the traffic signal controller applies the present invention to generate a light group identification code that can be used by the V2X device, the traffic signal controller can ensure the orientation information in the light group identification code when setting the light direction ( For example: the direction indicated by the lane location code) is consistent with the actual road location at the intersection. Theoretically speaking, the eight directions shown in Figure 2 are respectively 0 degrees, 45 degrees, 90 degrees, 135 degrees, and 180 degrees that circle clockwise from the north (ie: -179 to 180 degrees). degrees, -135 degrees, -90 degrees and -45 degrees. In practice, the position of a lane group relative to the intersection will not fall exactly on these angles. Accordingly, the present invention can define the lane orientation of a lane whose direction falls within ±22.5 degrees of one of the above-mentioned eight angles as corresponding to one of the above-mentioned angles. If the angle is calculated If it exceeds the value range of -179~180 degrees, the present invention can segment the angle or convert it to a continuous value range variable. The direction of the lane group at the intersection can be defined. For example, a line connecting the two-point coordinates of the center line of the inner lane can be used to indicate the intersection angle, or a line connecting the two-point coordinates of the center line of each lane in the group can be used to indicate the average intersection angle. value.

舉例來說,若一車道群組的方位角為30度,則該車道群組落在東北向所涵蓋的45±22.5度範圍內,因此都3.0交通號誌控制器依此設定燈態(即:SignalMap參數)中方向為「東北側」。若對於車道群組方向落在兩相鄰方位邊界上的狀況,則可擇一定義。舉例來說,若車道群組的方向落在22.5度,則都3.0訊號中的燈態方向可設為「北側」或「東北側」。而後,再由車載裝置確認最適用的燈態方向。例如,車載裝置可檢索一路口的SPAT訊息的燈態群組識別碼時,若SPAT訊息存在四種方位編碼:北側0x0*、東側0x4*、南側0x6*和西側0x8*,則車載裝置可依據本身行進方向(例如:22.5度)與上述北、東、南、西等四個方位角(0、90、180、-90度)之角度差絕對值分別為22.5、67.5、157.5、112.5度,排序後可找出與車載裝置之行進方向最接近的方向(即:角度差最小者)為北側。車載裝置還可再透過MAP訊息的所屬車道之燈態群組來交查驗證以確認是否正確。以下將說明本發明如何由都3.0的燈態描述轉換成使用上述本發明定義之燈態群組識別碼的產生方式,其中燈態群組識別碼可包含於SAE J2735標準的MAP訊息或SPAT訊息中。 For example, if the azimuth angle of a lane group is 30 degrees, the lane group falls within the range of 45±22.5 degrees covered by the northeast direction, so the 3.0 traffic signal controller sets the light status accordingly (i.e. :SignalMap parameter), the direction is "Northeast". If the direction of the lane group falls on the boundary of two adjacent directions, you can choose one of the definitions. For example, if the direction of the lane group falls at 22.5 degrees, the light direction in the 3.0 signal can be set to "North" or "Northeast". Then, the vehicle-mounted device determines the most suitable light direction. For example, when the vehicle-mounted device can retrieve the light status group identification code of the SPAT message at an intersection, if the SPAT message has four orientation codes: 0x0* on the north side, 0x4* on the east side, 0x6* on the south side, and 0x8* on the west side, the vehicle-mounted device can retrieve the light status group identification code based on the SPAT message. The absolute values of the angle differences between the direction of travel (for example: 22.5 degrees) and the four azimuth angles (0, 90, 180, -90 degrees) of north, east, south, and west mentioned above are 22.5, 67.5, 157.5, and 112.5 degrees respectively. After sorting, it can be found that the direction closest to the traveling direction of the vehicle-mounted device (that is, the one with the smallest angle difference) is the north side. The vehicle-mounted device can also check and verify whether it is correct through the light status group of the corresponding lane in the MAP message. The following will explain how the present invention converts from the light state description of Du 3.0 to the generation method of the light state group identification code defined by the present invention. The light state group identification code can be included in the MAP message or SPAT message of the SAE J2735 standard. middle.

圖3根據本發明的一實施例繪示一種號誌燈的燈態的編 碼裝置100的示意圖。編碼裝置100可包含處理器110、儲存媒體120以及收發器130。 Figure 3 illustrates an arrangement of light states of a signal light according to an embodiment of the present invention. Schematic diagram of the coding device 100. The encoding device 100 may include a processor 110, a storage medium 120, and a transceiver 130.

處理器110例如是中央處理單元(central processing unit,CPU),或是其他可程式化之一般用途或特殊用途的微控制單元(micro control unit,MCU)、微處理器(microprocessor)、數位信號處理器(digital signal processor,DSP)、可程式化控制器、特殊應用積體電路(application specific integrated circuit,ASIC)、圖形處理器(graphics processing unit,GPU)、影像訊號處理器(image signal processor,ISP)、影像處理單元(image processing unit,IPU)、算數邏輯單元(arithmetic logic unit,ALU)、複雜可程式邏輯裝置(complex programmable logic device,CPLD)、現場可程式化邏輯閘陣列(field programmable gate array,FPGA)或其他類似元件或上述元件的組合。處理器110可耦接至儲存媒體120以及收發器130,並且存取和執行儲存於儲存媒體120中的多個模組和各種應用程式。 The processor 110 is, for example, a central processing unit (CPU), or other programmable general-purpose or special-purpose micro control unit (MCU), microprocessor, or digital signal processing unit. Digital signal processor (DSP), programmable controller, application specific integrated circuit (ASIC), graphics processing unit (GPU), image signal processor (ISP) ), image processing unit (IPU), arithmetic logic unit (ALU), complex programmable logic device (CPLD), field programmable gate array (field programmable gate array) , FPGA) or other similar components or a combination of the above components. The processor 110 can be coupled to the storage medium 120 and the transceiver 130, and access and execute multiple modules and various applications stored in the storage medium 120.

儲存媒體120例如是任何型態的固定式或可移動式的隨機存取記憶體(random access memory,RAM)、唯讀記憶體(read-only memory,ROM)、快閃記憶體(flash memory)、硬碟(hard disk drive,HDD)、固態硬碟(solid state drive,SSD)或類似元件或上述元件的組合,而用於儲存可由處理器110執行的多個模組或各種應用程式。在本實施例中,儲存媒體120可儲存包資料收集模組121、運算模組122以及輸出模組123等多個模組,其功能將於 後續說明。 The storage medium 120 is, for example, any type of fixed or removable random access memory (RAM), read-only memory (ROM), or flash memory. , hard disk drive (HDD), solid state drive (SSD) or similar components or a combination of the above components, and are used to store multiple modules or various application programs that can be executed by the processor 110 . In this embodiment, the storage medium 120 can store multiple modules such as the packet data collection module 121, the computing module 122, and the output module 123, and their functions will be as follows: Follow-up instructions.

收發器130以無線或有線的方式傳送及接收訊號。收發器130還可以執行例如低噪聲放大、阻抗匹配、混頻、向上或向下頻率轉換、濾波、放大以及類似的操作。 The transceiver 130 transmits and receives signals in a wireless or wired manner. Transceiver 130 may also perform, for example, low noise amplification, impedance matching, mixing, up or down frequency conversion, filtering, amplification, and similar operations.

圖4根據本發明的一實施例繪示編碼裝置100產生燈態群組識別碼的流程圖。在步驟S100中,資料收集模組121可通過收發器130接收燈態資訊。舉例來說,資料收集模組121可通過收發器130通訊連接至交通號誌控制器,並且自交通號誌控制器接收包含於都3.0訊號(例如:都3.0訊號中的5F5F命令、5FDF訊息或5F03步階訊息)的燈態資訊。燈態資訊可包含方向以及至少一號誌燈的至少一號誌燈燈態。此外,燈態資訊還可包含時相、步階和閃光指示符等資訊。舉例來說,燈態資訊例如包含如表2所記載的內容。資料收集模組121可將一步階的SignalStatus依據SignalMap的位元順序所對應的方向順序,依序讀出資料。例如,資料收集模組121可將燈態資訊轉換為以步階為列且以車道的方向為行的SignalStatus位元組陣列,並且將SignalStatus位元組陣列暫存至儲存媒體120中。 FIG. 4 illustrates a flow chart of the encoding device 100 generating the light group identification code according to an embodiment of the present invention. In step S100, the data collection module 121 may receive the light status information through the transceiver 130. For example, the data collection module 121 can be communicatively connected to the traffic signal controller through the transceiver 130, and receive the 5F5F command, 5FDF message or 5F signal contained in the 3.0 signal from the traffic signal controller. 5F03 step message) light status information. The light state information may include a direction and at least one signal light state of at least one signal light. In addition, the light status information can also include information such as phase, step, and flash indicator. For example, the light status information includes the content recorded in Table 2. The data collection module 121 can sequence the one-step SignalStatus according to the direction sequence corresponding to the bit order of the SignalMap, and read out the data sequentially. For example, the data collection module 121 can convert the light status information into a SignalStatus byte array with steps as columns and lane directions as rows, and temporarily store the SignalStatus byte array in the storage medium 120 .

在取得燈態資訊後,運算模組122可根據燈態資訊記載的方向和至少一號誌燈燈態產生對應於燈態資訊的燈態群組識別碼。燈態群組識別碼可包含一位元組的資料,其中該位元組的一半(例如:包含最高有效位元的位元7-4)可記載如表1所示的車道方位碼,並且該位元組的另一半(例如:包含最低有效位元碼的位 元0-3)可記載至少一號誌燈在每一個步階的燈態。輸出模組123可在燈態群組識別碼產生後,通過收發器130輸出燈態群組識別碼。 After obtaining the light state information, the computing module 122 can generate a light state group identification code corresponding to the light state information according to the direction recorded in the light state information and at least one signal light state. The light status group identification code may include one byte of data, where half of the byte (for example: bits 7-4 including the most significant bit) may record the lane orientation code as shown in Table 1, and The other half of the byte (i.e. the bits containing the least significant bit code Yuan 0-3) can record the light status of at least No. 1 sign lamp at each step. The output module 123 can output the light state group identification code through the transceiver 130 after the light state group identification code is generated.

具體來說,在步驟S200中,運算模組122可根據燈態資訊中的方向以及如表1所示的車道方位查找表編碼燈態群組識別碼中的車道方位碼,其中車道方位碼可對應於依該方向進入路口的車道以及依該方向離開路口的車道的其中之一。換句話說,運算模組122可根據燈態資訊中的方向產生分別對應於兩個燈態群組識別碼的兩個車道方位碼,其中兩個燈態群組識別碼所記載的車道方位碼可不同,但所記載的號誌燈的燈態可相同。 Specifically, in step S200, the computing module 122 can encode the lane orientation code in the light status group identification code according to the direction in the light status information and the lane orientation lookup table shown in Table 1, where the lane orientation code can be Corresponds to one of the lanes entering the intersection in that direction and the lane leaving the intersection in that direction. In other words, the computing module 122 can generate two lane orientation codes corresponding to two light status group identification codes respectively according to the directions in the light status information, wherein the lane orientation codes recorded in the two light status group identification codes are may be different, but the lighting status of the recorded signal lights may be the same.

以表1~2和圖2為例,假設資料收集模組121所接收的如表2所示的燈態資訊指示了方向「東」,運算模組122可根據方向「東」將第一燈態群組識別碼中的車道方位碼編碼為如表1所示的「C」。 Taking Tables 1 to 2 and Figure 2 as an example, assuming that the light status information shown in Table 2 received by the data collection module 121 indicates the direction of "east", the computing module 122 can adjust the first light according to the direction of "east". The lane orientation code in the status group identification code is coded as "C" as shown in Table 1.

在完成燈態群組識別碼中的車道方位碼的編碼後,在步驟S300中,運算模組122可根據燈態資訊中的至少一號誌燈燈態執行與車流相關的燈態編碼,藉以產生與車流相關的燈態群組識別碼。另一方面,在步驟S400中,運算模組122可根據燈態資訊中的至少一號誌燈燈態進行與行人相關的燈態編碼,藉以產生與行人相關的燈態群組識別碼。 After completing the encoding of the lane orientation code in the light state group identification code, in step S300, the computing module 122 may perform light state encoding related to traffic flow according to at least one signal light state in the light state information, thereby Generate light state group identification codes related to traffic flow. On the other hand, in step S400, the computing module 122 may perform pedestrian-related light state encoding according to at least one signal light state in the light state information, thereby generating a pedestrian-related light state group identification code.

在步驟S300或步驟S400中,運算模組122可對與單一方向相對應的至少一號誌燈進行燈態編碼。運算模組122可依據 迴圈方式重複地讀取燈態資訊以取得對應於單一方向的所有步階的燈態,並且根據所有步階的燈態為至少一號誌燈進行燈態編碼以產生對應於單一方向的燈態群組識別碼。 In step S300 or step S400, the computing module 122 may encode the light status of at least one signal light corresponding to a single direction. The computing module 122 can be based on The loop method repeatedly reads the light state information to obtain the light states corresponding to all steps in a single direction, and performs light state encoding for at least one signal light based on the light states of all steps to generate a light corresponding to a single direction. status group identification code.

另一方面,運算模組122還可依據迴圈方式重複地執行步驟S300和步驟S400,藉以依序地為對應於不同方向的燈態群組識別碼進行編碼,從而產生分別對應於單一路口的多個方向的多個燈態群組識別碼。以圖2的路口為例,運算模組122可重複地執行步驟S300和步驟S400,以依序完成分別對應於進入路口的8個車道方位(即:分別對應於車道方位碼0、2、4、6、8、A、C和E)之燈態的編碼。 On the other hand, the computing module 122 can also repeatedly execute step S300 and step S400 in a loop manner to sequentially encode the light group identification codes corresponding to different directions, thereby generating light group identification codes corresponding to a single intersection. Multiple light status group identification codes in multiple directions. Taking the intersection in FIG. 2 as an example, the computing module 122 can repeatedly execute steps S300 and S400 to sequentially complete the eight lane directions corresponding to entering the intersection (that is, corresponding to the lane location codes 0, 2, and 4 respectively). , 6, 8, A, C and E) encoding of light states.

圖5根據本發明的一實施例繪示步驟S300的流程圖。在步驟S501中,運算模組122可判斷燈態資訊是否包含閃光指示符。若燈態資訊包含閃光指示符,代表燈態資訊所對應的路口的號誌燈號為閃燈,運算模組122可接著執行步驟S502。若燈態資訊不包含閃光指示符,代表燈態資訊所對應的路口的號誌燈號非為閃燈,運算模組122可接著執行步驟S507。 FIG. 5 illustrates a flowchart of step S300 according to an embodiment of the present invention. In step S501, the computing module 122 may determine whether the light status information includes a flash indicator. If the light status information includes a flashing indicator, it means that the traffic signal at the intersection corresponding to the light status information is a flashing light, and the computing module 122 may then perform step S502. If the light status information does not include a flashing indicator, it means that the traffic signal at the intersection corresponding to the light status information is not a flashing light, and the computing module 122 may then execute step S507.

在步驟S502中,運算模組122可判斷燈態資訊中的至少一號誌燈燈態是否對應於黃燈。若至少一號誌燈燈態對應於黃燈,則進入步驟S503。若至少一號誌燈燈態不對應於黃燈,則進入步驟S504。 In step S502, the computing module 122 may determine whether at least one signal light state in the light state information corresponds to a yellow light. If the light state of at least one signal light corresponds to the yellow light, step S503 is entered. If the light state of at least one signal light does not correspond to the yellow light, step S504 is entered.

在步驟S503中,運算模組122可編碼燈態群組識別碼的低半位元組中的燈態,將燈態編碼為閃光黃燈燈態「0x0A」,如表 3所示。 In step S503, the computing module 122 may encode the light state in the lower half byte of the light state group identification code, and encode the light state as the flashing yellow light state "0x0A", as shown in the table 3 shown.

在步驟S504中,運算模組122可判斷燈態資訊中的至少一號誌燈燈態是否對應於紅燈。若至少一號誌燈燈態對應於紅燈,則進入步驟S505。若至少一號誌燈燈態不對應於紅燈,則進入步驟S506。 In step S504, the computing module 122 may determine whether at least one signal light state in the light state information corresponds to a red light. If the light state of at least one signal light corresponds to the red light, step S505 is entered. If the light state of at least one signal light does not correspond to the red light, step S506 is entered.

在步驟S505中,運算模組122可編碼燈態群組識別碼的低半位元組中的燈態,將燈態編碼為閃光紅燈燈態「0x0B」,如表3所示。 In step S505, the computing module 122 may encode the light state in the lower half byte of the light state group identification code, and encode the light state into the flashing red light state "0x0B", as shown in Table 3.

在步驟S506中,運算模組122可判斷編碼失敗。輸出模組130可響應於編碼失敗而通過收發器130輸出警示訊息,藉以提示使用者燈態資訊(例如:交通號誌控制器廣播的都3.0訊號)有誤。 In step S506, the computing module 122 may determine that the encoding fails. The output module 130 can output a warning message through the transceiver 130 in response to the encoding failure, thereby reminding the user that the light status information (for example, the 3.0 signal broadcast by the traffic signal controller) is incorrect.

在步驟S507中,運算模組122可執行綠燈燈態編碼流程,藉以將至少一號誌燈燈態編碼為綠燈燈態。 In step S507, the computing module 122 may execute a green light state encoding process, thereby encoding at least one traffic light state into a green light state.

圖6根據本發明的一實施例繪示步驟S511的流程圖。在步驟S601中,運算模組122可偵測燈態資訊中的至少一號誌燈燈態所對應的綠燈燈態種類。 FIG. 6 illustrates a flowchart of step S511 according to an embodiment of the present invention. In step S601, the computing module 122 may detect the green light state type corresponding to at least one signal light state in the light state information.

在步驟S602中,運算模組122可根據綠燈燈態種類判斷至少一號誌燈態是否對應於圓頭綠燈。若至少一號誌燈態對應於圓頭綠燈,則進入步驟S603。若至少一號誌燈態不對應於圓頭綠燈,則進入步驟S604。舉例來說,若燈態資訊包含對應於圓頭綠燈、黃燈和紅燈的多個步階,則運算模組122可判斷至少一號誌 燈態對應於圓頭綠燈。 In step S602, the computing module 122 may determine whether at least one sign light state corresponds to a round green light according to the green light state type. If at least one signal light state corresponds to the round green light, step S603 is entered. If at least one signal light state does not correspond to the round green light, step S604 is entered. For example, if the light status information includes multiple steps corresponding to round green lights, yellow lights, and red lights, the computing module 122 can determine at least one sign. The light state corresponds to the round-headed green light.

在步驟S603中,運算模組122可編碼燈態群組識別碼的低半位元組中的燈態,將燈態編碼為圓頭綠燈燈態「0x01」,如表3所示。 In step S603, the computing module 122 may encode the light state in the lower nibble of the light state group identification code, and encode the light state into the round green light state "0x01", as shown in Table 3.

在步驟S604中,運算模組122可根據綠燈燈態種類判斷至少一號誌燈態是否對應於三向綠燈。若至少一號誌燈態對應於三向綠燈,則進入步驟S605。若至少一號誌燈態不對應於三向綠燈,則進入步驟S606。舉例來說,若燈態資訊包含對應於三向綠燈、黃燈和紅燈的多個步階,則運算模組122可判斷至少一號誌燈態對應於三向綠燈。 In step S604, the computing module 122 may determine whether at least one signal light state corresponds to a three-way green light according to the green light state type. If at least one signal light state corresponds to the three-way green light, step S605 is entered. If at least one signal light state does not correspond to the three-way green light, step S606 is entered. For example, if the light state information includes multiple steps corresponding to three-way green light, yellow light, and red light, the computing module 122 may determine that at least one light state corresponds to the three-way green light.

在步驟S605中,運算模組122可編碼燈態群組識別碼的低半位元組中的燈態,將燈態編碼為三向綠燈燈態「0x02」,如表3所示。 In step S605, the computing module 122 may encode the light state in the lower nibble of the light state group identification code, and encode the light state into the three-way green light state "0x02", as shown in Table 3.

若至少一號誌燈態不對應於三向綠燈,則運算模組122可判斷至少一號誌燈態是否對應於雙向綠燈。若至少一號誌燈態對應於雙向綠燈,則運算模組122可編碼燈態群組識別碼的低半位元組中的燈態,將燈態編碼為雙向綠燈燈態。 If at least one signal light state does not correspond to a three-way green light, the computing module 122 may determine whether at least one signal light state corresponds to a two-way green light. If at least one of the signal light states corresponds to the two-way green light, the computing module 122 may encode the light state in the lower half byte of the light state group identification code to encode the light state as the two-way green light state.

具體來說,在步驟S606中,運算模組122可判斷至少一號誌燈態是否對應於左向綠燈和直行綠燈。若至少一號誌燈態對應於左向綠燈和直行綠燈,則進入步驟S607。若至少一號誌燈態不對應於左向綠燈和直行綠燈,則進入步驟S608。舉例來說,若燈態資訊包含對應於左向綠燈、直行綠燈、黃燈和紅燈的多個步 階,則運算模組122可判斷至少一號誌燈態對應於左向綠燈和直行綠燈。 Specifically, in step S606, the computing module 122 may determine whether the light state of at least one signal corresponds to a left green light and a straight green light. If at least one signal light state corresponds to the left green light and the straight green light, step S607 is entered. If at least one signal light state does not correspond to the left green light and the straight green light, step S608 is entered. For example, if the light status information includes multiple steps corresponding to a left green light, a straight green light, a yellow light, and a red light, level, the computing module 122 can determine that the at least one signal light state corresponds to the left green light and the straight green light.

在步驟S607中,運算模組122可編碼燈態群組識別碼的低半位元組中的燈態,將燈態編碼為左向綠燈和直行綠燈燈態「0x03」,如表3所示。 In step S607, the computing module 122 may encode the light state in the lower half byte of the light state group identification code, and encode the light state into the left green light and the straight green light state "0x03", as shown in Table 3 .

在步驟S608中,運算模組122可判斷至少一號誌燈態是否對應於右向綠燈和直行綠燈。若至少一號誌燈態對應於右向綠燈和直行綠燈,則進入步驟S609。若至少一號誌燈態不對應於右向綠燈和直行綠燈,則進入步驟S610。舉例來說,若燈態資訊包含對應於右向綠燈、直行綠燈、黃燈和紅燈的多個步階,則運算模組122可判斷至少一號誌燈態對應於右向綠燈和直行綠燈。 In step S608, the computing module 122 may determine whether at least one signal light state corresponds to a right green light and a straight green light. If at least the first signal light state corresponds to the right green light and the straight green light, step S609 is entered. If at least one signal light state does not correspond to the right green light and the straight green light, step S610 is entered. For example, if the light state information includes multiple steps corresponding to a right-turn green light, a straight-going green light, a yellow light, and a red light, the computing module 122 may determine that at least one signal light state corresponds to a right-turn green light and a straight-going green light. .

在步驟S609中,運算模組122可編碼燈態群組識別碼的低半位元組中的燈態,將燈態編碼為右向綠燈和直行綠燈燈態「0x04」,如表3所示。 In step S609, the computing module 122 can encode the light state in the lower nibble of the light state group identification code, and encode the light state into the right green light and straight green light state "0x04", as shown in Table 3 .

在步驟S610中,運算模組122可判斷至少一號誌燈態是否對應於左向綠燈和右向綠燈。若至少一號誌燈態對應於左向綠燈和右向綠燈,則進入步驟S611。若至少一號誌燈態不對應於左向綠燈和右向綠燈,則進入步驟S612。舉例來說,若燈態資訊包含對應於左向綠燈、直行綠燈、黃燈和紅燈的多個步階,則運算模組122可判斷至少一號誌燈態對應於左向綠燈和直行綠燈。 In step S610, the computing module 122 may determine whether at least one signal light state corresponds to a left green light and a right green light. If at least one signal light state corresponds to a left green light and a right green light, step S611 is entered. If at least one signal light state does not correspond to the left green light and the right green light, step S612 is entered. For example, if the light state information includes multiple steps corresponding to a left green light, a straight green light, a yellow light, and a red light, the computing module 122 may determine that at least one signal light state corresponds to a left green light and a straight green light. .

在步驟S611中,運算模組122可編碼燈態群組識別碼的低半位元組中的燈態,將燈態編碼為左向綠燈和右向綠燈燈態 「0x05」,如表3所示。 In step S611, the computing module 122 may encode the light state in the lower half byte of the light state group identification code, and encode the light state into a left green light state and a right green light state. "0x05", as shown in Table 3.

若至少一號誌燈態不對應於雙向綠燈,則運算模組122可判斷至少一號誌燈態是否對應於單向綠燈。若至少一號誌燈態對應於單向綠燈,則運算模組122可編碼燈態群組識別碼的低半位元組中的燈態,將燈態編碼為單向綠燈燈態。 If at least one signal light state does not correspond to a two-way green light, the computing module 122 may determine whether at least one signal light state corresponds to a one-way green light. If at least one of the signal light states corresponds to the one-way green light, the computing module 122 may encode the light state in the lower half byte of the light state group identification code to encode the light state as the one-way green light state.

具體來說,在步驟S612中,運算模組122可判斷至少一號誌燈態是否對應於直行綠燈。若至少一號誌燈態對應於直行綠燈,則進入步驟S613。若至少一號誌燈態不對應於直行綠燈,則進入步驟S614。舉例來說,若燈態資訊包含對應於直行綠燈、黃燈和紅燈的多個步階,則運算模組122可判斷至少一號誌燈態對應於直行綠燈。 Specifically, in step S612, the computing module 122 may determine whether at least one signal light state corresponds to a straight green light. If at least one signal light state corresponds to the straight green light, step S613 is entered. If at least the first signal light state does not correspond to the straight green light, step S614 is entered. For example, if the light state information includes multiple steps corresponding to a straight green light, a yellow light, and a red light, the computing module 122 may determine that at least one of the light states corresponds to a straight green light.

在步驟S613中,運算模組122可編碼燈態群組識別碼的低半位元組中的燈態,將燈態編碼為直行綠燈燈態「0x06」,如表3所示。 In step S613, the computing module 122 may encode the light state in the lower half byte of the light state group identification code, and encode the light state as the straight green light state "0x06", as shown in Table 3.

在步驟S614中,運算模組122可判斷至少一號誌燈態是否對應於左向綠燈。若至少一號誌燈態對應於左向綠燈,則進入步驟S615。若至少一號誌燈態不對應於左向綠燈,則進入步驟S616。舉例來說,若燈態資訊包含對應於左向綠燈、黃燈和紅燈的多個步階,則運算模組122可判斷至少一號誌燈態對應於左向綠燈。 In step S614, the computing module 122 may determine whether at least one signal light state corresponds to a left green light. If at least one signal light state corresponds to the left green light, step S615 is entered. If at least one signal light state does not correspond to the left green light, step S616 is entered. For example, if the light state information includes a plurality of steps corresponding to a left green light, a yellow light, and a red light, the computing module 122 may determine that at least one of the light states corresponds to a left green light.

在步驟S615中,運算模組122可編碼燈態群組識別碼的低半位元組中的燈態,將燈態編碼為左向綠燈燈態「0x07」,如表3所示。 In step S615, the computing module 122 may encode the light state in the lower half byte of the light state group identification code, and encode the light state as the left green light state "0x07", as shown in Table 3.

在步驟S616中,運算模組122可判斷至少一號誌燈態是否對應於右向綠燈。若至少一號誌燈態對應於右向綠燈,則進入步驟S617。若至少一號誌燈態不對應於右向綠燈,則進入步驟S618。舉例來說,若燈態資訊包含對應於右向綠燈、黃燈和紅燈的多個步階,則運算模組122可判斷至少一號誌燈態對應於右向綠燈。 In step S616, the computing module 122 may determine whether at least one signal light state corresponds to a right green light. If at least one signal light state corresponds to a right green light, step S617 is entered. If at least one signal light state does not correspond to the right green light, step S618 is entered. For example, if the light state information includes multiple steps corresponding to right-turning green lights, yellow lights, and red lights, the computing module 122 may determine that at least one light state corresponds to right-turning green lights.

在步驟S617中,運算模組122可編碼燈態群組識別碼的低半位元組中的燈態,將燈態編碼為右向綠燈燈態「0x08」,如表3所示。 In step S617, the computing module 122 may encode the light state in the lower nibble of the light state group identification code, and encode the light state as the right green light state "0x08", as shown in Table 3.

在步驟S618中,運算模組122可判斷編碼失敗。輸出模組130可響應於編碼失敗而通過收發器130輸出警示訊息,藉以提示使用者燈態資訊(例如:交通號誌控制器廣播的都3.0訊號)有誤。 In step S618, the computing module 122 may determine that the encoding fails. The output module 130 can output a warning message through the transceiver 130 in response to the encoding failure, thereby reminding the user that the light status information (for example, the 3.0 signal broadcast by the traffic signal controller) is incorrect.

圖7根據本發明的一實施例繪示步驟S400的流程圖。在步驟S701中,運算模組122可判斷燈態資訊是否包含閃光指示符。若燈態資訊包含閃光指示符,則進入步驟S702。若燈態資訊不包含閃光指示符,則進入步驟S707。 FIG. 7 illustrates a flowchart of step S400 according to an embodiment of the present invention. In step S701, the computing module 122 may determine whether the light status information includes a flash indicator. If the light status information includes a flash indicator, step S702 is entered. If the light status information does not include the flash indicator, step S707 is entered.

在步驟S702中,運算模組122可判斷至少一號誌燈態是否對應於行人綠閃燈。若至少一號誌燈態對應於行人綠閃燈,則進入步驟S703。若至少一號誌燈態不對應於行人綠閃燈,則進入步驟S704。 In step S702, the computing module 122 may determine whether at least one signal light state corresponds to a pedestrian green flashing light. If at least one signal light state corresponds to the pedestrian green flashing light, step S703 is entered. If at least one signal light state does not correspond to the pedestrian green flashing light, step S704 is entered.

在步驟S703中,運算模組122可編碼燈態群組識別碼的低半位元組中的燈態,將燈態編碼為閃光黃燈燈態「0x0A」,如表 3所示。 In step S703, the computing module 122 may encode the light state in the lower half byte of the light state group identification code, and encode the light state as the flashing yellow light state "0x0A", as shown in the table 3 shown.

在步驟S704中,運算模組122可判斷至少一號誌燈態是否對應於行人紅燈。若至少一號誌燈態對應於行人紅燈,則進入步驟S705。若至少一號誌燈態不對應於行人紅燈,則進入步驟S706。 In step S704, the computing module 122 may determine whether at least one signal light state corresponds to a red pedestrian light. If at least one signal light state corresponds to a pedestrian red light, step S705 is entered. If at least one signal light state does not correspond to the pedestrian red light, step S706 is entered.

在步驟S705中,運算模組122可編碼燈態群組識別碼的低半位元組中的燈態,將燈態編碼為閃光紅燈燈態「0x0B」,如表3所示。 In step S705, the computing module 122 may encode the light state in the lower nibble of the light state group identification code, and encode the light state into the flashing red light state "0x0B", as shown in Table 3.

在步驟S706中,運算模組122可判斷編碼失敗。輸出模組130可響應於編碼失敗而通過收發器130輸出警示訊息,藉以提示使用者燈態資訊(例如:交通號誌控制器廣播的都3.0訊號)有誤。 In step S706, the computing module 122 may determine that the encoding fails. The output module 130 can output a warning message through the transceiver 130 in response to the encoding failure, thereby reminding the user that the light status information (for example, the 3.0 signal broadcast by the traffic signal controller) is incorrect.

在步驟S707中,運算模組122可判斷至少一號誌燈態是否對應於行人綠燈。若至少一號誌燈態對應於行人綠燈,則進入步驟S708。若至少一號誌燈態不對應於行人綠燈,則進入步驟S709。 In step S707, the computing module 122 may determine whether at least one signal light state corresponds to a green light for pedestrians. If at least one signal light state corresponds to the pedestrian green light, step S708 is entered. If at least one signal light state does not correspond to the pedestrian green light, step S709 is entered.

在步驟S708中,運算模組122可編碼燈態群組識別碼的低半位元組中的燈態,將燈態編碼為行人綠燈燈態「0x09」,如表3所示。 In step S708, the computing module 122 may encode the light state in the lower nibble of the light state group identification code, and encode the light state as the pedestrian green light state "0x09", as shown in Table 3.

在步驟S709中,運算模組122可判斷編碼失敗。輸出模組130可響應於編碼失敗而通過收發器130輸出警示訊息,藉以提示使用者燈態資訊(例如:交通號誌控制器廣播的都3.0訊號)有誤。 In step S709, the computing module 122 may determine that the encoding fails. The output module 130 can output a warning message through the transceiver 130 in response to the encoding failure, thereby reminding the user that the light status information (for example, the 3.0 signal broadcast by the traffic signal controller) is incorrect.

圖8根據本發明的一實施例繪示一種號誌燈的燈態的編 碼方法的流程圖,其中所述編碼方法可由如圖3所示的編碼裝置100實施。在步驟S801中,接收燈態資訊,其中燈態資訊包含方向以及至少一號誌燈的至少一號誌燈燈態。在步驟S802中,根據方向以及至少一號誌燈燈態產生對應於燈態資訊的燈態群組識別碼。在步驟S803中,輸出燈態群組識別碼。 Figure 8 illustrates an arrangement of light states of a signal light according to an embodiment of the present invention. A flow chart of a coding method, wherein the coding method can be implemented by the coding device 100 as shown in FIG. 3 . In step S801, light state information is received, where the light state information includes a direction and at least one signal light state of at least one signal light. In step S802, a light state group identification code corresponding to the light state information is generated according to the direction and at least one signal light state. In step S803, the light status group identification code is output.

綜上所述,本發明可自動地將自都3.0訊號取得的資訊轉換為符合J2735標準之SPAT訊息格式的燈態群組識別碼。使用者不必再通過人工方式來為每個路口的號誌燈燈態進行編碼。本發明的燈態群組識別碼可包含車道方位碼以及號誌燈燈態等資訊。在車載裝置接收到路口的交通號誌控制器所廣播的多個燈態群組識別碼後,車載裝置僅需偵測自身行駛方向便可根據行駛方向判斷哪一個燈態群組識別碼是適用的,而不需偵測到非常精準的位置(例如:偵測載具所在的車道)。車載裝置可藉由適用的燈態群組識別碼的輔助來執行自動駕駛。此外,本發明可大幅減少車載裝置根據車道位置查詢與車道相對應之SPAT訊息所需花費的時間,使車載裝置可以更快速地獲得執行自動駕駛所需的資訊。 To sum up, the present invention can automatically convert the information obtained from the Capital 3.0 signal into a light group identification code that complies with the SPAT message format of the J2735 standard. Users no longer have to manually code the light status of each intersection. The light status group identification code of the present invention may include information such as lane location code and signal light status. After the vehicle-mounted device receives multiple light group identification codes broadcast by the traffic signal controller at the intersection, the vehicle-mounted device only needs to detect its own driving direction to determine which light group identification code is applicable based on the driving direction. without detecting a very precise location (for example: detecting the lane where the vehicle is located). The vehicle-mounted device can perform autonomous driving with the assistance of applicable light status group identification codes. In addition, the present invention can significantly reduce the time it takes for the vehicle-mounted device to query the SPAT information corresponding to the lane according to the lane position, so that the vehicle-mounted device can obtain the information needed to perform automatic driving more quickly.

S801、S802、S803:步驟 S801, S802, S803: steps

Claims (10)

一種號誌燈的燈態的編碼裝置,包括:收發器;儲存媒體,儲存多個模組;以及處理器,耦接所述儲存媒體以及所述收發器,並且存取和執行所述多個模組,其中所述多個模組包括:資料收集模組,通過所述收發器接收燈態資訊,其中所述燈態資訊包括方向以及至少一號誌燈的至少一號誌燈燈態;運算模組,根據所述方向以及車道方位查找表編碼以產生車道方位碼,並且根據所述至少一號誌燈燈態編碼以產生燈態,基於所述車道方位碼以及所述燈態組成對應於所述燈態資訊的燈態群組識別碼;以及輸出模組,通過所述收發器輸出所述燈態群組識別碼;其中所述燈態群組識別碼可為一位元組,所述燈態群組識別碼的高半位元組記載所述車道方位碼,所述燈態群組識別碼的低半位元組記載所述燈態,其中所述高半位元組包括最高有效位元,並且所述低半位元組包括最低有效位元。 A device for encoding the light status of a traffic light, including: a transceiver; a storage medium that stores a plurality of modules; and a processor that couples the storage medium and the transceiver, and accesses and executes the plurality of modules. A module, wherein the plurality of modules includes: a data collection module that receives light state information through the transceiver, wherein the light state information includes a direction and at least one signal light state of at least one signal light; The computing module generates a lane orientation code based on the direction and lane orientation lookup table encoding, and generates a light status based on the coding of the at least one signal light status, and forms a corresponding correspondence based on the lane orientation code and the light status. a light state group identification code in the light state information; and an output module that outputs the light state group identification code through the transceiver; wherein the light state group identification code can be a byte, The upper half byte of the light state group identification code records the lane orientation code, and the lower half byte of the light state group identification code records the light state, wherein the upper half byte includes The most significant bit, and the lower nibble includes the least significant bit. 如請求項1所述的編碼裝置,其中所述車道方位碼對應於依所述方向進入路口的第一車道以及依所述方向離開所述路口的第二車道的其中之一。 The encoding device as claimed in claim 1, wherein the lane orientation code corresponds to one of a first lane entering the intersection in the direction and a second lane leaving the intersection in the direction. 如請求項1所述的編碼裝置,其中所述燈態資訊包括閃光指示符,其中 所述運算模組響應於所述燈態資訊包括所述閃光指示符並且所述至少一號誌燈燈態對應於黃燈而編碼所述燈態群組識別碼中的所述燈態為閃光黃燈燈態,其中所述運算模組響應於所述燈態資訊包括所述閃光指示符並且所述至少一號誌燈燈態對應於紅燈而編碼所述燈態群組識別碼中的所述燈態為閃光紅燈燈態。 The encoding device according to claim 1, wherein the light state information includes a flash indicator, wherein The computing module encodes the light state in the light state group identification code as flashing in response to the light state information including the flash indicator and the at least one signal light state corresponding to a yellow light. Yellow light state, wherein the computing module encodes the light state group identification code in response to the light state information including the flash indicator and the at least one signal light state corresponding to a red light. The light state is a flashing red light state. 如請求項1所述的編碼裝置,其中所述燈態資訊包括閃光指示符,其中所述運算模組響應於所述燈態資訊包括所述閃光指示符並且所述至少一號誌燈燈態對應於行人綠閃燈而編碼所述燈態群組識別碼中的所述燈態為閃光黃燈燈態,其中所述運算模組響應於所述燈態資訊包括所述閃光指示符並且所述至少一號誌燈燈態對應於行人紅燈而編碼所述燈態群組識別碼中的所述燈態為閃光紅燈燈態。 The encoding device of claim 1, wherein the light status information includes a flash indicator, wherein the computing module responds to the light status information including the flash indicator and the at least one signal light status The light state in the light state group identification code is encoded corresponding to the pedestrian green flashing light as a flashing yellow light state, wherein the computing module includes the flash indicator in response to the light state information and the The light state of the at least one signal light corresponds to a red pedestrian light and the light state encoded in the light state group identification code is a flashing red light state. 如請求項1所述的編碼裝置,其中所述運算模組判斷所述至少一號誌燈燈態是否對應於圓頭綠燈,其中所述運算模組響應於所述至少一號誌燈燈態對應於所述圓頭綠燈而編碼所述燈態群組識別碼中的所述燈態為圓頭綠燈燈態。 The encoding device according to claim 1, wherein the operation module determines whether the light state of the at least one signal light corresponds to a round green light, and the operation module responds to the light state of the at least one signal light. The light state in the light state group identification code encoded corresponding to the round-head green light is a round-head green light light state. 如請求項5所述的編碼裝置,其中所述運算模組響應於所述至少一號誌燈燈態未對應於所述圓頭綠燈而判斷所述至少一號誌燈燈態是否對應於三向綠燈,其中 所述運算模組響應於所述至少一號誌燈燈態對應於所述三向綠燈而編碼所述燈態群組識別碼中的所述燈態為三向綠燈燈態。 The encoding device according to claim 5, wherein the computing module determines whether the at least one signal light state corresponds to the three-dimensional green light in response to the light state of the at least one signal light not corresponding to the round green light. to green light, which The computing module encodes the light state in the light state group identification code as the three-way green light state in response to the at least one signal light state corresponding to the three-way green light. 如請求項6所述的編碼裝置,其中所述運算模組響應於所述至少一號誌燈燈態未對應於所述三向燈態而判斷所述至少一號誌燈燈態是否對應於雙向綠燈,其中所述運算模組響應於所述至少一號誌燈燈態對應於所述雙向綠燈而編碼所述燈態群組識別碼中的所述燈態為雙向綠燈燈態。 The encoding device of claim 6, wherein the computing module determines whether the at least one signal light state corresponds to the three-way light state in response to the at least one signal light state not corresponding to the three-way light state. A two-way green light, wherein the computing module encodes the light state in the light state group identification code as a two-way green light state in response to the at least one signal light state corresponding to the two-way green light. 如請求項7所述的編碼裝置,其中所述運算模組響應於所述至少一號誌燈燈態未對應於所述雙向綠燈而判斷所述至少一號誌燈燈態是否對應於單向綠燈,其中所述運算模組響應於所述至少一號誌燈燈態對應於所述單向綠燈而編碼所述燈態群組識別碼中的所述燈態為單向綠燈燈態。 The encoding device of claim 7, wherein the computing module determines whether the at least one signal light state corresponds to the one-way green light in response to the at least one signal light state not corresponding to the two-way green light. Green light, wherein the computing module encodes the light state in the light state group identification code as the one-way green light state in response to the at least one signal light state corresponding to the one-way green light. 如請求項1所述的編碼裝置,其中所述運算模組判斷所述至少一號誌燈燈態是否對應於行人綠燈,其中所述運算模組響應於所述至少一號誌燈燈態對應於所述行人綠燈而編碼所述燈態群組識別碼中的所述燈態為行人綠燈燈態。 The encoding device of claim 1, wherein the computing module determines whether the at least one signal light state corresponds to a pedestrian green light, and the computing module responds to the at least one signal light state corresponding to The light state in the light state group identification code encoded in the pedestrian green light is a pedestrian green light state. 一種號誌燈的燈態的編碼方法,包括:接收燈態資訊,其中所述燈態資訊包括方向以及至少一號誌燈的至少一號誌燈燈態;根據所述方向以及車道方位查找表編碼以產生車道方位碼,並且根據所述至少一號誌燈燈態編碼以產生燈態,基於所述車道 方位碼以及所述燈態組成對應於所述燈態資訊的燈態群組識別碼;以及輸出所述燈態群組識別碼,其中所述燈態群組識別碼包括一位元組,其中所述位元組的一半記載所述車道方位碼,並且所述位元組的另一半記載所述燈態,其中所述一半包括最高有效位元,並且所述另一半包括最低有效位元。 A method for encoding the light status of a traffic light, including: receiving light status information, wherein the light status information includes a direction and at least one traffic light status of at least one traffic light; and looking up a table according to the direction and lane orientation. Encoding to generate a lane position code, and encoding according to the at least one signal light state to generate a light state, based on the lane The orientation code and the light state constitute a light state group identification code corresponding to the light state information; and output the light state group identification code, wherein the light state group identification code includes a byte, wherein One half of the bytes records the lane orientation code, and the other half of the bytes records the light state, with the half including the most significant bits and the other half including the least significant bits.
TW110138047A 2021-10-13 2021-10-13 Encoding device and encoding method for state of traffic light TWI824316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110138047A TWI824316B (en) 2021-10-13 2021-10-13 Encoding device and encoding method for state of traffic light

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110138047A TWI824316B (en) 2021-10-13 2021-10-13 Encoding device and encoding method for state of traffic light

Publications (2)

Publication Number Publication Date
TW202316387A TW202316387A (en) 2023-04-16
TWI824316B true TWI824316B (en) 2023-12-01

Family

ID=86943173

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110138047A TWI824316B (en) 2021-10-13 2021-10-13 Encoding device and encoding method for state of traffic light

Country Status (1)

Country Link
TW (1) TWI824316B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201209766A (en) * 2010-08-23 2012-03-01 Univ Kun Shan Method of recording real-time traffic signal
US20130063281A1 (en) * 2011-09-09 2013-03-14 Colin M. Malaska Vehicle traffic signal notification system
CN105894842A (en) * 2014-11-17 2016-08-24 胡乐乐 Intelligent traffic signal lamp system
TW201715487A (en) * 2015-10-30 2017-05-01 元智大學 Encoding method and system for traffic sign status
US20180012486A1 (en) * 2016-07-06 2018-01-11 Volvo Car Corporation Method for performing a real time analysis of traffic light related data
CN110766959A (en) * 2019-10-30 2020-02-07 长安大学 Traffic light signal receiving system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201209766A (en) * 2010-08-23 2012-03-01 Univ Kun Shan Method of recording real-time traffic signal
US20130063281A1 (en) * 2011-09-09 2013-03-14 Colin M. Malaska Vehicle traffic signal notification system
CN105894842A (en) * 2014-11-17 2016-08-24 胡乐乐 Intelligent traffic signal lamp system
TW201715487A (en) * 2015-10-30 2017-05-01 元智大學 Encoding method and system for traffic sign status
US20180012486A1 (en) * 2016-07-06 2018-01-11 Volvo Car Corporation Method for performing a real time analysis of traffic light related data
CN110766959A (en) * 2019-10-30 2020-02-07 长安大学 Traffic light signal receiving system and method

Also Published As

Publication number Publication date
TW202316387A (en) 2023-04-16

Similar Documents

Publication Publication Date Title
CN107945540A (en) A kind of bus or train route cooperative control system of signal lamp intersection
US20120249341A1 (en) Communication of emergency messages with road markers
CN106781582A (en) Traffic lights auxiliary display method, device and car-mounted terminal
CN108922194A (en) A kind of dynamic controllable intelligent traffic information prompting system based on big data
US10568188B2 (en) On-demand street lighting for a connected vehicle
CN105894842A (en) Intelligent traffic signal lamp system
CN108597252B (en) Traffic light intersection pedestrian and vehicle safe passing intelligent judgment system and method
CN109345873A (en) A kind of pedestrian's street crossing early warning system based on cell phone application
CN113313943B (en) Road side perception-based intersection traffic real-time scheduling method and system
CN109102709A (en) A kind of intelligent transportation road conditions information gathering device
CN105489026A (en) Windmill type intersection design method
CN103366583A (en) Intelligent traffic light control system with digital signal processing (DSP) function
CN105118318A (en) Multifunctional automobile information service system
CN106935052A (en) A kind of speed change reminding method and device based on running data
CN208819074U (en) A kind of network control system of intelligent driving
CN111951548A (en) Vehicle driving risk determination method, device, system and medium
WO2021103514A1 (en) Internet of vehicles-based method and device for sending dynamic information
CN108734976B (en) Traffic navigation prompting method and system
TWI824316B (en) Encoding device and encoding method for state of traffic light
CN111429728A (en) Intelligent traffic system based on intelligent lamp pole and method thereof
CN208422117U (en) A kind of early warning system of making a dash across the red light based on car networking network
CN110675641A (en) Vehicle networking road traffic signal control system based on LTE-V2X
CN109859529A (en) A kind of the driving optimization system and method for safety expressway exit
CN206363538U (en) A kind of Traffic Signals in Urban Roads lamp based on technology of Internet of things
CN202042057U (en) Traffic light control system