Hi, I'm a complete noob to this board but I have a question and I'm hoping I'm asking it in the right place.
I have been able to get the ZSTAR3 Example App provided by Freescale to work properly, but that application uses a form to display the output of the data generated by the sensor. I need to be able to collect this data in a console application instead of a form application and display it in the console window. However, without the form, the console app simply runs and finishes without waiting for the ZSTAR USB stick to collect the data. I have tried a little bit to use threading to solve this problem, but with a thread keeping the console application running, the ZSTAR3 object never recieves any data bursts.
I'm working with C#. If anyone could help me out or direct me to some sample code where what I am trying to accomplish is done, that would be appreciated.
Thanks,
--KDCline
Hi,
if you only want get communicate with one sensor board and show the burst data in the console application, you need program serial port working in your C#. Through your serial port, you need send the command 'Xaa' - where aa is the mask of your sensor. if you didn't set up any mask or index, your mask is 01.
To show your data in your console , just plug the USB Stick, turn on your sensor board, and wait she connects to your USB Stick. Then just run your program and send once this command, i explainned before. after you just need read the serial port buffer, and you will see the bits comming!
See ya