|
NMEAを使った設定の例 | ||
私はGARMIN社のsnsrcfgと言う設定プログラム(ファームウエアに同封されているもの)を使っていますが、ターミナルソフト(Tera Term http://hp.vector.co.jp/authors/VA002416/teraterm.html 等)で下記の$から始まるNMEAセンテンスを送ることでも設定できます。(実際に使ってみていないので、間違っていたらごめんなさい。また、PCからはチェックサムの"*hh"が不要ですので、いろいろ試してみてください。) 特に、$PGRMC1センテンスでDGPS modeはWAASを受けないようにしておかないと、日本では間違って受信すると誤差が大きくなるので注意が必要です。 それでは、GARMIN社のマニュアルの章番号に準じて必要なところだけ説明します。 | ||
|
■3.1.2 Sensor Initialization Information (PGRMI) | ||
$PGRMI,<1>,<2>,<3>,<4>,<5>,<6>,<7>*hh<CR><LF> <1> Latitude, ddmm.mmm format (leading zeros must be transmitted) <2> Latitude hemisphere, N or S <3> Longitude, dddmm.mmm format (leading zeros must be transmitted) <4> Longitude hemisphere, E or W <5> Current UTC date, ddmmyy format <6> Current UTC time, hhmmss format <7> Receiver Command, A = Auto Locate, R = Unit Reset 例: $PGRMI,,,,,,,R*3F GPSをリセットする。 $PGRMI,3600.000,N,13800.000,E,,,A*18 大雑把な日本の位置を与えて、Auto Locateで測位させる。 | ||
|
■3.1.3 Sensor Configuration Information (PGRMC) | ||
$PGRMC,<1>,<2>,<3>,<4>,<5>,<6>,<7>,<8>,<9>,<10>,<11>,<12>,<13>,<14>*hh<CR><LF>
<2> Altitude above/below mean sea level, -1500.0 to 18000.0 meters <3> Earth datum index. If the user datum index (96) is specified, fields <4> through <8> must contain valid values. Otherwise, fields <4> through <8> must be null. Refer to Appendix A for a list of earth datums and the corresponding earth datum index. <4> User earth datum semi-major axis, 6360000.000 to 6380000.000 meters (.001 meters resolution) <5> User earth datum inverse flattening factor, 285.0 to 310.0 (10-9 resolution) <6> User earth datum delta x earth centered coordinate, -5000.0 to 5000.0 meters(1 meter resolution) <7> User earth datum delta y earth centered coordinate, -5000.0 to 5000.0 meters(1 meter resolution) <8> User earth datum delta z earth centered coordinate, -5000.0 to 5000.0 meters(1 meter resolution) <9> Differential mode, A = automatic (output DGPS data when available, non-DGPS otherwise), D =differential exclusively (output only differential fixes) <10> NMEA 0183 Baud rate, 1 = 1200, 2 = 2400, 3 = 4800, 4 = 9600, 5 = 19200, 6 = 300, 7 = 600,8 = 38400 <11> Velocity filter, 0 = No filter, 1 = Automatic filter, 2-255 = Filter time constant(e.g., 10 = 10 second filter) <12> PPS mode, 1 = No PPS, 2 = 1 Hz <13> PPS pulse length, 0-48 = (n+1)*20 ms. Example: n = 4 corresponds to a 100 ms wide pulse <14> Dead reckoning valid time 1-30 (sec) *ボーレートとPPSモード変更は再起動が必要 例: $PGRMC,A,,100,,,,,,A,9600,0,,,*45
| ||
|
■3.1.4 Additional Sensor Configuration Information (PGRMC1) | ||
$PGRMC1,<1>,<2>,<3>,<4>,<5>,<6>,<7>,<8>,<9>*hh<CR><LF>
<2> Binary Phase Output Data, 1 = Off, 2 = On. <3> Position pinning, 1 = Off, 2 = On <4> DGPS beacon frequency ・0.0, 283.5 ・325.0 kHz in 0.5 kHz steps <5> DGPS beacon bit rate ・0, 25, 50, 100, or 200 bps <6> DGPS beacon scanning, 1 = Off, 2 = On <7> NMEA 0183 version 3.00 mode indicator, 1 = Off, 2 = On <8> DGPS mode, A = Automatic, W = WAAS Only, R = RTCM Only, N = None (DGPS disabled) <9> Power Save Mode, P = Power Save mode, N = Normal 例: $PGRMC1,1,,,,,,2,R,*07
デフォルトはDGPS mode=AutomaticでWAASモードに入ってしまうため、精度が落ちる。DGPS modeをRTCM OnlyかNoneにしたほうが良い。
| ||
|
■初期化設定例 | ||
下記の初期化NMEAセンテンスをGPSへ送信する。 単なるファクトリリセットと測位初期化は上2行のを使う。
$PGRMI,,,,,,,R*3F $PGRMI,3600.000,N,13800.000,E,,,A*18 $PGRMC,A,,100,,,,,,A,4800,0,,,*46 $PGRMC1,1,,,,,,2,R,*07 ------ | ||
|
| ||