(toppers-etrobo 94) Re: EV3RTにおいてデバッグ用メッセージをUARTに出力するように設定できますか?

yamane yamayuri @ gmail.com
2017年 5月 29日 (月) 18:30:33 JST


小南さま

やまねです。

設定は、ボーレート115200, 8bit パリティーなし、ストップビット1bit でOKです。

もし、ETロボコンの教材プログラムをご利用でしたら、タッチセンサーがport1指定になっていますので、port2(空きポートなら何でも良いのですが)に変更してください。

ちなみにTECSv2.0.1 の場合ですと、以下のようなログが送信されてきます。

-------------------------
EV3 initialization passed!
Booting EV3 EEprom Boot Loader

        EEprom Version:   0.60
        EV3 Flashtype:    N25Q128A13B

EV3 Booting system

Jumping to entry point at: 0xC1080000


U-Boot 2009.11 (Oct 26 2012 - 10:30:38)

I2C:   ready
DRAM:  64 MB
MMC:   davinci: 0
In:    serial
Out:   serial
Err:   serial
ARM Clock : 300000000 Hz
DDR Clock : 132000000 Hz
Invalid MAC address read.
Hit 'l' to stop autoboot:  0
reading boot.scr

** Unable to read "boot.scr" from mmc 0:1 **
reading uImage

978756 bytes read
## Booting kernel from Legacy Image at c0007fc0 ...
   Image Name:   hrp2 kernel
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    978692 Bytes = 955.8 kB
   Load Address: c0008000
   Entry Point:  c0008000
   Loading Kernel Image ... OK
OK

Starting kernel ...


TOPPERS/HRP Kernel Release 2.2.1 for EV3(AM1808(ARM926ES-J)) (May 29
2017, 18:12:31)
Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
                            Toyohashi Univ. of Technology, JAPAN
Copyright (C) 2004-2014 by Embedded and Real-Time Systems Laboratory
            Graduate School of Information Science, Nagoya Univ., JAPAN

EDMA3_CC0.ER: 0x00010c00
EDMA3_CC0.EMR: 0x00000000
Card is present
<6>fb0: ST7586 frame buffer device, using 7 KiB of video memory

<3>fb0: Initing display

System logging task is started on port 1.
<3>fb0: Initing display

brick_dri initialized.
analog_dri initialized.
motor_dri initialized.
i2c_dri initialized.
uart_dri initialized.
sound_dri initialized.
bluetooth_dri initialized.
BT Chip: CC2560

   _____   ______ ___  ______
  / __/ | / /_  // _ \/_  __/
 / _/ | |/ //_ </ , _/ / /
/___/ |___/____/_/|_| /_/

=============================
mruby on ev3rt+tecs beta2.0.1
=============================

Powered by TOPPERS/HRP2 RTOS
Initialization is completed..

-------------------------

以上、よろしくお願いします。


2017年5月29日 14:19 yasuo kominami(nifty) <ykominami @ nifty.com>:
> 山根様、皆様
>
> 小南です。
>
> TeraTermのスクリーンショットを添付し忘れたので、改めてメールします。
>
> 2017-05-29 13:58 GMT+09:00 yasuo kominami(nifty) <ykominami @ nifty.com>:
>>
>> 山根様、皆様
>>
>> 小南です。
>>
>> 設定方法を教えていただきありがとうございます。
>>
>> Port1につないだケーブルをタッチセンサーから抜き、Breadboard Connector Kit for NXT
>> につなぎ、このコネクターキットから、USBシリアル変換基板につなぎ、それをPCにつな
>> くことで、TeraTerm(仮想COMポート、ボーレート115200)にそれらしい出力が得られました。
>> 文字化けかと思われる部分の中に、「V3 initialization passwd!」があります。
>> 実際のTeraTermのウィンドウのスクリーンショットを添付します。
>> ボーレートをこれより早くしてもまったくウィンドウに出力されず、遅くしても文字化けだけに
>> なるので、速度は11520で正しいと思いますが、期待した出力は得られませんでした。
>>
>>
>> 2017-05-26 11:01 GMT+09:00 yamane <yamayuri @ gmail.com>:
>>>
>>> 小南さま
>>>
>>> やまねです。
>>>
>>> --------------
>>> [Sensors]
>>> DisablePort1=0
>>> --------------      ~
>>>
>>> 上記の値も変更する必要があります。
>>> --------------
>>> [Sensors]
>>> DisablePort1=1
>>> --------------      ~
>>>
>>> mruby on EV3RT+tecs で動作確認済みです。
>>> よろしくお願いします。
>>>
>>>
>>> 2017年5月26日 2:11 yasuo kominami(nifty) <ykominami @ nifty.com>:
>>> > TOPEPRSプロジェクト個人会員の小南です。
>>> >
>>> > 64bit Windows10 Home+cygwinで開発しています。
>>> >
>>> > EV3RTのBeta 7を利用しています。
>>> > Changelog.txtには、以下のように記述されています。
>>> >
>>> > 2016-03-16 Version Beta 6-2
>>> > * Miscellaneous
>>> >   - SIO_PORT_DEFAULT can be set to LCD, BT or UART in rc.conf.ini now
>>> >
>>> > 1. デバッグ用メッセージを(Bluetoothではなく)UARTに出力するように設定できますか?
>>> > 2. 1で設定できるとして、どのように設定すればよいですか。
>>> > 3. UARTの設定に関して、なにかドキュメントはありますか。
>>> >
>>> > beta 7のアーカイブファイルを展開してましたが、UARTに関する説明がChangelog.txtにしか見つかりませんでした。
>>> >
>>> > 以下のサイトでもみつかりませんでした。
>>> > http://dev.toppers.jp/trac_user/ev3pf/wiki/WhatsEV3RT
>>> >
>>> > 関連して、以下のEV3RTをベースとしたmruby on EV3RT+TECSプラットフォームの
>>> > doc/mruby_on_ev3rt+tecs_build.pdf
>>> > P40以降に(Bluttoothではなく)UARTの説明がありました。
>>> >
>>> >
>>> > https://www.toppers.jp/download.cgi/mruby-on-ev3rt+tecs_package-beta2.0.1.tar.gz
>>> >
>>> >
>>> > 4.SDカードの/ev3rt/etc/rc.conf.iniを変更すればデバッグ用メッセージをUARTに出力さるかと思い、以下に示すように変更してもTeraTerm(仮想COMポート、ボーレート115200)には何も出力されませんでした。
>>> >  EV3のポート1を Breadboard Connector Kit for
>>> > NXTをつなぎ、USBシリアル変換モジュールMFT232RLにつなぎ、USBでPCにつなぎました。
>>> > FTDI社のサイトから、ドライバをDLしてインストールし、仮想COMポートも認識されました。
>>> >
>>> > 変更前
>>> > [Debug]
>>> > DefaultPort=LCD
>>> > [Bluetooth]
>>> > LocalName=Mindstorms EV3
>>> > PinCode=0000
>>> > IPAddress=10.0.10.1
>>> > DisablePAN=0
>>> > [Sensors]
>>> > DisablePort1=0
>>> > [USB]
>>> > AutoTerminateApp=1
>>> >
>>> >
>>> > 変更後
>>> >
>>> > [Debug]
>>> > DefaultPort=UART
>>> > [Bluetooth]
>>> > LocalName=Mindstorms EV3
>>> > PinCode=0000
>>> > IPAddress=10.0.10.1
>>> > DisablePAN=0
>>> > [Sensors]
>>> > DisablePort1=0
>>> > [USB]
>>> > AutoTerminateApp=1
>>> >
>>> > デバッグ用メッセージをUARTに出力するには、どのように変更すればよいでしょうか。
>>> >
>>> >
>>
>>
>