• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can we format data in message frames?  RSS feed

 
Neha Pa
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Can we format the data in the data frames as follows -


|Header | Message Id | Data Lenght | Data | CRC |Fotter|

If yes can anybody guide me how to do it?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are "data frames" and "message frames"? Are we talking about something in memory, or networking, or files, or something else entirely?
 
Neha Pa
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The data is suposed to be transmitted over RS232 using java. on the receving end C language will read this data frame and decode it to get only DATA.
To send it through RS232 it is requirement to form a data packet i.e data frames in the format I have described above.
 
Neha Pa
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody tell me answer to my post as early as possible?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would imagine that any data could be sent over a serial connection. Does the documentation of whichever library you're using mention anything about limitations in what you can send?
[ October 20, 2008: Message edited by: Ulf Dittmer ]
 
Neha Pa
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually problem is not sending data over serial communication. That I have already done. I want the actual data to be transfered into data packet format like
|Header | Message Id | Data Lenght | Data | CRC |Fotter|.
So how to do this. I could think of using byte[] array. But is it right?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!