Author Topic: Agilent 34401A Serial port pints 3 (TX) 5(GND) stuck at 9V on sys (SOLVED)  (Read 936 times)

0 Members and 1 Guest are viewing this topic.

Offline The_Spectrum.A_idiotTopic starter

  • Regular Contributor
  • *
  • Posts: 97
  • Country: cz
Dear All ,

After finally fixing my instrument I have a new issue.

THe serial port regardless of its selected on the I/O between RS232 or GPIB the device directly applies 9V on the TX pin.

Is this normal ? or I am looking at another issue ?

Thanks

Addendum :
Using wrong method to talk to the instrument 

« Last Edit: October 03, 2024, 05:14:35 pm by The_Spectrum.A_idiot »
 

Offline macboy

  • Super Contributor
  • ***
  • Posts: 2289
  • Country: ca
RS232 idles at the high voltage level, so this is normal.
 

Online squadchannel

  • Frequent Contributor
  • **
  • Posts: 276
  • Country: jp
  • deepl translate user
RS-232 protocol, it would be normal operation. There is no problem.

RS-232 detects "0" at positive 3-25V and "1" at nagative 3-25V, not TTL.
 

Offline The_Spectrum.A_idiotTopic starter

  • Regular Contributor
  • *
  • Posts: 97
  • Country: cz
okay , but when I connect a USB to serial device seems to not be happy with said levels.

Do I need so have something else in-between the instrument and the USB to serial device ?

Is the first time I am encountering such issue.
 

Offline jchw4

  • Regular Contributor
  • *
  • Posts: 204
  • Country: 00
okay , but when I connect a USB to serial device seems to not be happy with said levels.

Do I need so have something else in-between the instrument and the USB to serial device ?

Is the first time I am encountering such issue.

https://www.keysight.com/us/en/lib/resources/training-materials/communicating-with-instruments-using-rs232.html

TLDR: you need correct cable.
 
The following users thanked this post: The_Spectrum.A_idiot

Offline The_Spectrum.A_idiotTopic starter

  • Regular Contributor
  • *
  • Posts: 97
  • Country: cz
okay , but when I connect a USB to serial device seems to not be happy with said levels.

Do I need so have something else in-between the instrument and the USB to serial device ?

Is the first time I am encountering such issue.

https://www.keysight.com/us/en/lib/resources/training-materials/communicating-with-instruments-using-rs232.html

TLDR: you need correct cable.

I've made said cable as per the service and user manual and your resource. Is exactly as its shown.

I have a USB to Serial but I think something is up with it. Planning to buy a new USB to serial. 

Let me know any more tips.

Thank you in advance
 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14850
  • Country: de
Many of the USB to seriel adapters (especially the cheap ones) are not providing RS232 levels, but only UART at 3.3 V or 5 V CMOS levels. So one would need a level shifter like a max232 in between to get the correct levels (and AFAIK also an conversion from a +3-12 V to a low and the other way around).
 

Offline mawyatt

  • Super Contributor
  • ***
  • Posts: 3911
  • Country: us
These type cheap RS232 to USB adapters based on 340 chip work fine with our HP and AG34401As, no need for a level shifter. However you do need a Null Modem Adapter between the RS232 to USB tho.

https://www.aliexpress.us/item/2251832395467136.html?spm=a2g0o.order_list.order_list_main.265.54ec1802qwN5Ri&gatewayAdapt=glo2usa

Edit: BTW they also work with our other RS232 instruments, like the Hioki IM3536 and Tonghui TH2830.

Best
« Last Edit: October 03, 2024, 04:04:45 pm by mawyatt »
Curiosity killed the cat, also depleted my wallet!
~Wyatt Labs by Mike~
 

Offline The_Spectrum.A_idiotTopic starter

  • Regular Contributor
  • *
  • Posts: 97
  • Country: cz
Dear All ,

I managed to make it kind of work with this software
https://lygte-info.dk/project/TestControllerInstalling%20UK.html#Starting_TestController

it popped up some errors while operating in remote mode. (550 ,-101,-410,-113)

I will try to get my GPIB interface and see if I get better luck with that.

I will come back with more info later on.
 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14850
  • Country: de
There are serial adaters for RS232 levels and other for CMOS levels.  The needed driver and converter chip alone does not tell - the difference is if they include the converter in addition to the USB-serial chip.

One could check the TX output of the adater to see if one gets a 5 V or more 10 V signal level.  What type of adater is used (maybe a small picture) ?
 
The following users thanked this post: The_Spectrum.A_idiot

Offline mawyatt

  • Super Contributor
  • ***
  • Posts: 3911
  • Country: us
Re: Agilent 34401A Serial port pints 3 (TX) 5(GND) stuck at 9V on sys Startup
« Reply #10 on: October 03, 2024, 05:05:34 pm »
These type cheap RS232 to USB adapters based on 340 chip work fine with our HP and AG34401As, no need for a level shifter. However you do need a Null Modem Adapter between the RS232 to USB tho.

https://www.aliexpress.us/item/2251832395467136.html?spm=a2g0o.order_list.order_list_main.265.54ec1802qwN5Ri&gatewayAdapt=glo2usa

Edit: BTW they also work with our other RS232 instruments, like the Hioki IM3536 and Tonghui TH2830.

Best

Should mention that we talk to all these instruments with these cheap adapters directly with Python using standard commands as outlined in the Instruments Manuals.

Here's an example:

https://www.eevblog.com/forum/testgear/lcr-meter-plot-software/

https://www.eevblog.com/forum/testgear/lcr-meter-plot-software/?action=dlattach;attach=1766627

Best
« Last Edit: October 03, 2024, 05:14:02 pm by mawyatt »
Curiosity killed the cat, also depleted my wallet!
~Wyatt Labs by Mike~
 
The following users thanked this post: The_Spectrum.A_idiot

Offline The_Spectrum.A_idiotTopic starter

  • Regular Contributor
  • *
  • Posts: 97
  • Country: cz
Re: Agilent 34401A Serial port pints 3 (TX) 5(GND) stuck at 9V on sys Startup
« Reply #11 on: October 03, 2024, 05:11:59 pm »
There are serial adaters for RS232 levels and other for CMOS levels.  The needed driver and converter chip alone does not tell - the difference is if they include the converter in addition to the USB-serial chip.

One could check the TX output of the adater to see if one gets a 5 V or more 10 V signal level.  What type of adater is used (maybe a small picture) ?

The whole idea was to use Node-red and serial option to query the instrument every second to get the value.

This software https://lygte-info.dk/project/TestControllerInstalling%20UK.html#Starting_TestController

Running on a RPI with the logging feature now logging the resistance values on the meter measuring a 1M resistor.

it may show up some errors but as long as I get my data I am happy.

The cable I used was a custom one and an off the shelf one.

Both USB to Serial adapters worked as expected the issue was trying to use putty and ExtraPuttyTel to interrogate the instrument.

With the software mentioned above all works as expected.

The picture you requested :D


Thank you everyone again for your help :D

P.S :
My GPIB modem is NI GPIB-USB-HS As I understand is limited support outside of the NI( national instruments software )
 

Offline mawyatt

  • Super Contributor
  • ***
  • Posts: 3911
  • Country: us
Re: Agilent 34401A Serial port pints 3 (TX) 5(GND) stuck at 9V on sys (SOLVED)
« Reply #12 on: October 03, 2024, 05:34:44 pm »
We started our development of the above mentioned LCR Plotting Routines on a RPI, then ported to a PC under Windows 10.

Got this working, and we are not good at software, firmware and coding, so you should be able to do this without too much effort!!

BTW believe the RS232 Standard is the most Non-Standard Standard ever, with all the various levels, connectors, cables and such :o

Good luck with your revived 34401A :-+

Best
« Last Edit: October 03, 2024, 05:40:45 pm by mawyatt »
Curiosity killed the cat, also depleted my wallet!
~Wyatt Labs by Mike~
 
The following users thanked this post: The_Spectrum.A_idiot

Offline The_Spectrum.A_idiotTopic starter

  • Regular Contributor
  • *
  • Posts: 97
  • Country: cz
Re: Agilent 34401A Serial port pints 3 (TX) 5(GND) stuck at 9V on sys (SOLVED)
« Reply #13 on: October 04, 2024, 01:28:48 pm »
Another question ,

How long should I let the logger run ?

Already the resistance started drifting downwards (initial value 995.2525K - now  995.1699K) (it's only being a day) ,

Should I let it run longer ? Or rather a better question would be , when should I stop ?

Thanks
 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14850
  • Country: de
Re: Agilent 34401A Serial port pints 3 (TX) 5(GND) stuck at 9V on sys (SOLVED)
« Reply #14 on: October 04, 2024, 05:00:24 pm »
The warm up time for a meter like the 34401 (no fan) should be in the 2 hour range. So to capture the full warm up, from initially cold to largely stable temperature this would be some 3 or 4 hours. So 1 day is plenty for the simple thermal effect. Humitidy efffects can be slower and take a few days, but I don't hing this is where you are interested in.

Ideally set up the DUT and let it settle from handling well before turning on the meter, so that the transient is from the meter and not so much the DUT.

 

Offline The_Spectrum.A_idiotTopic starter

  • Regular Contributor
  • *
  • Posts: 97
  • Country: cz
Re: Agilent 34401A Serial port pints 3 (TX) 5(GND) stuck at 9V on sys (SOLVED)
« Reply #15 on: October 04, 2024, 05:03:57 pm »
The DUT was on the table for a day before on the alligator clips I just plugged the wires after dealing with the logging issue :D

So in essence both of your recommendations unknowingly were performed :D
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf