i got it working!!

actually it seems tht i can see the data in hyperterminal cos the device sends the data when i connect to the device. i just needed to rewrite my code as a client instead of listening.

i initially thought data can be received only if ur listening, but instead in this case i connect and wait for the device to send me the data.

thanks for all ur input!