Author Topic: Agilent n5181a Software Upgrade / Hack  (Read 7423 times)

0 Members and 1 Guest are viewing this topic.

Offline KarnatheTopic starter

  • Contributor
  • Posts: 14
  • Country: zw
Agilent n5181a Software Upgrade / Hack
« on: February 28, 2025, 04:06:02 pm »
Hello,

I have a (hopefully) working Agilent n5181a rf Signal Generator and would like to hack in some extra software options. Does anyone know of functioning software / methods to do this? I looked around online but did not see anything obvious.

Keysight link to the equipment: https://www.keysight.com/us/en/product/N5181A/mxg-rf-analog-signal-generator-100-khz-to-6-ghz.html
 

Offline PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5510
  • Country: nl
Re: Agilent n5181a Software Upgrade / Hack
« Reply #1 on: February 28, 2025, 04:45:46 pm »
Since the product status is obsolete I don't mind having a look. Do you have any active options where you can see the key? Does it have a HOSTID?
Keyboard error: Press F1 to continue.
 

Offline KarnatheTopic starter

  • Contributor
  • Posts: 14
  • Country: zw
Re: Agilent n5181a Software Upgrade / Hack
« Reply #2 on: March 07, 2025, 10:39:28 pm »
Sorry for this very late reply.

Since the product status is obsolete I don't mind having a look. Do you have any active options where you can see the key? Does it have a HOSTID?


I have attached a few images, not sure if it is what you need. I have censored my serial, message me if you need it. I assume this forum has DM's.
If I have not found what you need, please guide me to it. This is all from the utility menu.
 

Online squadchannel

  • Super Contributor
  • ***
  • Posts: 1273
  • Country: jp
  • deepl translate user
Re: Agilent n5181a Software Upgrade / Hack
« Reply #3 on: March 07, 2025, 11:45:35 pm »
I also have an N5181A.
I looked into this before and if I am not misinterpreting, need to replace the A3 RF board to add options other than UNT/UNU (FM AM PM option). The parts number is listed in the service manual. I am not sure what the difference is.

 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3611
  • Country: pt
Re: Agilent n5181a Software Upgrade / Hack
« Reply #4 on: March 08, 2025, 10:01:03 am »
If I have not found what you need, please guide me to it. This is all from the utility menu.

Check the device to see if it has a label on the back or bottom that includes the model number and serial number. This label might also include the Host ID.

If so, send me a pm.
 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3611
  • Country: pt
Re: Agilent n5181a Software Upgrade / Hack
« Reply #5 on: March 08, 2025, 11:10:24 am »
List of options as seen in the FW. (Dependent on each model of this series.)
 

Offline PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5510
  • Country: nl
Re: Agilent n5181a Software Upgrade / Hack
« Reply #6 on: March 08, 2025, 11:34:58 am »
Since tv84 jumped in I'll just watch this thread for now.
Keyboard error: Press F1 to continue.
 

Online squadchannel

  • Super Contributor
  • ***
  • Posts: 1273
  • Country: jp
  • deepl translate user
Re: Agilent n5181a Software Upgrade / Hack
« Reply #7 on: March 08, 2025, 11:56:09 am »
send PM ;)
 

Offline KarnatheTopic starter

  • Contributor
  • Posts: 14
  • Country: zw
Re: Agilent n5181a Software Upgrade / Hack
« Reply #8 on: March 08, 2025, 10:41:44 pm »
I have sent a DM.
 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3611
  • Country: pt
Re: Agilent n5181a Software Upgrade / Hack
« Reply #9 on: March 09, 2025, 11:49:33 am »
@PA0PBZ, need your help. :)

This is what we need to recreate:

FEATURE 501 aspk 1.0 permanent 0 63A7F5F2744A6ECB HOSTID=N5181A,MFG0000001 #1 GHz frequency range
FEATURE 503 aspk 1.0 permanent 0 D240E450C8227F4D HOSTID=N5181A,MFG0000001 #3 GHz frequency range
FEATURE 506 aspk 1.0 permanent 0 74D831FDECE46AAF HOSTID=N5181A,MFG0000001 #6 GHz frequency range
 

Offline PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5510
  • Country: nl
Re: Agilent n5181a Software Upgrade / Hack
« Reply #10 on: March 09, 2025, 01:24:56 pm »

This is what we need to recreate:

That looks like the newer (more difficult) lmcrypt format, 128 bit key.. I don't think we ever did that?
Keyboard error: Press F1 to continue.
 

Offline KarnatheTopic starter

  • Contributor
  • Posts: 14
  • Country: zw
Re: Agilent n5181a Software Upgrade / Hack
« Reply #11 on: March 14, 2025, 07:39:32 pm »
Hello all, I have (maybe) figured out how to talk to this wretched instrument. Instructions follow:
Plug in via ethernet into your router
Find it's IP address (your router should have it listed)
If you are on windows, you need to enable telnet (https://phoenixnap.com/kb/telnet-windows)
open cmd, type telnet then its ip then SPACE not : and type 5023
For me, the command is telnet 10.0.0.39 5023
This will get you to this lovely page included in attachments.
Check the agilent / keysight Manual_N5180-90004(SCPI_command) for the commands, but the tldr is
if it is lowercase, it does not matter
this instrument is picky about commands. If you type it wrong, it will give you nothing, press ctrl+c to reset. Check the error screen either on the instrument or on its interactive menu on its webpage, see attached image.
finally, the command you want is: :SYST:LIC:LIST? which will return all licenses on the instrument, as well as I think what the very helpful people in this thread needed.

Last note, if you go to its IP address in a web browser it will return a lovely menu which will be very helpful. If you don't want to mess around with windows command prompt try putty, specify telnet and port 5023.
 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3611
  • Country: pt
Re: Agilent n5181a Software Upgrade / Hack
« Reply #12 on: March 14, 2025, 08:57:43 pm »
Nice! Then the possible way to insert the licenses is probably also via SCPI command.
 

Offline KarnatheTopic starter

  • Contributor
  • Posts: 14
  • Country: zw
Re: Agilent n5181a Software Upgrade / Hack
« Reply #13 on: March 14, 2025, 09:11:00 pm »
Yes, let me include a screen shot of the relevant command.
 
The following users thanked this post: tv84

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3611
  • Country: pt
Re: Agilent n5181a Software Upgrade / Hack
« Reply #14 on: March 14, 2025, 10:19:30 pm »
Yes, let me include a screen shot of the relevant command.

 :-+ Now we just need to find out the seeds...  ::)
 

Offline KarnatheTopic starter

  • Contributor
  • Posts: 14
  • Country: zw
Re: Agilent n5181a Software Upgrade / Hack
« Reply #15 on: March 14, 2025, 10:20:33 pm »
Is that not included in the license info I sent you? Or does that not come from me.
 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3611
  • Country: pt
Re: Agilent n5181a Software Upgrade / Hack
« Reply #16 on: July 21, 2025, 10:22:59 pm »
That looks like the newer (more difficult) lmcrypt format, 128 bit key.. I don't think we ever did that?

We hadn't...

But this is a "fake" lmcrypt. The only thing that looks the same is the license string.  They use simple hashing to create the license.  :popcorn:

As a PoC I attach all the options for the standard factory device S/N MFG0000001.

Edit: Nov. 11th, 2025 - I patched my keygen in order to make correct MFG0000001 licenses (see new attached file). Not all user's HOSTIDs need that keygen patch...  :-//  :-[
Edit: Nov. 12th, 2025 - Corrected my keygen with a detail I had bypassed. No need for patches anymore.   |O
« Last Edit: November 12, 2025, 09:12:07 pm by tv84 »
 
The following users thanked this post: G0HZU

Offline darryllll

  • Newbie
  • Posts: 5
  • Country: us
Re: Agilent n5181a Software Upgrade / Hack
« Reply #17 on: November 11, 2025, 01:14:25 am »
Hey tv, has the hashing formula ever been figured out?
 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3611
  • Country: pt
Re: Agilent n5181a Software Upgrade / Hack
« Reply #18 on: November 11, 2025, 10:49:37 pm »
Hey tv, has the hashing formula ever been figured out?

Yes.
 

Offline ua4yhz

  • Regular Contributor
  • *
  • Posts: 90
  • Country: 00
Re: Agilent n5181a Software Upgrade / Hack
« Reply #19 on: November 12, 2025, 10:08:45 am »
At the time of manufacture, these devices do not have a model number.
The model number is calculated based on the installed options each time the device is turned on.
The model number, options, and settings are stored in two flash memory chips: block A3 (RF assembly) and block A5 (processor).
This allows them to automatically recover from any failures.
« Last Edit: November 12, 2025, 10:26:02 am by ua4yhz »
 

Offline darryllll

  • Newbie
  • Posts: 5
  • Country: us
Re: Agilent n5181a Software Upgrade / Hack
« Reply #20 on: November 12, 2025, 10:14:20 pm »
I'm assuming the keygen isn't currently public?
 

Offline ua4yhz

  • Regular Contributor
  • *
  • Posts: 90
  • Country: 00
Re: Agilent n5181a Software Upgrade / Hack
« Reply #21 on: November 13, 2025, 02:11:52 pm »
I'm assuming the keygen isn't currently public?
Typically, it becomes available after the equipment is no longer in production or service.
We can revisit this topic in about five years.
« Last Edit: November 13, 2025, 10:31:16 pm by ua4yhz »
 

Offline ua4yhz

  • Regular Contributor
  • *
  • Posts: 90
  • Country: 00
Re: Agilent n5181a Software Upgrade / Hack
« Reply #22 on: November 13, 2025, 09:50:30 pm »
Edit: Nov. 11th, 2025 - I patched my keygen in order to make correct MFG0000001 licenses (see new attached file). Not all user's HOSTIDs need that keygen patch...  :-//  :-[
Edit: Nov. 12th, 2025 - Corrected my keygen with a detail I had bypassed. No need for patches anymore.   |O

You are using
FUNCTION 501 aspk 1.0 constant 0 63A7F5F2744A6ECB HOSTID=N5181A,MFG0000001
The datasheet uses
FUNCTION 501 aspk 0 constant 0 63A7F5F2744A6ECB HOSTID=N5181A,MFG0000001
Sorry. My stupid question... I didn't mean to break your newly debugged code again.
« Last Edit: November 13, 2025, 10:13:39 pm by ua4yhz »
 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3611
  • Country: pt
Re: Agilent n5181a Software Upgrade / Hack
« Reply #23 on: November 13, 2025, 10:59:03 pm »
You are using
FUNCTION 501 aspk 1.0 constant 0 63A7F5F2744A6ECB HOSTID=N5181A,MFG0000001
The datasheet uses
FUNCTION 501 aspk 0 constant 0 63A7F5F2744A6ECB HOSTID=N5181A,MFG0000001
Sorry. My stupid question... I didn't mean to break your newly debugged code again.

You didn't broke my code.  ;)   You broke the datasheet!   ;D

As you can easily research, the FLEXlm uses a version number in that position. It would never be just "0".

Nonetheless, I attach a dump from a U4 chip (on a N5181A) for you to have a look. Nice catch, BTW.
 

Offline 44kgk1lkf6u

  • Regular Contributor
  • *
  • Posts: 154
  • Country: 00
Re: Agilent n5181a Software Upgrade / Hack
« Reply #24 on: November 14, 2025, 01:47:27 am »
I'm assuming the keygen isn't currently public?
Typically, it becomes available after the equipment is no longer in production or service.
We can revisit this topic in about five years.

Why do people wait that long to post it?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->