Barre
February 2nd, 2006, 06:00 AM
Hi.
I’m quite new to linux (have the basic administration skills but completely new when it comes to programming)
I’m in the progress of replacing windows on all my computers at home and currently I’m running one fedora and two ubuntu but one windows machine is still going strong and is hard to shutdown.
I have created a temperature sensor using the DS1621 IC (uses i2c for communication) and attached that to my serial port on my windows machine, I’ve created a small VB program that communicates with the i2c devices and logs the temperatures in a text file.
In order for me to completely remove windows from home I need to replace that program so my questions is:
• can I use lm_sensors and configure it to use the com port and run i2c? (I know I should read the man pages, but maybe some kind soul already knows the answer…)
• Can anyone point me to a source where I can learn how to create a program/script to emulate i2c through the com port, or do I need to create a device driver in order to get the com port to use i2c instead of rs232?
never mind that the rs232 uses 12V (or atleast I think it's 12V), My device fixes the signal to 5V according to i2c spec...
I have some programming knowledge in c, (c++), php, VB and just starting to dive into perl.
Cheers…
I’m quite new to linux (have the basic administration skills but completely new when it comes to programming)
I’m in the progress of replacing windows on all my computers at home and currently I’m running one fedora and two ubuntu but one windows machine is still going strong and is hard to shutdown.
I have created a temperature sensor using the DS1621 IC (uses i2c for communication) and attached that to my serial port on my windows machine, I’ve created a small VB program that communicates with the i2c devices and logs the temperatures in a text file.
In order for me to completely remove windows from home I need to replace that program so my questions is:
• can I use lm_sensors and configure it to use the com port and run i2c? (I know I should read the man pages, but maybe some kind soul already knows the answer…)
• Can anyone point me to a source where I can learn how to create a program/script to emulate i2c through the com port, or do I need to create a device driver in order to get the com port to use i2c instead of rs232?
never mind that the rs232 uses 12V (or atleast I think it's 12V), My device fixes the signal to 5V according to i2c spec...
I have some programming knowledge in c, (c++), php, VB and just starting to dive into perl.
Cheers…