jmhdz / currentcostgui

Automatically exported from code.google.com/p/currentcostgui
GNU General Public License v3.0
0 stars 0 forks source link

com port #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
new install of currentcost, running source .py.  Have all pre-req.

however I tried miniterm and see clean data
C:\Python27>python -m serial.tools.miniterm com3 57600
--- Miniterm on com3: 57600,8,N,1 ---
--- Quit: Ctrl+]  |  Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
<msg><src>CC128-v0.15</src><dsb>00678</dsb><time>19:42:59</time><tmprF>84.2</tmp
rF><sensor>0</sensor><id>01898</id><type>1</type><ch1><watts>00184</watts></ch1>
<ch2><watts>00266</watts></ch2></msg>
<msg><src>CC128-v0.15</src><dsb>00678</dsb><time>19:43:05</time><tmprF>84.1</tmp
rF><sensor>0</sensor><id>01898</id><type>1</type><ch1><watts>00183</watts></ch1>
<ch2><watts>00261</watts></ch2></msg>

Diag log
2012-07-06 11:31:52,770 CurrentCost software - v 0.9.30
2012-07-06 11:31:52,770 -------------------------------
2012-07-06 11:31:52,770 python     : version '2.7.2'
2012-07-06 11:31:52,770 numpy      : version '1.6.2'
2012-07-06 11:31:52,770 scipy      : version '0.11.0b1'
2012-07-06 11:31:52,770 matplotlib : version '1.1.1'
2012-07-06 11:31:52,770 wxpython   : version '2.8.12.1 (msw-unicode)'
2012-07-06 11:31:52,770 sqlite     : version '2.6.3'
2012-07-06 11:31:52,772 ENTRY  appInit
2012-07-06 11:31:53,058 ENTRY    connectToDatabase
2012-07-06 11:31:53,059 DEBUG      reading application settings file
2012-07-06 11:31:53,068 ENTRY      drawMyGraphs
2012-07-06 11:31:53,068 DEBUG        Empty hour data collection
2012-07-06 11:31:53,076 EXIT       drawMyGraphs
2012-07-06 11:31:53,076 EXIT     connectToDatabase
2012-07-06 11:31:58,369 ENTRY    onDownloadOnceSerial
2012-07-06 11:31:58,369 DEBUG      currentcostserialconn :: isConnected - 
returning False
2012-07-06 11:31:58,369 DEBUG      creating a new serial connection
2012-07-06 11:31:58,387 DEBUG      last used serial port: COM3
2012-07-06 11:31:59,417 ENTRY      getDataFromCurrentCostMeter
2012-07-06 11:31:59,418 DEBUG        currentcostserialconn :: isConnected - 
returning False
2012-07-06 11:31:59,418 ENTRY        currentcostserialconn :: connect
2012-07-06 11:31:59,418 DEBUG          creating serial connection definition 
using port COM3 and timeout of 5 seconds
2012-07-06 11:31:59,418 DEBUG          Exception - failed to connect
2012-07-06 11:31:59,420 DEBUG          coercing to Unicode: need string or 
buffer, int found
2012-07-06 11:31:59,420 DEBUG          retrying connection using CC128 baud 
rate using port COM3 and timeout of 3 seconds
2012-07-06 11:31:59,420 DEBUG          Exception - failed to connect
2012-07-06 11:31:59,420 DEBUG          coercing to Unicode: need string or 
buffer, int found
2012-07-06 11:31:59,420 EXIT         currentcostserialconn :: connect
2012-07-06 11:31:59,421 ERROR        Failed to connect to CurrentCost meter - 
unknown cause
2012-07-06 11:31:59,421 EXIT       getDataFromCurrentCostMeter
2012-07-06 11:31:59,421 EXIT     onDownloadOnceSerial
2012-07-06 11:32:13,200 DEBUG    currentcostserialconn :: isConnected - 
returning False
2012-07-06 11:32:14,319 ENTRY    currentcostserialconn :: connect
2012-07-06 11:32:14,319 DEBUG      creating serial connection definition using 
port COM3 and timeout of 5 seconds
2012-07-06 11:32:14,319 DEBUG      Exception - failed to connect
2012-07-06 11:32:14,319 DEBUG      coercing to Unicode: need string or buffer, 
int found
2012-07-06 11:32:14,319 DEBUG      retrying connection using CC128 baud rate 
using port COM3 and timeout of 3 seconds
2012-07-06 11:32:14,319 DEBUG      Exception - failed to connect
2012-07-06 11:32:14,321 DEBUG      coercing to Unicode: need string or buffer, 
int found
2012-07-06 11:32:14,321 EXIT     currentcostserialconn :: connect
2012-07-06 11:32:18,615 ENTRY    onDownloadAllSerial
2012-07-06 11:32:18,615 DEBUG      currentcostserialconn :: isConnected - 
returning False
2012-07-06 11:32:18,615 DEBUG      creating a new serial connection
2012-07-06 11:32:18,632 DEBUG      last used COM port: COM3
2012-07-06 11:32:19,690 DEBUG      user entered COM port value: COM3
2012-07-06 11:32:19,690 DEBUG      connecting to serial port
2012-07-06 11:32:19,690 ENTRY      currentcostserialconn :: connect
2012-07-06 11:32:19,690 DEBUG        creating serial connection definition 
using port COM3 and timeout of 5 seconds
2012-07-06 11:32:19,690 DEBUG        Exception - failed to connect
2012-07-06 11:32:19,690 DEBUG        coercing to Unicode: need string or 
buffer, int found
2012-07-06 11:32:19,690 DEBUG        retrying connection using CC128 baud rate 
using port COM3 and timeout of 3 seconds
2012-07-06 11:32:19,690 DEBUG        Exception - failed to connect
2012-07-06 11:32:19,690 DEBUG        coercing to Unicode: need string or 
buffer, int found
2012-07-06 11:32:19,690 EXIT       currentcostserialconn :: connect
2012-07-06 11:32:19,690 ERROR      Failed to connect to CurrentCost meter
2012-07-06 11:32:19,690 ERROR      coercing to Unicode: need string or buffer, 
int found
2012-07-06 11:32:20,763 EXIT     onDownloadAllSerial
2012-07-06 11:32:26,256 ENTRY    currentcostlivedata :: disconnect
2012-07-06 11:32:26,256 EXIT     currentcostlivedata :: disconnect
2012-07-06 11:32:26,269 EXIT   appInit

Original issue reported on code.google.com by viki...@gmail.com on 6 Jul 2012 at 3:35