Maker Pro
Maker Pro

serial interfacing

rizvi

Oct 27, 2017
13
Joined
Oct 27, 2017
Messages
13
hello.
i would like to be helped in a serial interfacing problem that i am facing.
i have a ntc thermistor connected to a max 187 analog to digital converter.
the output of adc is fed to max232 driver ic.
rs232 wire is used to carry the data from max232 to the usb port of a laptop.
here is my problem,, i want to read the temperature variation detected by thermistor on pc.
but i am not able to do that.
it seems that the hardware circuit that i have on bread board is not feeding anything to pc.
i have tried writting programs in c as well.
if you please suggest me the easiest way to adress the above said problem.
thankyou.

Screen Shot 2017-11-18 at 8.17.47 PM.png
 

kellys_eye

Jun 25, 2010
6,514
Joined
Jun 25, 2010
Messages
6,514
Coding issue?

The serial port connections aren't 'usual' for such comms - have you configured correctly for those control lines?
 

rizvi

Oct 27, 2017
13
Joined
Oct 27, 2017
Messages
13
i think there are configuration issues.
since the hardware circuit is giving me expected results.
 

dorke

Jun 20, 2015
2,342
Joined
Jun 20, 2015
Messages
2,342
"it seems that the hardware circuit that i have on bread board is not feeding anything to pc"
How did you check this?
Have you used a scope?

The circuit is taken from Maxim App note 827 ,it should work.

Consult the datasheet for sequence of operation and timing the device
 
Last edited:

Minder

Apr 24, 2015
3,478
Joined
Apr 24, 2015
Messages
3,478
Why are you using DSR RTS DTR?
The TX/TX is 2 & 3
Nowadays with high speed peripherals, there is no need for hardware handshake, although it pays to jumper them out at the socket, 1-4-6 and 7-8.
I see that the app note uses abnormal to convention use of the RS232 port.
Any use of the H.W. handshake lines such as this requires that the receiving program has it enabled.
M.
 
Last edited:

dorke

Jun 20, 2015
2,342
Joined
Jun 20, 2015
Messages
2,342
Why are you using DSR RTS DTR?
The TX/TX is 2 & 3
Nowadays with high speed peripherals, there is no need for hardware handshake, although it pays to jumper them out at the socket, 1-4-6 and 7-8.
I see that the app note uses abnormal to convention use of the RS232 port.
Any use of the H.W. handshake lines such as this requires that the receiving program has it enabled.
M.

Because the MAX187 doesn't talk "rs232" !
There are not used as handshake,
rather they "toggle" the "command" lines of the MAX187 and read, bit by bit ,it's output.
 

Minder

Apr 24, 2015
3,478
Joined
Apr 24, 2015
Messages
3,478
Still, the receiving PGM would need to have H.W. handshake enabled, as it is rarely used now in RS232 comm's.
Does a USB RS232 in port or convertor even use it?
M.
 

dorke

Jun 20, 2015
2,342
Joined
Jun 20, 2015
Messages
2,342
Still, the receiving PGM would need to have H.W. handshake enabled, as it is rarely used now in RS232 comm's.
M.

Yes absolutely,it may be easier done in a DOS environment.
The program (and programmer) needs complete access to all com. port lines...
And the knowledge of how to do that;)
 

Minder

Apr 24, 2015
3,478
Joined
Apr 24, 2015
Messages
3,478
OK so how do they enter a USB (2wire) port on a laptop?
It has to be achieved via hardware, if at all.
M.
 

rizvi

Oct 27, 2017
13
Joined
Oct 27, 2017
Messages
13
Yes absolutely,it may be easier done in a DOS environment.
The program (and programmer) needs complete access to all com. port lines...
And the knowledge of how to do that;)

yes i wrote a program in .cmd but everytime the value it returns is zero.
i was thinking if there is any other way to access the hardware using pc apart from writing a pgm in .cmd
 

dorke

Jun 20, 2015
2,342
Joined
Jun 20, 2015
Messages
2,342
Mr. rivizi,
You must have very good karma...;)

Read and implement this (pages 161 till 181),do report back if it works.
 

Minder

Apr 24, 2015
3,478
Joined
Apr 24, 2015
Messages
3,478
i have used a d9 to usb connector.
I still don't see how that is going to work.
Is it one constructed yourself just to steer the H.S. lines or is it a off-the-shelf RS232/USB convertor?
As the latter versions have different configurations in them to take care of the H.S. lines.
M.
 

rizvi

Oct 27, 2017
13
Joined
Oct 27, 2017
Messages
13
Mr. rivizi,
You must have very good karma...;)

Read and implement this (pages 161 till 181),do report back if it works.
thankyou loads for that link. it has something of intrest. i will report as i am hopeful that it is going to work :)
 

rizvi

Oct 27, 2017
13
Joined
Oct 27, 2017
Messages
13
I still don't see how that is going to work.
Is it one constructed yourself just to steer the H.S. lines or is it a off-the-shelf RS232/USB convertor?
As the latter versions have different configurations in them to take care of the H.S. lines.
M.
yes sir it is off the shelf rs232to usb converter, but any ways i am also trying it on pc having a serial port instead of using usb port on laptop.
 

Minder

Apr 24, 2015
3,478
Joined
Apr 24, 2015
Messages
3,478
The method shown appears to rely on using a standard COM port 9 pin D.
A RS232/USB convertor generally only operates on the RX/TX lines,
Probably the only hope of getting it to work is the standard COM port method.
M.
 
Top