rdmenezes / measureit

Automatically exported from code.google.com/p/measureit
0 stars 0 forks source link

Interference issue with the USB cable #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. /usr/bin/python /usr/local/measureit/python/data-input.py test
2. /usr/bin/python /usr/local/measureit/python/data-input.py debug
3.

What is the expected output? What do you see instead?

Data collection should start but the following error is generated

  File "/usr/local/measureit/python/data-input.py", line 5
    <!DOCTYPE html>
    ^
SyntaxError: invalid syntax

What version of the product are you using? On what operating system?

Version 115 on Ubuntu 13.04

Please provide any additional information below.

The web page works but the figures don't update although the temperature and 
current watt fields flash red regularly.

I can open the USB port with Putty and see a representation of the data coming 
in.

This is the output from 

http://YOUR-CURRENT_URL/php/measureit_functions.php?do=navigation_main

{"0":{"sensor":{"x":"c3af969ae4381505a11d99019abcc08d807f003c","sensor_id":"0","
sensor_title":"Sensor 
0","sensor_clamp":"0","position_id":"1","position_time":"2013-09-08 
12:58:30","position_description":"start 
position","position_sensor":"0","measure_history":"365","measure_currency":"AUD"
,"measure_sensor":"0","measure_range":"","measure_timeframe":"0","measure_timezo
ne":"GMT0","measure_timezone_diff":"0","measure_type":"0","measure_pvoutput_id":
"24144","measure_pvoutput_api":"c3af969ae4381505a11d99019abcc08d807f003c","posit
ions":{"1":{"position":"1","time":"2013-09-08 12:58:30","description":"start 
position"}},"clamps":{"10":"Start1"}}},"10":{"sensor":{"x":"c3af969ae4381505a11d
99019abcc08d807f003c","sensor_id":"10","sensor_title":"Consumption","sensor_clam
p":"0","position_id":"2","position_time":"2013-10-17 
19:13:50","position_description":"Start1","position_sensor":"10","measure_histor
y":"365","measure_currency":"AUD","measure_sensor":"10","measure_range":"","meas
ure_timeframe":"0","measure_timezone":"GMT0","measure_timezone_diff":"10","measu
re_type":"0","measure_pvoutput_id":"24144","measure_pvoutput_api":"c3af969ae4381
505a11d99019abcc08d807f003c","positions":{"2":{"position":"2","time":"2013-10-17
 19:13:50","description":"Start1"}}}}}

Original issue reported on code.google.com by foz...@gmail.com on 17 Oct 2013 at 11:28

GoogleCodeExporter commented 9 years ago
What hardware are you using?

In the XML I have never seen a <!DOCTYPE html>

Original comment by lalelu...@gmail.com on 17 Oct 2013 at 4:40

GoogleCodeExporter commented 9 years ago
It turns out that somehow the date-input.py in my server had been changed.

After downloading the version from here

http://code.google.com/p/measureit/source/browse/#svn%2Ftrunk%2Fmeasureit_system
_files%2Fpython

(and resolving an interference issue with the USB cable) I was able to get 
results.

Original comment by foz...@gmail.com on 18 Oct 2013 at 6:34

GoogleCodeExporter commented 9 years ago
It looks like that you are using some software like webmin that will do this?
It is not a good idea to use these tools. It is ok to learn but not for use on 
productive systems :)

What kind of issue do you have with the USB cable?

Original comment by lalelu...@gmail.com on 9 Nov 2013 at 1:43

GoogleCodeExporter commented 9 years ago
When I run the usb cable to close to the powerboards the output from the USB 
port is garbled. When I move the cable to that it is away from that area the 
data comes through fine. I am guess that something is creating RF that is 
interfering with the data feed.

Original comment by foz...@gmail.com on 10 Nov 2013 at 10:13

GoogleCodeExporter commented 9 years ago
OK. No problems with measureit :)

Thanks for your feedback

Original comment by lalelu...@gmail.com on 10 Nov 2013 at 12:14