المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : ascii to decimal



C# Programming
06-25-2012, 03:45 AM
Hi every one,
I have a small project to monitor the heart rate using c#.NET. I wrote a code to receive the ascii data using serial port through a bluetooth link between the pc and a Zephyr HxM device. What I need is how to convert this received ascii data into a decimal. The data consists of 64 bytes recieved every one second and I need from these data only byte number 12 which gives me the heart rate. So my question is how to receive the ascii code and select only byte no. 12 after convert the data
from ascii to decimal. Thanks for yur help.