]> Pileus Git - ~andy/csm213a-hw/log
~andy/csm213a-hw
10 years agoAdd readme and cleanup formatting cleanup
Andy Spencer [Sat, 15 Mar 2014 18:10:27 +0000 (18:10 +0000)]
Add readme and cleanup formatting cleanup

10 years agoMake control script more configurable
Andy Spencer [Sat, 15 Mar 2014 11:41:25 +0000 (11:41 +0000)]
Make control script more configurable

10 years agoAdd Android app from Yue
Andy Spencer [Sat, 15 Mar 2014 10:32:20 +0000 (10:32 +0000)]
Add Android app from Yue

10 years agoSplit start and period set functions
Andy Spencer [Sat, 15 Mar 2014 09:31:40 +0000 (09:31 +0000)]
Split start and period set functions

10 years agoUse relay flag insead of Device ID
Andy Spencer [Sat, 15 Mar 2014 08:48:46 +0000 (08:48 +0000)]
Use relay flag insead of Device ID

10 years agoFix bug in event generation
Andy Spencer [Sat, 15 Mar 2014 08:10:36 +0000 (08:10 +0000)]
Fix bug in event generation

10 years agoMake slave mode configurable
Andy Spencer [Sat, 15 Mar 2014 07:19:22 +0000 (07:19 +0000)]
Make slave mode configurable

10 years agoDebug relayed initialization
Andy Spencer [Sat, 15 Mar 2014 06:39:41 +0000 (06:39 +0000)]
Debug relayed initialization

10 years agoAdd serial transmit call
Andy Spencer [Sat, 15 Mar 2014 06:13:28 +0000 (06:13 +0000)]
Add serial transmit call

In event really mode, the mbed needs to queue up relayed event messages
until the time sync messages goes out, otherwise the timer will trigger
at the wrong time.

10 years agoStart working on serial relay
Andy Spencer [Sat, 15 Mar 2014 03:57:56 +0000 (03:57 +0000)]
Start working on serial relay

10 years agoRefactor main into separate files
Andy Spencer [Sat, 15 Mar 2014 03:28:04 +0000 (03:28 +0000)]
Refactor main into separate files

10 years agoBring in utilities to tester
Andy Spencer [Fri, 14 Mar 2014 05:52:06 +0000 (05:52 +0000)]
Bring in utilities to tester

10 years agoFactor out message parser
Andy Spencer [Fri, 14 Mar 2014 05:51:49 +0000 (05:51 +0000)]
Factor out message parser

10 years agoImport testing code and update makefiles
Andy Spencer [Fri, 14 Mar 2014 03:17:45 +0000 (03:17 +0000)]
Import testing code and update makefiles

This supports building and install both the primary build (mbed.bin) and
the secondary testing build (tester.bin).

10 years agoCleanup comments and move test.cpp
Andy Spencer [Fri, 14 Mar 2014 02:30:53 +0000 (02:30 +0000)]
Cleanup comments and move test.cpp

10 years agoStart logging data
Andy Spencer [Thu, 13 Mar 2014 07:41:34 +0000 (07:41 +0000)]
Start logging data

10 years agoSave a working version of TPM
Andy Spencer [Thu, 13 Mar 2014 06:31:11 +0000 (06:31 +0000)]
Save a working version of TPM

10 years agoDebug TPM settings
Andy Spencer [Wed, 12 Mar 2014 17:54:08 +0000 (17:54 +0000)]
Debug TPM settings

- Disable prescaler
- Check FLL/PLL select in SOPT2
- Optimize CLOCK/NSEC conversion
- Set oscillator to high gain operation
- Add debug code for TPM/PIT counters

10 years agoMisc debugging
Andy Spencer [Thu, 13 Mar 2014 03:47:40 +0000 (03:47 +0000)]
Misc debugging

Add debug event messages
Change devices to 1 and 2
Fix bug in time transmit
Fix return code warning

10 years agoPerform no-delay time synchronization
Andy Spencer [Wed, 12 Mar 2014 17:26:50 +0000 (17:26 +0000)]
Perform no-delay time synchronization

10 years agoUpdate message definitions
Andy Spencer [Tue, 11 Mar 2014 07:13:22 +0000 (07:13 +0000)]
Update message definitions

10 years agoWork on event output message
Andy Spencer [Tue, 11 Mar 2014 05:45:55 +0000 (05:45 +0000)]
Work on event output message

10 years agoIgnore tags file
Andy Spencer [Tue, 11 Mar 2014 04:29:33 +0000 (04:29 +0000)]
Ignore tags file

10 years agoDebug PWM output
Andy Spencer [Tue, 11 Mar 2014 04:00:55 +0000 (04:00 +0000)]
Debug PWM output

10 years agoFix input events
Andy Spencer [Tue, 11 Mar 2014 03:04:45 +0000 (03:04 +0000)]
Fix input events

10 years agoFix bug in irq code
Andy Spencer [Mon, 10 Mar 2014 22:14:37 +0000 (22:14 +0000)]
Fix bug in irq code

10 years agoCleanup and test messages and events
Andy Spencer [Mon, 10 Mar 2014 20:23:15 +0000 (20:23 +0000)]
Cleanup and test messages and events

Add new message definitions to control and makefile

Debug stuff without actually testing using an external device or scope

10 years agoAdd output event and more messages
Andy Spencer [Mon, 10 Mar 2014 13:21:02 +0000 (13:21 +0000)]
Add output event and more messages

10 years agoImprove time sync accuracy
Andy Spencer [Mon, 10 Mar 2014 09:14:40 +0000 (09:14 +0000)]
Improve time sync accuracy

This code is kind of messy, but it is more accurate.

Noise between time syncs seems to be around 50 nanoseconds. Noise on
external event readings seems to be around 500 nanoseconds. External
events were tested by manually inserting pins.

The mbeds seems to be consistency apart on external events, so some of
the noise could be caused by differing thresholds on the wires. Rising
edge mode on mbed seems to be ahead, and in falling edge the other is
ahead.

A large portion of the measurement errors was caused by not properly
learning pending DMA requests before enabling the DMA channels. The
pending requests seem to need to be disabled in the DMAMUX as well as
the DMA controller, and on the pins as well. It's not clearly what the
idea reset method is.

10 years agoUpdate testing code
Andy Spencer [Mon, 10 Mar 2014 02:24:16 +0000 (02:24 +0000)]
Update testing code

10 years agoWork on second mbed
Andy Spencer [Mon, 10 Mar 2014 00:59:02 +0000 (00:59 +0000)]
Work on second mbed

Add control program file:
  - Can be used to send a time initialization message to the mbed

Add install program:
  - Install programs on both mbeds and initialize the time on one

Add IRQ driven serial interface:
  - Since we don't have spare DMA controllers available for this
    homework we need to transmit serial data some other way.

  - The IRQ code allows us to queue up large messages to be transmitted
    asynchronous to main background loop. It should also help with
    receiving data at a high rate.

Add task table to main:
  - This lets us schedule tasks at fixed intervals.

Fix various bugs:
  - Timer dma code reset avoid config errors cause by periodical request
    while the DMA controller has nothing to transmit.

10 years agoMove testing code out of main
Andy Spencer [Sun, 9 Mar 2014 06:57:59 +0000 (06:57 +0000)]
Move testing code out of main

10 years agoAdd dma timestamper
Andy Spencer [Sun, 9 Mar 2014 06:41:37 +0000 (06:41 +0000)]
Add dma timestamper

10 years agoGet DMA timestamp working
Andy Spencer [Sun, 9 Mar 2014 03:47:39 +0000 (03:47 +0000)]
Get DMA timestamp working

10 years agoAdd dma and more tests
Andy Spencer [Sun, 9 Mar 2014 00:26:06 +0000 (00:26 +0000)]
Add dma and more tests

10 years agoAdd UART 1/2 testing
Andy Spencer [Mon, 3 Mar 2014 21:34:03 +0000 (21:34 +0000)]
Add UART 1/2 testing

10 years agoStart work on interfaces
Andy Spencer [Mon, 3 Mar 2014 17:54:44 +0000 (17:54 +0000)]
Start work on interfaces

10 years agoAdd initial hw2 folder
Andy Spencer [Sat, 1 Mar 2014 19:20:46 +0000 (19:20 +0000)]
Add initial hw2 folder

10 years agoGTK+ 3 support
Andy Spencer [Mon, 17 Feb 2014 03:37:21 +0000 (03:37 +0000)]
GTK+ 3 support

10 years agoAdd screenshots
Andy Spencer [Fri, 14 Feb 2014 09:29:36 +0000 (09:29 +0000)]
Add screenshots

10 years agoAdd sine wave generator
Andy Spencer [Fri, 14 Feb 2014 09:29:16 +0000 (09:29 +0000)]
Add sine wave generator

10 years agoAdd plot selector
Andy Spencer [Fri, 14 Feb 2014 08:47:31 +0000 (08:47 +0000)]
Add plot selector

10 years agoConvert logger to use threads
Andy Spencer [Fri, 14 Feb 2014 08:07:48 +0000 (08:07 +0000)]
Convert logger to use threads

10 years agoSplit Xively streams and debug upload
Andy Spencer [Fri, 14 Feb 2014 07:12:40 +0000 (07:12 +0000)]
Split Xively streams and debug upload

10 years agoFinish up
Andy Spencer [Thu, 13 Feb 2014 00:29:21 +0000 (00:29 +0000)]
Finish up

10 years agoDebugging..
Andy Spencer [Wed, 12 Feb 2014 21:38:19 +0000 (21:38 +0000)]
Debugging..

10 years agoUpdate from Yue, and add rate column
Andy Spencer [Wed, 12 Feb 2014 20:22:53 +0000 (20:22 +0000)]
Update from Yue, and add rate column

10 years agoAdd report
Andy Spencer [Wed, 12 Feb 2014 20:09:44 +0000 (20:09 +0000)]
Add report

10 years agoMove timer to main
Andy Spencer [Wed, 12 Feb 2014 05:45:48 +0000 (05:45 +0000)]
Move timer to main

10 years agoAdd A2D signaling
Andy Spencer [Tue, 11 Feb 2014 01:09:24 +0000 (01:09 +0000)]
Add A2D signaling

10 years agoAdd initial plotting
Andy Spencer [Tue, 11 Feb 2014 01:07:27 +0000 (01:07 +0000)]
Add initial plotting

10 years agoUse serial.isWaiting() function
Andy Spencer [Mon, 10 Feb 2014 02:21:35 +0000 (02:21 +0000)]
Use serial.isWaiting() function

Also remove old debugging code

10 years agoFix typo
Andy Spencer [Mon, 10 Feb 2014 01:59:35 +0000 (01:59 +0000)]
Fix typo

10 years agoSwitch to #pramga pack() for portability
Andy Spencer [Mon, 10 Feb 2014 01:38:27 +0000 (01:38 +0000)]
Switch to #pramga pack() for portability

10 years agoMore bug fixes..
Andy Spencer [Mon, 10 Feb 2014 01:26:10 +0000 (01:26 +0000)]
More bug fixes..

10 years agoGet things running
Andy Spencer [Mon, 10 Feb 2014 00:56:26 +0000 (00:56 +0000)]
Get things running

10 years agoGet things running
Andy Spencer [Mon, 10 Feb 2014 00:54:51 +0000 (00:54 +0000)]
Get things running

10 years agoFix whitespace error
Andy Spencer [Sun, 9 Feb 2014 20:24:48 +0000 (20:24 +0000)]
Fix whitespace error

10 years agoAdd debug LED
Andy Spencer [Sun, 9 Feb 2014 20:24:39 +0000 (20:24 +0000)]
Add debug LED

10 years agoUpdate main file add DMA code
Andy Spencer [Sun, 9 Feb 2014 10:11:58 +0000 (10:11 +0000)]
Update main file add DMA code

10 years agoPull changes from Yue
Andy Spencer [Sun, 9 Feb 2014 05:54:00 +0000 (05:54 +0000)]
Pull changes from Yue

10 years agoSupport Python 2.7 and GTK+2
Andy Spencer [Tue, 4 Feb 2014 06:54:03 +0000 (06:54 +0000)]
Support Python 2.7 and GTK+2

10 years agoSwitch to 921600 baud rate
Andy Spencer [Tue, 4 Feb 2014 06:27:09 +0000 (06:27 +0000)]
Switch to 921600 baud rate

10 years agoWork on writing settings to devices
Andy Spencer [Tue, 4 Feb 2014 00:52:37 +0000 (00:52 +0000)]
Work on writing settings to devices

10 years agoSave control options
Andy Spencer [Tue, 4 Feb 2014 00:35:05 +0000 (00:35 +0000)]
Save control options

10 years agoFix mag and update rate limit
Andy Spencer [Mon, 3 Feb 2014 23:49:00 +0000 (23:49 +0000)]
Fix mag and update rate limit

10 years agoUpdate from Yue
Andy Spencer [Mon, 3 Feb 2014 21:55:49 +0000 (21:55 +0000)]
Update from Yue

10 years agoFlush pending input data from device
Andy Spencer [Mon, 3 Feb 2014 08:02:52 +0000 (08:02 +0000)]
Flush pending input data from device

10 years agoAdd flush button
Andy Spencer [Mon, 3 Feb 2014 08:01:32 +0000 (08:01 +0000)]
Add flush button

10 years agoAdd Xively upload
Andy Spencer [Mon, 3 Feb 2014 07:55:44 +0000 (07:55 +0000)]
Add Xively upload

- Also update some settings
- Also disconnect on exit

10 years agoUpdate settings
Andy Spencer [Mon, 3 Feb 2014 06:38:04 +0000 (06:38 +0000)]
Update settings

10 years agoAdd test code and xively exmaple
Andy Spencer [Mon, 3 Feb 2014 04:17:38 +0000 (04:17 +0000)]
Add test code and xively exmaple

10 years agoSwitch to Python 3 and Gtk 3
Andy Spencer [Mon, 3 Feb 2014 01:55:14 +0000 (01:55 +0000)]
Switch to Python 3 and Gtk 3

10 years agoRename xively to logger
Andy Spencer [Mon, 3 Feb 2014 00:36:29 +0000 (00:36 +0000)]
Rename xively to logger

10 years agoSet fixed size labels
Andy Spencer [Sun, 2 Feb 2014 09:13:01 +0000 (09:13 +0000)]
Set fixed size labels

10 years agoAdd device name
Andy Spencer [Sun, 2 Feb 2014 09:09:45 +0000 (09:09 +0000)]
Add device name

10 years agoAdd serial interface
Andy Spencer [Sun, 2 Feb 2014 09:02:43 +0000 (09:02 +0000)]
Add serial interface

10 years agoRename serial to device and clean up
Andy Spencer [Sun, 2 Feb 2014 00:54:53 +0000 (00:54 +0000)]
Rename serial to device and clean up

10 years agoAdd settings
Andy Spencer [Sun, 2 Feb 2014 00:35:37 +0000 (00:35 +0000)]
Add settings

10 years agoAdd template UI
Andy Spencer [Sat, 1 Feb 2014 22:50:58 +0000 (22:50 +0000)]
Add template UI

10 years agoFix warning
Andy Spencer [Sat, 1 Feb 2014 05:17:08 +0000 (05:17 +0000)]
Fix warning

10 years agoAdd sensors code from Yue
Andy Spencer [Sat, 1 Feb 2014 05:14:27 +0000 (05:14 +0000)]
Add sensors code from Yue

10 years agoUpdate makefiles
Andy Spencer [Sat, 1 Feb 2014 05:11:09 +0000 (05:11 +0000)]
Update makefiles

10 years agoAdd initial hw1 stuff
Andy Spencer [Fri, 31 Jan 2014 05:27:13 +0000 (05:27 +0000)]
Add initial hw1 stuff