Hey ganesh,
its cool i got it runnin on java.. there was a minor mistake in de code . prob coz i didnt know java well.. anyway cleared it. shud not be a prob now i hope. :)
kaushik
Thank you everyone for your information on the above. I was wondering if anyone has gotten two chronos connected to one access point or two chronos connected to one chronos (2 slaves to a master). I just started playing with these and looking for any help I can get. Thanks again.
I don't think 8 bits are enough for the acceleration data. When I use Chronos Control Center interface I see data large than 255 and there are negative values out there. So I think each axis should have more bits for its value.
Hello Guys,
I have got this watch very recently and I am still in the initial stages. Could someone help me write a code in C to capture the x,y,z co-ordinates onto an xml file or a data file? It would be of great help if anyone can guide me through the process.
Thanks a lot.
Regards,
Srikanth Sistla.
Hi Jesus,
in MATLAB, to load AP i've done this
% startAP_CMD = 'ff0703'; replaced by startAP_CMD = [255 7 3];
s=serial (...) % same as you have done
startAP_CMD = [255 7 3];
fprintf(s,'%s',native2unicode( startAP_CMD )) % the use of " format" "%s" is to supress the use of terminator
and works fine.
i have some troubles to get off the AP using "ff 09 03"(while, the "solution" is close the serial connection, and open TI program to be sure the connection will be closed when close this).
that's all.
regards
Hello all!
I recently got my Chronos ez430, and I have been able to play with the programming in the swatch, but I´m struggling quite a bit with the PC-Chronos Communication. I would like to use Visual Studio, whatever language is fine. I thought this was going to be like a regular serial port, but I guess its not that easy to use the AP...
Im lost in this matter, can anyone help me please?
Thanks,
Ángel Hernández
Excuse me can you tell me were did you found this commands?
Thank you
I have tried to show a 3D box in Processing that rotate when you tilt the watch:
http://www.metacafe.com/watch/7035380/ez430_chronos_processing_and_tilt_measurement_error/
I get the 3 maximum and minimum values and convert them to -1.0 and 1.0 interval. Then with the atan2 function I convert it to rotations for X (pitch) and Z (roll) axys:
float x, y, z;
x = map(buffer[4], -53, 47, 1, -1); z = map(buffer[5], -60, 43, -1, 1); y = map(buffer[6], -65, 31, -1, 1);
valorX = atan2(x,y); valorZ = atan2(z,y);
However as you can see in video, when I invert the watch the 3D box moves wrong. What is the formula to calculate 360º rotations with the three values (x,y and z) retrieved from accelerometer?
hi, here if im sending the data as "ff 07 03"., the same command is echoed back to me.
im not able to connect it via hyperterminal.
please help me in getting the accelerometer values via hyperterminal.
Hello,First of all I would like to thank you for your contributions in this thread, because it was very helpful.Unfortunately, I still have a problem when I want to read my AP (my Chronos is working with the Data Logger). Example: I send "FF 07 03" (which also works) to start the AP and now want to read if this statement was successfully arrived. The only thing witch I get back is a timeout, although my serialsniffer (Portmon) protocolls, that the string "FF 06 03" was read (see picture).Here is my c++-code (for my QT-Programm wich using qextserialport):
#include <QtCore>#include <QCoreApplication>#include <qextserialport.h>int main(int argc, char *argv[]){ char data[3]; QString message("\xFF\x07\x03"); QString message1("\xFF\x09\x03"); QextSerialPort *mySerial = new QextSerialPort("COM6"); mySerial->setBaudRate(BAUD115200); mySerial->setTimeout(500); //Open serial port and start AP bool start = mySerial->open(QextSerialPort::ReadWrite); int total = mySerial->write(message.toAscii(),message.length()); //Read if AP has started int i = mySerial->read(data, 3); //Stop AP and close serial port total = mySerial->write(message1.toAscii(),message1.length()); mySerial->close();
return 1;
}
Regards and thank you for reading,
Matthias
Hi h2ogeezr and everyone!Please. Somebody knows if you want to connect two chronos in the same PC... Could you use only one cc1111 rf access point?? Because I think it isn´t possible to connect two cc1111 because the two devices have the same VID, PID, etc, and whe you connect the second, the first disconnect.If it´s possible to control two chronos with one cc1111, how can I make it work? Thank You soo much!
Hi, do you know the command to send a packet? I would like to send a simple packet from the AP to the ED?
Thanks!
Hi Patrick,
there is no generic command to send messages.
You could use the Sync Mode to exchange messages.
You send a message from the AP to the ED with the command FF || 0x31|| Length(1 Byte, Length of Data + Overhead(3 Bytes) ) || Data
You have make sure that AP + ED are in Sync Mode before you send messages.
The dll project for tcl in the eZ430-Chronos\Control Center\GUI Sources\DLL folder is a good reference. The bm_api.h header has all possible commands.
Hi Martin ,
Am using the EZ430-chronos watch for a project , and i want to apply movements on an object according to the accelerometer reading , so could you please tell me what kind of library or code you used to read the accelerometer ?! am using C++
Thank you so much :)
jolie john Hi Martin , Am using the EZ430-chronos watch for a project , and i want to apply movements on an object according to the accelerometer reading , so could you please tell me what kind of library or code you used to read the accelerometer ?! am using C++ Thank you so much :)
Hi jolie
you can check for eZ430_Chronos_Net.dll available at http://sourceforge.net/projects/ez430chronosnet/files/