|
Hello Manasi and welcome to CodeProject!
For you question, I only have to say that some motherboards do not support measuring CPU temperature, so I suggest that you go to the manufacturer website (or the manual if you have it) and check that first.
Other than that, I don't think I can help much as I've never had the need to check the CPU temperature programatically.
P.S. change your display name to something more descriptive than a blank space
|
|
|
|
|
Thank you for your reply..will check the manual..and have changed the display name as well
|
|
|
|
|
1) The onboard CPU temperature monitoring circuitry is notroiously unreliable and inaccurate.
2) Just find and download a problem like Motherboard Monitor. It will also report system fan speeds and stuff like that.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
MBM hasn't been updated for new chipsets in several years. The current replacement is a program called speedfan.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
WMI will only work if the MoBo manufacturer has supplied WMI Providers to allow WMI to get at that kind of data. Most manufacturers do NOT supply this stuff. Again, check with the manufacturer for some kind of management software package.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hello,
I have an old Panasonic KX-P2023 dot matrix printer. Whenever I print from a Windows program, it prints in letter-quality mode with proportional fonts, but I would prefer it to print in DOS mode.
I am able to get it to print in DOS mode from a command prompt using the "print" command, but how can I configure windows ( or maybe the print driver ) so that it will print in DOS mode from Visual Studio, and other GUI programs?
Thanks a lot,
Rich
--------------------------------
"All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
|
|
|
|
|
I think you're looking for this[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi Dave,
Thank you for that, very much.
I was looking for something more along the lines of a way to set the print options in Windows so that the printer would operate in DOS mode automatically from any application.
I appreciate you taking the time to answer my post,
Rich
--------------------------------
"All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
|
|
|
|
|
Richie308 wrote: would operate in DOS mode automatically from any application.
There's no such thing. About the best you're going to get is to install the Generic Text Only printer (Start/Settings/Printers/Add) and not use the driver specifically for your printer.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
I've recently upgraded my (Dell Inspiron 8500 - about 3 years old) laptop's internal hard drive to a 160GB Seagate. I've had it for a few months now and every month or so when booting it would get passed the POST, then leave me with a flashing underscore in the top left. Windows wouldn't start (even after playing with fixmbr and fixboot in the recovery console) so I've had to reinstall. This has happened twice since I installed it.
After playing around and trying to think of reasons why this was happening, I noticed that the BIOS reported the size of the hard drive as 137GB and not the full 160GB (not even the 149GB after formatting). After some googling I'm fairly certain it's because of a lack of 48bit LBA support (ATA-6). This seems to be fixed in most cases by upgrading the BIOS (i'm on v3 currently and the newest available is v8, so it should, hopefully, work).
I am a little anxious about performing a BIOS flash because if it were to go wrong I'd be left with an expensive paper-weight, wouldn't I? What's your experience with upgrading BIOSs?
The program that performs the flash is advertised as being able to be run straight from Windows (and it will shut down, reboot, flash, then reboot for you) or from a bootable pure DOS disk. Are there advantages to the latter technique? I've heard people say that it's safer, but I can't really see why.
Many thanks for any help
Will.
“Accept that some days you are the pigeon, and some days you are the statue” -- David Brent
|
|
|
|
|
I've never had a problem doing a bios flash. the only advantage of a floppy flash is that youdon't run te risk of if failing due to a BSOD elsewhere in the system, from win2k forward that isn't a major concern although I would recommend closing all your existing apps first.
For a desktop you can generally get the mobo maker to send a replacement chip for a small ($10ish) fee/deposit. for a laptop though I suspect you may have to send it back to the manufacturer.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
Thanks for the reply,
dan neely wrote: For a desktop you can generally get the mobo maker to send a replacement chip for a small ($10ish) fee/deposit. for a laptop though I suspect you may have to send it back to the manufacturer.
My laptop's quite a long while out of warranty which is worrying. Hmm I guess I'm just going to have to bite the bullet and just do it
Thanks again,
Will
“Accept that some days you are the pigeon, and some days you are the statue” -- David Brent
|
|
|
|
|
Doing in under Windows is no safer than doing it from a DOS-based boot floppy. I've had BIOS upgrades fail in both cases... and in both cases, it required sending the motherboard back to be replaced. Once a BIOS upgrade fails, chances are your machine will never startup again. As a matter of fact, there's a machine (Dell Optiplex GX260) sitting next to my desk right now that I have to get a new motherboard for because the BIOS upgrade hung for about 2 hours and I finally had to turn the machine off. She didn't startup back up, no POST, no nothing...
If you're going to do a laptop, power the machine completely off, don't hibernate, sleep, soft reboot, shut it down. You want the machine to startup from a powered off condition. Attach it to AC power and make sure the machine is charging the battery. Some BIOS upgrade apps won't do the upgrade if the machine is running on battery power.
Turn the machine on and boot it from the upgrade floppy and continue as per the instructions. Or, if your doing it from Windows, login to the machine, but right after you type your password and hit Neter, hold down the Shift key to stop Windows from loading all the automatic startup junk. You want Windows to be as lean as possible and not be interrupted during the upgrade.
You can take all the precautions in the world, but that's no guarantee that the upgrade won't fail.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks for the tips
Dave Kreskowiak wrote: Attach it to AC power and make sure the machine is charging the battery.
Do you think it would be better to remove the battery and have it run purely on AC power?
Dave Kreskowiak wrote: right after you type your password and hit Neter, hold down the Shift key to stop Windows from loading all the automatic startup junk.
I never knew you could do that - very handy
Dave Kreskowiak wrote: You can take all the precautions in the world, but that's no guarantee that the upgrade won't fail.
Yeah, I guess I'm just going to have to do it hope for the best.
Thanks for all the help,
Will
“Accept that some days you are the pigeon, and some days you are the statue” -- David Brent
|
|
|
|
|
Will Harrower wrote: Do you think it would be better to remove the battery and have it run purely on AC power?
Probably not a good idea. If the power fails during the flash, chances are that the laptop will keep running from the battery.
Will Harrower wrote: Yeah, I guess I'm just going to have to do it hope for the best.
I don't believe the BIOS is the problem of your recurring start-up trouble.
If it was, the boot sequence should fail every time.
We have had this happen with prematurely released "stable" version of several bootmanagers (including both Commercial- and OS-Software): They would accidentally kill the "active"-flag of the Windows partition during startup.
Does the computer boot from a CD if the CD is the primary boot device? If so, try UBCD (Ultimate Boot CD). Does the device exist? If so, try examining the partition table for any oddities.
One other thing: Try reading the HDD's SMART-status (with smartmontools, for example) and see if there are any errors after on of the freezes. The Community is pretty helpful in interpreting the results.
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Hi,
Thanks for the suggestions, I shall look into them soon (I'm a bit busy at the moment with a big coursework project).
Sebastian Schneider wrote: Probably not a good idea. If the power fails during the flash, chances are that the laptop will keep running from the battery.
Very good point, I shall charge it and leave it in.
Sebastian Schneider wrote: I don't believe the BIOS is the problem of your recurring start-up trouble.
If it was, the boot sequence should fail every time.
Really? I did some research into the issue, before I came to the conclusion it was my BIOS, and found this PDF[^] which talks about the introduction of 48bit addressing support in ATA-6. On page 6 in the "Solutions exist!" section:
Solutions exist! Most motherboards have built-in connectors for the hard drive and CD-ROM drives. 40-pin ribbon cables connect the drives to the motherboard. These motherboard connectors are often labeled IDE Channel 0 and Channel 1. They are also called Primary Port and Secondary Port. Both are the same. The system BIOS auto-detects the hard disc drive and issues an inquiry to get the drive's number of LBAs. The largest number it is prepared to receive may be 137GB. In this case you might check with your system manufacturer for a BIOS upgrade. Many namebrand systems have the ability to "flash" the BIOS with new firmware.
This is what my BIOS is doing. It's reading the size of the hard drive as 137GB exactly. Also from the same page of the pdf:
Solutions exist! Without proper support, writing or saving data past the boundary line will wrap around to the front of the file system and overwrite all of your file system information, effectively erasing your drive.
This is the part that made me think it's the problem I'm having - I exceed the 137GB limit and end up writing data over the MBR, etc.
Please say so if you still think I'm wrong about this, but to me it looks like this is the issue I'm having
Many thanks,
Will.
“Accept that some days you are the pigeon, and some days you are the statue” -- David Brent
|
|
|
|
|
Most vendors supply a utility for the bios updates. I've flash updated many boards without incident. Even if things go bad, there is a jumper on the board that will let you reset it to it's original state.
|
|
|
|
|
ednrgc wrote: Even if things go bad, there is a jumper on the board that will let you reset it to it's original state
Tell that to Dell. They don't have dual BIOS support on their desktop machines, at least the ones I've had my hands on. The servers are different story though.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I have built my own back in August and while toying with the Asus supplied monitoring tools and running a multithreaded app of mine I pegged both CPU's at 100% and the temp quickly reached 149F setting off the alarm. My question is, does anyone know the danger temperature on a Pentium D 3.2ghz? (It idles at 103F)
On two occasions I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. - Charles Babbage
|
|
|
|
|
I wouldn't worry about the danger level for your CPU's, just check ASAP whether the heatsink is properly in contact with the chips !!!!!!!
Doug
|
|
|
|
|
That's on the hot side for stock clocking, but is probably just that the PrescHot chips run really hot. I'd guess your mobo has it's warning set conservatively for older cooler chips. If you're pegging at 100% load regularly a larger aftermarket heatsink would probably be a good investment, but otherwise I wouldn't worry.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
Pentiums are known to run very hot. Especially the newer ones.
|
|
|
|
|
1) make sure your heatsinks are properly seated (and while you have them off the CPU, use Arctic Silver 5 thermal compound (remember, don't use too much).
2) Since you're taking the HSF off to check it anyway, I'd get something a bit beefier. If you have the room in your case, check out the Scythe heat sinks that accept a 120mm fan. They rock.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi,
I've written a small command line program to send AT modem commands to a USB-connected GSM modem (in fact it's an old Nokia telephone). We use at work it to send SMS reports. Currently the program is still very much experimental, but has been working well. I followed Allen Denver's MSDN article "Serial Communications in Win32"
So, in my program I would open a handle to the com port to which the modem is connected. Then, I would write each of the following strings in turn, separated by a 2.5 second pause.
1) "AT+CMGF=1\x0D" to indicate SMS mode.
2) "AT+CMGS=\"+44NNNNNNNNNN\"\x0D" to indicated the destination phone number.
3) "SMS Text\x1A\x0D" to indicate the text to send in the message and terminate the message.
Each of these strings is written to the previous file handle within a function I wrote and the return value from this function indicates the success or not of writing the string.
I'm not very experienced in serial comms programming. My question is, how do you tell in code that the modem is ready for input? For example, in HyperTerminal you get the "OK" prompt back. Is this just a feature of HyperTerminal? Am I already doing enough by checking that the string was written successfully? What is the "proper" thing to do after writing the string to the com port to check that the modem is ready for more input?
I am using C++ to write the program under Windows 2000 and XP.
Thanks in advance.
|
|
|
|
|
The 'OK' is part of the modem protocol, it's nothing to do with HyperTerminal.
Elaine
|
|
|
|