2013年7月24日水曜日

基準点の情報を検索

基準点成果等閲覧サービス(http://sokuseikagis1.gsi.go.jp/ )
を利用すると,
自分の住んでいる場所の近くの 基準点を簡単に探す事ができる。
その座標を確認するのもネットの画面で簡単にできる。

三角点に水準点、 電子基準点も、

水準点には、一等から三等まである。
その中でも基準水準点は、「一等水準路線に沿って100から150キロメートル毎に地盤がとくに強固なところを選び全国に83点設置されており一等水準路線の定期観測(検測)で局地的な基準とするものです。」らしい。(http://uenishi.on.coocan.jp/k100suijyuntenshurui.html より) 
データベース番号が、0に分類されているとのことなので、熊本近辺で探してみた。

L000000000051
基準点コード
L000000000051
等級種別
基準水準点
基準点名
基51
測量成果ワンストップ
サービスの可否
可
成果状態
正常
緯度経度
32°50′32
130°45′54
標高値
55.1234[m]
現況状態
正常
をみつけた。電子基準点も近くにあって、何だか楽しそう。 
今度、写真を撮りに行ってみよう。

ただし、(http://sokuseikagis1.gsi.go.jp/)の中程の記述に
  • 測量標及び測量成果の無断使用は測量法により罰せられることがあります。使用承認を得て使用して下さい。
  • 基準点が設置されている土地に立ち入る際は、土地の所有者(管理者)の承諾を得て下さい。

  • ってなっているから、注意(配慮)が必要かも。


    グーグルマップに N32°50′32, E130°45′54 を 入力すると、

    https://maps.google.co.jp/maps?q=N32%C2%B050%E2%80%B232,+E130%C2%B045%E2%80%B254&um=1&ie=UTF-8&hl=ja&sa=N&tab=wl

    九州測量専門学校の敷地内(近く?)にある事がわかる。 
    おぉ カッケー! いいなぁ。

    2013年7月18日木曜日

    防水容器を3Dプリンタで製作


    火曜日にお願いしていた防水容器が
    昨日でき上がったので、受け取りに行った。  
    思った以上の出来映えだった。
    3Dプリンターは便利がイイ。

    Oリングも届いたので、組み合わせてみた。… 

    なんか 長すぎませんか?

    円周と内径を間違えて発注したようだ。   


    映像配信装置を作った

    カメラの電圧は5vが適当。
    ビデオ入力機器は12Vが適当。
    用意できるバッテリーは単3(AAA)なので、4.8V〜6V程度。

    どうするか悩んだ結果は、
    いったん 昇圧型のスイッチングレギュレータで12Vに昇圧して
    7805で5Vを作る事にした。

    うまく行った。

    デップスィッチはマニュアルでは黒四角◼がスイッチの位置を現している。




    2013年7月13日土曜日

    NV08cのソフトウェアが使いやすくなった。

    storegisが使いやすくなってる。
    http://www.nvs-gnss.com/support/soft/item/18-storegis.html

    NMEAとBINRの切り替えもGUIで可能
    ボーレートの変換もできちゃう。

    今日の備忘録(LinuxへのUSB-232c接続の設定)

    Debian Linux のscreenをコマンドを使って、NV08cのデータをUSB経由で表示するまでの備忘録

    (0)ttyデバイスドライバのインストール
    Debianのバージョンを確認は、
     cat /etc/debian_version
    6.0.7 だった。 Linuxのカーネルバージョンの確認は、
    uname -a 
    2.6.32-5-amd64 でした。

    NV08Cには、FTDI製FT232RL(FT232R)が使用されている。
    3Mbpsまでの速度に対応した高速USBシリアルチップ(Serial Conveter)であり、USBに接続するだけで、TTLレベルで高速シリアル通信が可能。デバイスドライバは FTDIのサーバからダウンロードできる。
    Linuxのこのカーネルバージョンだと既にFT232RLのデバイスドライバが組み込まれているので、インストールは不要だった。
    (1)NV08cを接続して、インストールされたデバイスドライバの動作を確認。
    ls /dev/ttyUSB*
    私の環境では、/dev/ttyUSB0に割り当てられているようでした。

    (2)デバイスドライバーの使用権を設定。
    デバイスドライバのグループに自分のユーザIDを登録する。
    vigrコマンドを使用して、/etc/groupを変更。
    dialout:x:20:
    dialoutが ttyUSB0のグループ名なので、ここに(20:の後ろに)自分のIDを追加

    この作業の際にsudo コマンドが使えないことがわかったので、
    visudo コマンドで自分を追加
    ここのページを参照→ http://www.atmarkit.co.jp/flinux/rensai/linuxtips/221rootcomuse.html
    エディタがvi風じゃなかったので使いにくかったけど、 なんとか変更できた。
                                   

    (3)screenのインストール
    synapticパッケージマネージャ(システム→システム管理の中にある)を利用して、screenをインストール。(検索で探して、チェックして、適用、するだけ。簡単だなぁ。今は。)

    (4)screen の起動
    screen /dev/ttyUSB0 115200  
    もしも、動かないときはsudoをつけて実行してみる。
    (group への追加は意味があったのか?)

    GPS受信機からのデータが見えれたので、OK!

    2013年7月12日金曜日

    NV-08c BINR への変更

    BINRを出力するための手順

    1. 電源ON時は、NMEA(115200 baud)がデフォルト.
    Teraterm等をつかって、 (うーん、Macでやりたいけど、どうすればいい?)

    2. NMEAコマンドで,COMポートをBINRに切り替え.
    $PORZA,0,115200,3*7E<0D><0A>     (0D,0Aは、CR+LF)

    3. COMポートを,odd parityに設定.(これは海老沼先生からの情報より。かなり重要。言われないと気づかない。)

    4.バイナリーエディタなどを使って
    0x01 0xF4 0x0A 0x10 0x03 と書いたファイルを作成する。(0xは16進数の意味)


    5. RAWデータ出力をBINRで次のコマンドを送信
    0x01 0xF4 0x0A 0x10 0x03

    これはつまり、(手順4)で作ったファイルをTeratermなどの通信ソフトの
    バイナリーモードで送信することを意味する。 

    -----------------
    この切り替えは、評価ボードのデフォルトだとメモリに記憶されない。
    なので、毎回設定する必要がある。めんどくセー
      

    ケースを開けて,設定をBRAM記憶するようにGPIOの
    ジャンパを差し替える必要がある。
     マニュアル(NV08C-EVK-CSMUser Guide Version 1.2)の
    Configuration settings(p11)によると、

    GPIO3、4、5、7をかえればいい デフォルトだと、シリアルポートは、BINRらしい。UART AとUART Bの逆のパターンがあればいいのに、...。

    GPIO7を1にすれば、設定をおぼえていてくれる。
    (これが便利かといえばそうでもなく、初期設定のほうがいいかも。よく考えられてる〜)


    GPIO 3,4,5,7と Evaluation kitsのジャンパの対応は、
    GPIO7は、X14
    GPIO3は、X19
    GPIO4は、X18
    GPIO5は、X17
    なので、今回はX14を2−3に変更。

    今日は、ひとまずここまでで、終了。

    RTKRCV の 動作のさせ方

    RTKLIBのマニュアル(p63)によれば、

    コマンドラインから、

    rtkrcv [-s][-p port|-d dev][-o file][-t level]
    と入力すると、rtkrcvが シェルプログラムとして起動する。





    起動時のオプションは、


    -s     start RTK server on Program startup
    -p port port number for telnet console
    -m port port number for monitor stream
    -d dev terminal device for console
    -o file configuration file
    -r level output solution status file
    (0:off,1:states,2:residuals)
    -t level d
    ebug trace level (0:off,1-5:on)


    起動すると、
    rtkrcv>   の用なコマンドプロンプトが表示されるので、
    以下のコマンド(COMMANDS)を入力する。 
    helpを入力すると,
    rtkrcv> help
    rtkrcv ver.2.4.2 b11 commands
    start : start rtk server
    stop : stop rtk server
    restart : restart rtk sever
    solution [cycle] : show solution
    status [cycle] : show rtk status
    satellite [cycle]: show satellite status
    observ [cycle] : show observation data
    navidata [cycle] : show navigation data
    stream [cycle] : show stream status
    error : show error/warning messages
    option [opt] : show option(s)
    set opt [val] : set option
    load [file] : load options from file
    save [file] : save options to file
    log [file|off] : start/stop log to file
    help|? [path] : print help
    exit : exit and logout console
    shutdown : shutdown rtk server
    !command [arg...]: execute command in shell
    となり、各コマンドの説明を見る事が出来る。

    Mac OSX で、もしも GPS受信機を接続した232cのデバイスが /dev/tty**** で、
    単独測位を実行するのであれば、


    sudo rtkrcv -o ../single.conf -d /dev/tty**** 

    となるはず。

    rtkrcv> プロンプトが表示されたら、

    rtkrcv>startを入力して、実行。

    rtkrcv>navdata 1  と入力すれば、実行結果が表示される。


    実行時のコマンドの説明文をマニュアルよりコピー
    COMMANDS

    start
    Start RTK server. No need the command if the program runs with -s option.

    stop
    Stop RTK server.
    restart
    Restart RTK server. If the processing options are set, execute the command to enable the changes.
    solution [cycle]
    Show solutions. Without option, only one solution is shown. With option, the soluiton is disp
    layed at intervals of cycle (s). To stop cyclic display, send break (ctr-C).
    status [cycle]
    Show RTK status. Use option cycle for cyclic display.
    satellite [cycle]
    Show satellite status. Use option cycle for cyclic display.
    observ [cycle]
    Show observation data. Use option cycle for cyclic display.
    navidata [cycle]
    Show navigation data. Use option cycle for cyclic display.
    stream [cycle]
    Show stream status. Use option cycle for cyclic display.
    error
    Show error/warning messages. To stop messages, send break (ctr-C).
    option [opt]
    Show the values of processing options. Without option, all options are displayed. With option, only pattern-matched options are displayed.
    set opt [val]
    Set the value of a processing option to val. With out option val, prompt message is shown to input the value. The change of the processing option is not enabled before RTK server is restarted.
    load [file]
    Load processing options from file. Without option, default file rtkrcv.conf is used. To enable the changes, restart RTK server.
    save [file]
    Save current processing optons to file. Without option, default file rtkrcv.conf is used.
    log [file|off]
    Record console log to file. To stop recording the log, use option off.
    help|? [path]
    Show the command list. With option path, the stream path options are shown.
    exit
    Exit and logout console. The status of RTK server is not affected by the command.
    shutdown
    Shutdown RTK server and exit the program.
    !command [arg...]
    Execute command by the operating system shell. Do not use the interactive command.
    NOTES
    Short form of a command is allowed. In case of the short form, the command is distinguished according to header characters.
    (コマンドの簡易型が許可されます。簡易型の場合には、コマンドがヘッダー文字によって識別されます。)
    終了時は、 shutdown コマンドを使用する。
    rtkrcv> shutdown
    shutdown rtkrcv process ? (y/n): y