• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Microcontrollers » MSP430™ Microcontrollers » MSP430 Ultra-Low Power 16-bit Microcontroller Forum » eZ430-Chronos Simple Acceleration reading sequence from serial port
Share
MSP430™ Microcontrollers
  • Forum
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
MSP430 Resources
  • MSP430 Product Folder
  • MSP-EXP430G2 - MSP430 LaunchPad Value Line Development kit
  • MSP430 Getting Started Guide
  • MSP430 Microcontroller Projects
  • More Resources >
  • Forums

    eZ430-Chronos Simple Acceleration reading sequence from serial port

    • Kaushik Ananth52062
      Posted by Kaushik Ananth52062
      on Jun 23 2010 21:24 PM
      Prodigy60 points

      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

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • h2ogeezr
      Posted by h2ogeezr
      on Jul 21 2010 09:13 AM
      Prodigy50 points

      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.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Chrissie Cui
      Posted by Chrissie Cui
      on Jul 26 2010 07:55 AM
      Prodigy30 points

      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.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • srikanth sistla
      Posted by srikanth sistla
      on Jul 27 2010 01:52 AM
      Prodigy30 points

      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.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • mopu
      Posted by mopu
      on Aug 04 2010 04:17 AM
      Prodigy10 points

      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

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Angel Hernandez
      Posted by Angel Hernandez
      on Aug 30 2010 04:55 AM
      Prodigy140 points

      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

       

      communication Visual Studio .NET chronos ez430
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Belén Ruiz
      Posted by Belén Ruiz
      on Jul 06 2011 05:26 AM
      Prodigy20 points

      Excuse me can you tell me were did you found this commands?

      Thank you

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Oscar Rodriguez
      Posted by Oscar Rodriguez
      on Aug 23 2011 03:50 AM
      Prodigy20 points

      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?

       

      accelerometer formula 3d pitch tilt box processing roll
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • surya narayanan
      Posted by surya narayanan
      on Oct 09 2011 13:23 PM
      Prodigy40 points

      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.

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Matthias Schnur
      Posted by Matthias Schnur
      on Nov 09 2011 04:28 AM
      Prodigy20 points
      Protocolled Communication.JPG

      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

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • lucidio vacas jover
      Posted by lucidio vacas jover
      on Dec 22 2011 04:10 AM
      Prodigy10 points

      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! 

      chronos ez4300 cc1111 rf
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Patrick Mcguirk
      Posted by Patrick Mcguirk
      on Jan 13 2012 17:28 PM
      Prodigy70 points

      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!

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • mark sonnentag
      Posted by mark sonnentag
      on Jan 16 2012 06:49 AM
      Expert1890 points

      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.

       

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • jolie john
      Posted by jolie john
      on Mar 08 2012 20:54 PM
      Prodigy10 points

      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 :) 

      Serial Communication
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Chandrashekar kathwate
      Posted by Chandrashekar kathwate
      on Apr 06 2012 19:01 PM
      Prodigy10 points

      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/

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    1234
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use