Gpsd/zh tw

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Host Interface)
m
 
(16 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
{{Languages|Gpsd}}
 +
 +
 +
 +
 
== GPS的內容 ==
 
== GPS的內容 ==
  
Line 25: Line 30:
 
Hammerhead包含了以下的模組:
 
Hammerhead包含了以下的模組:
 
*RF front-end with on-chip, high gain and low noise, LNA, I/Q mixers, on-chip polyphase complex IF filter, digitally controlled AGC, and 3-bits ADC for the I and Q paths.
 
*RF front-end with on-chip, high gain and low noise, LNA, I/Q mixers, on-chip polyphase complex IF filter, digitally controlled AGC, and 3-bits ADC for the I and Q paths.
*Sigma-Delta RF PLL with on-chip PCO and on-chip loop filter.
+
*包含on-chip PCO及on-chip loop filter。
 
*Embedded PLL and NCO for baseband clock generation.
 
*Embedded PLL and NCO for baseband clock generation.
*Multiple channels digital mixers and parallel correlator engines to enable real time correlation of the PRN code for up to 14 satellites.
+
*多頻道數位混音器及平行相關引擎,做為至少提供給14個衛生使用的即時啟動PRN程式。
*Post processor including peak detection logic
+
*包含流量偵測邏輯判斷的Post processor
*SRAM for storing correlation results
+
*用來搜尋相關結果的SRAM
  
 
=== 主要界面 ===
 
=== 主要界面 ===
Line 38: Line 43:
 
*SPI
 
*SPI
  
在Hammerhead的UART是一個full-duplex UART 界面。它被固定在8N1(8 data bits, no parity, 1 stop bit)模式。在GTA01中,主要的處理器透過UART連接到這裡。在Neo1973的所有產品當中,它連接到敘列埠。, this is connected to a serial port.
+
在Hammerhead的UART是一個full-duplex UART 界面。它被固定在8N1(8 data bits, no parity, 1 stop bit)模式。在GTA01中,主要的處理器透過UART連接到這裡。在Neo1973的所有產品當中,它連接到敘列埠。
  
=== Host software Architecture ===
+
=== 主軟體架構 ===
  
The Hammerhead driver software will be delivered as a binary, which can be interfaced to [http://gpsd.davisnetworks.com/bin/view/Main/GpsdHome gpsd] as it outputs NMEA information, as many serial GPSs do.
+
Hammerhead 驅動程式將會以二進位檔的方法載入,它可以像其它的GPS序列埠般,做為 [http://gpsd.davisnetworks.com/bin/view/Main/GpsdHome gpsd]的介面,輸入如NMEA 資訊。
  
The gps driver is [[Gllin|now available]]. (There were some problems in the past getting a license to distribute the binary. [http://lists.openmoko.org/pipermail/community/2007-July/008466.html])
+
gps驅動程式[[Gllin|目前已可以使用]](之前,它在取得套件二位元檔授權時,有一些問題 [http://lists.openmoko.org/pipermail/community/2007-July/008466.html])
  
The gpsd libraries provide the following infomation to the high level software:
+
gpsd程式庫提供下列的資訊,做為高階軟體:
 
*Position data
 
*Position data
 
*Library status
 
*Library status
 
*Time-out and Packet Available
 
*Time-out and Packet Available
  
The high level software sends the following messages to the plugin:
+
高階軟體傳送下列的訊息到plugin:
 
*Assistance data
 
*Assistance data
 
*Positioning Commands
 
*Positioning Commands
 
*Configuration Commands
 
*Configuration Commands
  
Gpsd communicates with the system at the following part:
+
Gpsd 利用以下的部份與系統進行溝通:
 
*Communications Drivers
 
*Communications Drivers
 
*System Timer
 
*System Timer
Line 62: Line 67:
 
*Log buffer
 
*Log buffer
  
== GPS on GTA01 ==
+
== GTA01上的GPS ==
  
At the GTA01, the host processor is a S3C2410.
+
在GTA01,主要的處理器是S3C2410。
  
=== Hammerhead on the GTA01 ===
+
=== GTA01上的Hammerhead ===
  
On the GTA01, the Hammerhead are configured that connected with the host processor through the UART. The UART of data output/input is connected to the UART 1 of the SC2410. The UART of the hardware flow control is connected to the UART 2 of the SC2410.
+
在GTA01上,Hammerhead被設定為透過UART連接到主處理器。UART 的資料輸入/輸出在SC2410上連接到UART 1。UART的硬體流量控制則連接到SC2410的UART 2。
  
 
== Q & A ==
 
== Q & A ==
  
  
====Q: Can gpsd support Differential GPS.====
+
====Q: gpsd支援不同的GPS嗎====
*While the neo does not have any means of receiving [http://en.wikipedia.org/wiki/Differential_GPS DGPS] or WAAS/SCCM directly, it can be streamed from an internet server.
+
*在neo無法有其它方法直接接收[http://en.wikipedia.org/wiki/Differential_GPS DGPS] 或WAAS/SCCM時,它可以直接從網際網路伺服器上接收串流。
*It may be possible to generate a global ionospheric model from stationary (charging?) neos that have GPS signal and cheap internet connections. This would enable very precise positions to be generated
+
*它可能從有gps訊號及便宜的網路連接的neo上,產生global ionospheric model。因此,它可以非常精準的產生位置資訊。
 
*This could generate positions accurate to well under a metre, compared to (probably) 2-3m without.
 
*This could generate positions accurate to well under a metre, compared to (probably) 2-3m without.
*The gpsd plugin is the place that these corrections would need to be done, as they need to be performed on a per-satellite basis, before generating the position.
+
*gpsd plugin是用來放置必須修正的錯誤的地方,如在產生位置時,在每個衛星上,他們必須能執行工作。
*This is separate from AGPS - AGPS gives information on current satellite position, or computes your position for you. DGPS is a local minute by minute 'ionospheric weather' for your region.
+
*它是與AGPS分開的 - AGPS在目前的衛星位置或者在電腦中發出資訊。DGPS是區域性的一個本地端minute by minute 'ionospheric weather'
 +
請參考[[Server:A-GPS]]。
  
See also [[Server:A-GPS]].
+
====Q: 我們能上傳能在gpsd和hammerhead間互動的strace嗎?====
 +
*理想的狀況下,從沒有AGPS資料的狀況下,至少在一個半小時內,在收訊方為晴天的狀況下,它可以在每秒內取得GPS 位置。
 +
*視工程狀況而定。
 +
*[[Hammerhead/Protocol]]為reverse-engineering相關頁面。
  
====Q: Can someone upload somewhere an strace of the interaction between gpsd, and the hammerhead chip?====
+
====Q: 我可以自GPS上取得NMEA資料嗎====
*Ideally this would be requesting a GPS position every second, starting from 'cold', with no AGPS data, for at least half an hour, in an area where the reciever can see the sky.
+
*To aid in reverse engineering efforts.
+
*A reverse-engineering page has been created: [[Hammerhead/Protocol]]
+
  
====Q: Can I get NMEA data from the GPS?====
+
A: 無法直接取得資料。然而,gpsd 程式的'gpspipe',加入 -r 則可以目前的位置,輸出NMEA資料。正確的方法是在程式裡使用libgpsd。
  
A: Not directly. However, the gpsd program 'gpspipe', with the -r switch will output NMEA data with the current position information. The right way to do it is to use libgpsd in your program if possible.
+
[[Category:GPS/zh tw]]
 
+
{{Languages|Gpsd}}
+
[[Category:GPS]]
+

Latest revision as of 21:24, 20 August 2008



Contents

[edit] GPS的內容

GPS (Global Positioning System)是一個衛星定位系統,使用31個衛星。

GPS 類似 "人造衛星" ,以公尺為計算單位。某些形態的GPS,可以較公分為佳的單位進行度量。

利用先進的科技,從IC及其它的元件中接收訊號。

它大量的降低了成本。

因為它大量降低成本的特性,它可以輕鬆的被整合到手機、筆記型電腦及像是耕作用具、瀏覽系統及建築物...等傳統工具中。tion systems and construction equipment.

(你可以在這個位址Global Positioning System Overview取得其它的相關資訊。)

[edit] AGPS

這個分類中可以找到所有GPS的資訊.

[edit] PMB 2520 Hammerhead

PMB 2520 Hammerhead是GPS的one-chip解決方案,它由全球定位公司的Infineon Technologies所製造。它允許支援A-GPS標準的資料存取。 (相關的資料都可以在 PMB 2520 datasheet中找到) short datasheet

[edit] Hammerhead模組

Hammerhead包含了以下的模組:

  • RF front-end with on-chip, high gain and low noise, LNA, I/Q mixers, on-chip polyphase complex IF filter, digitally controlled AGC, and 3-bits ADC for the I and Q paths.
  • 包含on-chip PCO及on-chip loop filter。
  • Embedded PLL and NCO for baseband clock generation.
  • 多頻道數位混音器及平行相關引擎,做為至少提供給14個衛生使用的即時啟動PRN程式。
  • 包含流量偵測邏輯判斷的Post processor
  • 用來搜尋相關結果的SRAM

[edit] 主要界面

Hammerhead整合了三個系列的介面:

  • UART
  • I2C
  • SPI

在Hammerhead的UART是一個full-duplex UART 界面。它被固定在8N1(8 data bits, no parity, 1 stop bit)模式。在GTA01中,主要的處理器透過UART連接到這裡。在Neo1973的所有產品當中,它連接到敘列埠。

[edit] 主軟體架構

Hammerhead 驅動程式將會以二進位檔的方法載入,它可以像其它的GPS序列埠般,做為 gpsd的介面,輸入如NMEA 資訊。

gps驅動程式目前已可以使用。(之前,它在取得套件二位元檔授權時,有一些問題 [1])

gpsd程式庫提供下列的資訊,做為高階軟體:

  • Position data
  • Library status
  • Time-out and Packet Available

高階軟體傳送下列的訊息到plugin:

  • Assistance data
  • Positioning Commands
  • Configuration Commands

Gpsd 利用以下的部份與系統進行溝通:

  • Communications Drivers
  • System Timer
  • NV storage
  • Log buffer

[edit] GTA01上的GPS

在GTA01,主要的處理器是S3C2410。

[edit] GTA01上的Hammerhead

在GTA01上,Hammerhead被設定為透過UART連接到主處理器。UART 的資料輸入/輸出在SC2410上連接到UART 1。UART的硬體流量控制則連接到SC2410的UART 2。

[edit] Q & A

[edit] Q: gpsd支援不同的GPS嗎

  • 在neo無法有其它方法直接接收DGPS 或WAAS/SCCM時,它可以直接從網際網路伺服器上接收串流。
  • 它可能從有gps訊號及便宜的網路連接的neo上,產生global ionospheric model。因此,它可以非常精準的產生位置資訊。
  • This could generate positions accurate to well under a metre, compared to (probably) 2-3m without.
  • gpsd plugin是用來放置必須修正的錯誤的地方,如在產生位置時,在每個衛星上,他們必須能執行工作。
  • 它是與AGPS分開的 - AGPS在目前的衛星位置或者在電腦中發出資訊。DGPS是區域性的一個本地端minute by minute 'ionospheric weather'。

請參考Server:A-GPS

[edit] Q: 我們能上傳能在gpsd和hammerhead間互動的strace嗎?

  • 理想的狀況下,從沒有AGPS資料的狀況下,至少在一個半小時內,在收訊方為晴天的狀況下,它可以在每秒內取得GPS 位置。
  • 視工程狀況而定。
  • Hammerhead/Protocol為reverse-engineering相關頁面。

[edit] Q: 我可以自GPS上取得NMEA資料嗎

A: 無法直接取得資料。然而,gpsd 程式的'gpspipe',加入 -r 則可以目前的位置,輸出NMEA資料。正確的方法是在程式裡使用libgpsd。

Personal tools

GPS的內容

GPS (Global Positioning System)是一個衛星定位系統,使用31個衛星。

GPS 類似 "人造衛星" ,以公尺為計算單位。某些形態的GPS,可以較公分為佳的單位進行度量。

利用先進的科技,從IC及其它的元件中接收訊號。

它大量的降低了成本。

因為它大量降低成本的特性,它可以輕鬆的被整合到手機、筆記型電腦及像是耕作用具、瀏覽系統及建築物...等傳統工具中。tion systems and construction equipment.

(你可以在這個位址Global Positioning System Overview取得其它的相關資訊。)

AGPS

這個分類中可以找到所有GPS的資訊.

PMB 2520 Hammerhead

PMB 2520 Hammerhead是GPS的one-chip解決方案,它由全球定位公司的Infineon Technologies所製造。它允許支援A-GPS標準的資料存取。 (相關的資料都可以在 PMB 2520 datasheet中找到) short datasheet

Hammerhead模組

Hammerhead包含了以下的模組:

  • RF front-end with on-chip, high gain and low noise, LNA, I/Q mixers, on-chip polyphase complex IF filter, digitally controlled AGC, and 3-bits ADC for the I and Q paths.
  • Sigma-Delta RF PLL with on-chip PCO and on-chip loop filter.
  • Embedded PLL and NCO for baseband clock generation.
  • Multiple channels digital mixers and parallel correlator engines to enable real time correlation of the PRN code for up to 14 satellites.
  • Post processor including peak detection logic
  • SRAM for storing correlation results

主要界面

Hammerhead整合了三個系列的介面:

  • UART
  • I2C
  • SPI

在Hammerhead的UART是一個full-duplex UART 界面。它被固定在8N1(8 data bits, no parity, 1 stop bit)模式。在GTA01中,主要的處理器透過UART連接到這裡。在Neo1973的所有產品當中,它連接到敘列埠。, this is connected to a serial port.

Host software Architecture

The Hammerhead driver software will be delivered as a binary, which can be interfaced to gpsd as it outputs NMEA information, as many serial GPSs do.

The gps driver is now available. (There were some problems in the past getting a license to distribute the binary. [1])

The gpsd libraries provide the following infomation to the high level software:

  • Position data
  • Library status
  • Time-out and Packet Available

The high level software sends the following messages to the plugin:

  • Assistance data
  • Positioning Commands
  • Configuration Commands

Gpsd communicates with the system at the following part:

  • Communications Drivers
  • System Timer
  • NV storage
  • Log buffer

GPS on GTA01

At the GTA01, the host processor is a S3C2410.

Hammerhead on the GTA01

On the GTA01, the Hammerhead are configured that connected with the host processor through the UART. The UART of data output/input is connected to the UART 1 of the SC2410. The UART of the hardware flow control is connected to the UART 2 of the SC2410.

Q & A

Q: Can gpsd support Differential GPS.

  • While the neo does not have any means of receiving DGPS or WAAS/SCCM directly, it can be streamed from an internet server.
  • It may be possible to generate a global ionospheric model from stationary (charging?) neos that have GPS signal and cheap internet connections. This would enable very precise positions to be generated
  • This could generate positions accurate to well under a metre, compared to (probably) 2-3m without.
  • The gpsd plugin is the place that these corrections would need to be done, as they need to be performed on a per-satellite basis, before generating the position.
  • This is separate from AGPS - AGPS gives information on current satellite position, or computes your position for you. DGPS is a local minute by minute 'ionospheric weather' for your region.

See also Server:A-GPS.

Q: Can someone upload somewhere an strace of the interaction between gpsd, and the hammerhead chip?

  • Ideally this would be requesting a GPS position every second, starting from 'cold', with no AGPS data, for at least half an hour, in an area where the reciever can see the sky.
  • To aid in reverse engineering efforts.
  • A reverse-engineering page has been created: Hammerhead/Protocol

Q: Can I get NMEA data from the GPS?

A: Not directly. However, the gpsd program 'gpspipe', with the -r switch will output NMEA data with the current position information. The right way to do it is to use libgpsd in your program if possible.