Fóruns: VC++公開討議 (Thread #32736)

csvファイルのデータをバイナリファイルで出力するプログラム (2012-08-29 18:27 by blackzoro #65336)

皆様お世話になっております。

現在、作りたいプログラムがあり投稿させて頂きます。

CSVファイルに1個につき8文字の16進数値のテキストデータがあり、個のデータをバイナリに変換後、このデータを0x03番地から+0x97byteごとに配置するプログラムを作りたいと思っているのですが、どのようにしたらよいかよくわかりません。


\cc1101driver\trunk\VC_test\csv2bin


こちらのフォルダ内にバイナリに変換したいファイル”20120829_test.csv”を置かせて頂いております。


どなたかご教授頂けると大変助かります。どうぞ、よろしくお願いいたします。




Responder a #65336×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: csvファイルのデータをバイナリファイルで出力するプログラム (2012-08-30 14:47 by blackzoro #65353)

blackzoroです。お世話になっております。


20120829_test.csvについてもう少し追加で説明したいのですが、0x03番地から置きたい8byteのデータは”F列”の16桁の16進数値です。
Responder a #65336

Responder a #65353×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: csvファイルのデータをバイナリファイルで出力するプログラム (2012-08-30 14:49 by toy_dev #65354)

やってみます。まだ細かい内容は読んでいませんが。
しばらく時間もらっても良いですか?
Responder a #65353

Responder a #65354×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: csvファイルのデータをバイナリファイルで出力するプログラム (2012-08-30 15:56 by blackzoro #65355)

トゥイー さん

いつもお世話になっております。ご無沙汰しております。もし時間がよろしければぜひご協力いただけると助かります。

今回のプログラムの機能で少しなんですが説明してみたPDFファイルを作って

\cc1101driver\trunk\VC_test\csv2bin  こちらのフォルダの

csv2bin.pdf

というのを作ってみました。
こちら参照いただけると助かります。



Responder a #65354

Responder a #65355×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: csvファイルのデータをバイナリファイルで出力するプログラム (2012-09-12 21:20 by toy_dev #65479)

PDF ファイルとか CSV ファイルとか見たのですが、まだ何がしたいのかよくわかっていません。
もう少し説明が欲しいです。

・CSVファイルを読みましたが、NO と ID 以外の項はどのような意味がありますか?
・CSVファイルの内容をデータを0x03番地から+0x97byteごとに配置するとありますが、それ以外の場所の値はどのようになるのでしょうか?
 配置元となるバイナリが別途あるのでしょうか?
 それとも何かルールがありますか?(見る限り、最初は E4 で始まり、配置データの前は 01 08、それ以外は 00 埋めのように見えます)

後、これが何を意味するものなのかがわかると、やりやすいので簡単に説明できるようであれば説明をお願い致します。
Responder a #65336

Responder a #65479×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login