Neha Pa

Greenhorn
+ Follow
since Jul 23, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Neha Pa

Hi All,

I need to develope an event drvien Client Server application.
The requirement is whenevr connection/data is available then event should get fired. Ex: When client request for connection that should be notified to the server & user of server will decide whether to accept or decline that connection request.On accepting it ,when client sends data to server,data available notification should be sent to user of the server. And server in turn will send response back to Client.
Is there any inbuilt API of socket programming which notifies the server when data is available on the port from the client? Same as when data is available on Serial port for RS232,DATA_AVAILABLE event has been generated by JVM. On similar lines is there any Java's inbuit API for the notification?

Not: I am using TCP/IP protocol.

Thanks in advance.

Neha
Hi All,

I need to calculate CRC for my application.
Logic we used for calculating CRC is
1) addition of data length,actual data,message id. (All These are stored in a byte array)
int crcSum = dataToBeSend[1] + dataToBeSend[2] + dataToBeSend[3] + dataToBeSend[4] + dataToBeSend[5];
2) Now converting this to binary format
String crcSumBin = Integer.toBinaryString(crcSum)
3) Now I am getting binary string suppose 00000001 01010011
4) What I need is only 8 bit data. so We thought of adding MSB & LSB like 01010011
+
0000001.
We will be doing this adding till we get 8 bit data. Can Anybody help me and tell me how to achieve this?
Thanks in advance.
13 years ago
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?
13 years ago
Can anybody tell me answer to my post as early as possible?
13 years ago
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.
13 years ago
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?
13 years ago
Hi All,

I need to design a common delegate interface for client server coomunication.The idea behind it is briefly like- The basic motive is we need to automate the testing of componets like microcontrller over the circuit board. The user will provide the configuration data.Now this data is to be sent to labview to initialise it. This client server will lies in between user data and iabview. The user data will be sent through client interface to server interface and finally this server interface will send the data to labview.
So firstly our requirement is to develope a generic delegate intercae and then need to develope genericdelegate client and generic delegate server interface which inturn implements generic delegate interface.
So can anybody please let me know how to design it like which funtionalities we need to implement.
13 years ago
Hi Anton and all,
Thank you for your help.
I am getting the required outport.
Once again thanks.

Neha
13 years ago
Can anybody provide me a java code using which we can send data through RS232 and receive back the acknowledgement as early as possible.
It is very urget.
Thanks in advance.
13 years ago
Can anybody provide me a java code using which we can send data through RS232 and receive back the acknowledgement as early as possible.
It is very urget.
Thanks in advance.
13 years ago
Can anybody provide me a java code using which we can send data through RS232 and receive back the acknowledgement as early as possible.
It is very urget.
Thanks in advance.