This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

requesting data logger data using python script

hello all,

 

Im making a python sript to get the logged data from the ez430 chronos watch but I dont get it what is the process.. Can someone show me a sample python code for doing this thing??

I hope someone would answer this thread... thanks....

  • hello again I tried writing a script but i need some hint or sample on how do i get the logged data from the watch.. 

     

     

     

    import serial

    import array

    import csv

    #Open a CSV file for writing

    accelcsvfile = csv.writer(open('dlog.csv', 'w'))

    def startAccessPoint():

        return array.array('B', [0xFF, 0x07, 0x03]).tostring()
       
       

    def accDataRequest():

        return array.array('B', [0xFF,0x33,0x03]).tostring()
       
       
       
       
    def accStatus():

        return array.array('B', [0xFF,0x32,0x04,0x00]).tostring()
       
       
       
    ser = serial.Serial("/dev/ttyACM0",115200,timeout=1)



    ser.write(startAccessPoint())

     

**Attention** This is a public forum