I/O Board Programming

431 views
Skip to first unread message

Simon Brown

unread,
Sep 21, 2023, 10:52:05 AM9/21/23
to herme...@googlegroups.com
Hi Jim & Steve,

I'm currently trying to read the I/O Board registers but am failing to get a response from the I/O board. I've copied over the n2adr_basic.uf2, the board rebooted and the green LED is flashing slowly. FWIW I can load new gateware with SDR Console so I know most of my programming logic is correct. I'm following the logic in n2adr_ioboard.pyw, function ReadBoard().
  • When sending commands to the I/O board I first stop and close my connection to the HL2.
  • My HL2 is on 192.168.5.88 port 1024, it receives well.
  • The send completes without error.
An example of the 60 byte message I send to read the contents of register at address 4 is:
Sent 60 bytes to 192.168.5.88:1024, xEF-xFE-x05-x7F-xFA-x07-x1D-x04-x00- (all zeros)

Note: in the python code bit 7 is not set although Protocol · softerhardware/Hermes-Lite2 Wiki (github.com) states that bit 7 must be set - whether set or not makes no difference.

This must be something simple, but what?

Simon Brown

Simon Brown

unread,
Sep 21, 2023, 10:55:46 AM9/21/23
to herme...@googlegroups.com
Also,

I did add the 1x3 header, actually a 1x5 was supplied so I removed two pins.

From: herme...@googlegroups.com <herme...@googlegroups.com> on behalf of Simon Brown <Si...@sdr-radio.com>
Sent: 21 September 2023 15:51
To: herme...@googlegroups.com <herme...@googlegroups.com>
Subject: I/O Board Programming
 
--
You received this message because you are subscribed to the Google Groups "Hermes-Lite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hermes-lite...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hermes-lite/LNXP123MB250572F9ED750E0A24E8CE26FAF8A%40LNXP123MB2505.GBRP123.PROD.OUTLOOK.COM.

James Ahlstrom

unread,
Sep 22, 2023, 8:40:24 AM9/22/23
to Hermes-Lite
Hello Simon,

To address the IO board on port 1024 you must use the Hermes I2C protocol at address 0x3D. This is just C0 to C4, a few bytes. To send a 60-byte message, use port 1025. I am running out the door to the gym or I would provide more info. But that is the basics.

Also, try my IO board program on GitHub in software/n2adr_ioboard.pyw.

Jim
N2ADR

Simon Brown

unread,
Sep 23, 2023, 1:06:07 AM9/23/23
to James Ahlstrom, Hermes-Lite
Woot! That was simple - I now see the reference to port 1025 in the python code. I'm querying the I/O board, have the Major / Minor version returned correctly.

Onwards and upwards.

From: herme...@googlegroups.com <herme...@googlegroups.com> on behalf of James Ahlstrom <jah...@gmail.com>
Sent: 22 September 2023 13:40
To: Hermes-Lite <herme...@googlegroups.com>
Subject: Re: I/O Board Programming
 
--
You received this message because you are subscribed to the Google Groups "Hermes-Lite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hermes-lite...@googlegroups.com.

Conrad PA5Y

unread,
Sep 23, 2023, 12:28:22 PM9/23/23
to Hermes-Lite

Hello all.

 

Can anybody tell me if the default Hemes Lite 2 firmware is configured to provide the standard clock output from CL1 or CL2? If not what must I do to make it happen. I literally just got the HL2 yesterday and did some basic receiver tests. Tomorrow I have time to do some Phase noise tests with a R&S FSUP Signal source analyser, I would like to check the master clock.

 

I do not know which gateway version is installed, I will do some more reading to figure that out.

 

Regards

 

Conrad PA5Y

 

Conrad PA5Y

unread,
Sep 23, 2023, 1:47:16 PM9/23/23
to Hermes-Lite

I solved this with Thetis, I posted this yesterday.

 

73 Conrad PA5Y

--

You received this message because you are subscribed to the Google Groups "Hermes-Lite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hermes-lite...@googlegroups.com.

Simon Brown

unread,
Sep 24, 2023, 1:57:57 AM9/24/23
to Hermes-Lite
Now setting the I/O board, for first time using HL2 with external antenna - easy to overload, reducing RF Gain solves this as expected. I/O Board is volatile - settings not preserved when power disconnected.

Rock on!

James Ahlstrom

unread,
Sep 24, 2023, 9:06:06 AM9/24/23
to Hermes-Lite
Yes, the IO board has no memory and can not retain settings. The SDR software is supposed to write 1 to REG_CONTROL when it starts, and then write the settings it wants.

Jim
N2ADR

Reply all
Reply to author
Forward
0 new messages