One way is to install and use the python-serial module.yenyu88 wrote:how am I able to open the port and read specific data from the port using Pyhton source code?
Code: Select all
sudo apt-get install python-serial
yenyu88 wrote:Hi guys,
Currently I'm doing my final year project with the use of Raspberry Pi.
Concept: Energy Monitoring using Raspberry Pi.
I've bought myself a Raspberry Pi and a Energy Monitoring Set. Since the Energy monitoring has a USB output to connect to a computer, but rather to save cost in a long run, I'm connecting it to a Raspberry Pi which is using a different OS platform. Thus I'm enquiring on how am I able to read out the data and store it in a file and finally graph it out into charts/graph in terms of 1-Hour, 6-Hours, 24-hours and even a week usage.
I've setup my basic Raspberry Pi, and tried googling about this topic but it isn't that clear, and would like to seek insight on this function with the use of python language.
Thanks all for the insight in advance.
Newbie Raspberry Pi User,
is a very common standard usb-to-serial chip. It doesn't tell you what hardware you are connecting.Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port.
then you may be able to see if this has been done before and follow that example.Energy Monitoring Set