Tuesday, June 23, 2009

Call for Papers VNC2009

Call for Papers
Scope and Purpose:

This conference will seek to bring together researchers, professionals, and practitioners to present and discuss recent developments and challenges in vehicle-to-vehicle and vehicle-to-infrastructure networking technologies, and their applications.

Topics of interest are:

* Vehicle-to-vehicle (V2V) communications
* Vehicle-to-infrastructure (V2I) communications
* Vehicular ad hoc networks
* Potential applications of V2V and V2I communications including ITS
* Protocols for V2V and V2I communications (MAC, routing, mobility management, etc.)
* Security and authentication issues in V2V and V2I networks
* Physical layer and RF level technologies for V2V and V2I communications
* Antenna system technologies for V2V and V2I communications
* Radio resource management and QoS support for V2V and V2I communications
* Information networking over V2V, V2R and next-generation networks
* Simulation / performance evaluation techniques for V2V and V2I communications
* Algorithms, protocols and systems for data dissemination in V2V and V2I communications
* Experimental systems and testbeds for V2V and V2I communications
* Standardization updates on V2V and V2I communications

Paper submission date: August 3, 2009
Notification of acceptance date: September 7, 2009
Final paper submission date: October 2, 2009

General Chairs:

Dr. Onur Altintas, Toyota InfoTechnology Center, Japan
Dr. Wai Chen, Telcordia Technologies, USA

Contact:

Dr. Onur Altintas
Toyota InfoTechnology Center, Japan
onur[at]computer.org

Dr. Wai Chen
Telcordia Technologies, USA
waichen[at]ieee.org

Monday, June 08, 2009

SerialPortのDataReceivedイベントについて

鈴木@KEG と申します。

だいぶ前の投稿への返信ですけど、他のみなさまのためにも。

DataRecieved イベント で、受信したバイト数を取得するには、BytesToRead プロパティを参照します。例外の補足を除いたシンプルなコードは、以下のように書けます。

if (serialPort1.BytesToRead > 0)
{
// 受信バッファからデータを取得
byte[] b = new byte[serialPort1.BytesToRead];
Read(b, 0, b.Length);
}

DataRecieved イベントを受け取った後も、刻々と受信バッファにデータが入るので、BytesToRead を参照するときには注意して下さい( 上の例だと、Read(b, 0, serialPort1.BytesToRead); はNG )。

ReadBufferSize は、バッファのサイズそのものです。また、ReceivedBytesThreshold は、受信バッファに溜まったデータが何バイトになったら、DataRecived イベントを発生させるか、といったプロパティです。初期値はいずれも 0を越えていますのでサンプルに挙げられたソースでは、常に真となってしまわれると思います。

DataRecieved イベント内の処理が多かったり、イベント内で複数回のReadを行っていると、DataRecieved イベントは受信バッファにReceivedBytesThreshold の分だけデータが溜まった時に呼ばれるので、イベントがスタックする事もあるかと思います(フロー制御を行っていると、大抵は相手の送信が止まるので確認できませんけれど)。イベントが来ることを防止するのでは無く、BytesToRead で読み取り可能なバイト数を確認する事と、Read の例外をcatch するのが良い方法だと思います。

Tuesday, May 19, 2009

const

■ 下記の書き方は同じ意味,これでxは定数で,別の値を代入できなくなる.
int const x = 200;
const int x = 200;

■ constポインタは少し厄介
const char* p1 = "aaa"; // p1, p2が指す内容を変更できないが,p1, p2は変更可能
char const* p2 = "bbb";

char* const p3 = "ccc"; // p3は変更できないが,指す内容は変更できる

const char* const p4 = "ddd"; // p4と指す値も両方変更できない

*の左にがある場合は指す内容を変更できないが,ポインタは変更可能
*の右に*がある場合は指す内容を変更できるが,ポインタは変更できない
両方がある場合は値もポインタも変更できない

■ const なクラスメンバー
コンストラクタでOBJを作成するときには必ず初期化しないといけない

■ クラスの関数で,属性を変更しないものは const をつけろ!

Friday, April 03, 2009

DIP-IC用テストクリップ


[STC-20A] DIP-IC用テストクリップ

Wednesday, April 01, 2009

書見台

これ,いいなぁ〜,今までほしかったです.

◎ カール ブックスタンダー NO.820 ブラック NO.820-K ブラック
◎ セキセイ 書見台【グレー】 BH001-62