¿ªÔÆÌåÓý

Date

Re: Frequency calibration on a lab #bfo #calibration #frequency

 

Thanks Loris,

You explained very clearly! I have access to some laboratory equipment on a limited basis, so knowing in advance which method will be better suited grants me the better use of them!

73 de PU1OWL
Rafael


Re: Different Nano's

 

Mark - that's right - I forgot about the connector - as you can see I don't have that problem with my homebrew rig - hi, hi!

?

Not sure what the port on the V6 looks like from the inside - what I did on my V5 (which did not come with a case) is just cut a patch cable in half and connected up the TX, RX, 5V and GND to the back side of a USB 2 jack.? Search ebay for "usb micro to a female panel mount" and a bunch come up.

Dean
KK4DAS

Dean
KK4DAS


Re: Frequency calibration on a lab #bfo #calibration #frequency

 

P.S. Rafael,?
the laboratory measurement of the BFO is a little more complex operation, you consider that CLK2 is fixed to receive the USB, so it must be 1.5 KHz lower than the center frequency of the quartz filter, considering again that it is impossible obtain perfect filters using a Ladder Filter with quartzes that have the same frequency and fixed capacitors, for the reason that the quartzes are slightly different from each to other and the capacitors have a factory tolerance, so the quartz filters will be different for each ?BITX sold,
A laboratory measurement method is to firsth obtain the attenuation curve of the filter using a network analyzer (using the two connectors for the additional CW filter) and find the two attenuation frequencies at -3dB; calculate the bandwidth and find the frequenzy of center of your filter; turn on the ?BITX and measure the CLK2 with a good frequency meter, calibrate the BFO frequency by fixing it as exactly as possible at a frequency equal to -1.5KHz with respect to the central frequency of the filter.
This should be the measurement method theoretically, but I have not used it, so I cannot guarantee the final effect of the sound in the loudspeaker, when you listen to a signal on the antenna.
73 de

IW4AJR Loris


Re: Frequency calibration on a lab #bfo #calibration #frequency

 

Hi Rafael
Pay attention to USB and LSB, in the ?BITX-V6 the CLK2 is fixed, while the CLK1 switches from about 57 MHz to about 37MHz according to the selection of the side band used.
The documentation released for the tarutures, not surprisingly (albeit a bit impirically) is based on the measurement of the BF to calibrate the BFO and on the zero beat for the calibration of the VFO.
If you have RF instrumentation, the BF measurement method is certainly valid for VFO calibration, therefore, set the frequency of the RF oscillator to exactly 10MHz, in the TEST menu choose the VFO calibration, do the zero beat with the VFO, move the RF oscillator at 10.001,500 KHz, read the output frequency from the speaker with a good frequency meter and correct the calibration to read exactly 1,500 Hz (I managed to center the frequency of the VFO within +/- 0.01-0 , 02 Hz) exit calibration and turn off the ?BITX, turn it back on and follow the instructions in the documentation to calibrate the BFO (to center the quartz filter) ... that's it.
73 de
IW4AJR Loris

On Mon, Jan 4, 2021 at 03:58 PM, <rafaelgcpp@...> wrote:
Hi folks,

Assuming I have RF laboratory instruments available, what could be an ideal scenario to calibrate ubitx frequencies ?

Would it work to set a RF generator to 10,000,500Hz and expect to receive 500Hz when the ubitx is tuned at 10MHz?

Or would it be better to measure the clk2 frequency with a counter?

73

Rafael Pinto - PU1OWL

?
--


Re: Different Nano's

 

I just noticed that the Every has a USB micro connector as opposed to the mini on the Nano. That means that the extension cable that brings the USB from the Arduino out to the back panel of the uBITX 6 won't work. Does anyone have a source for a similar extension cable for the micro connector?

For those unfamiliar with the uBITX 6, it comes with a USB mini male to mini female extension cable that mounts to the rear panel of the enclosure.

73,
Mark, N8ME


Re: Different Nano's

 

Dean,

Thanks for the info.? I see that the Every has 48k of flash vs 32k in the plain Nano. Did that equate to 16k more program space?

The documentation from Arduino says that it's pin for pin compatible.? I'm using my own interrupt code for the rotary encoder, so it shouldn't be too different to adapt.

73,
Mark, N8ME


Re: WSJT-X 2.2.2

 

The Python script was something quick & dirty. It's attached.

73,
Mark, N8ME


Re: WSJT-X 2.2.2

 

Is it possibly a delay time difference between when DTR is asserted and when the CAT program(s) start trying to communicate and/or expects a response/ACK between these different CAT programs/versions?
Assert DTR and reset is pulsed low (asserted) through a capacitively coupled circuit.
The Arduino goes into bootloader/programming mode when Reset is negated, it doesn't go into "application" mode until after the bootloader timeout.

When you upload a new sketch and stay powered-up, the Nano is in application mode. When you have your Python serial port snooper running, the Nano is in application mode.
Opening up the Arduino IDE serial monitor also resets the Arduino.? It also resets when you close the serial monitor. (I expect most terminal programs assert DTR by default when started)

One possible way to help debug the idea / problem is to remove the bootloader overhead. (if your CAT programs(s) don't have an obvious time out variable / setting)

With a bootloader in place,? It takes ~ 1 second to go from reset negate to user code running.? ?I get past One MISSISSIPPI after negating reset to LED on for the Blink Demo.

Rgds,
Gary



Re: Different Nano's

 

Hi Mark -

I haven't tried it in the uBitx - I have my own non-bitx homebrew rig that I used it in and it was a drop-in physical replacement. That is one of the reasons I went to it - so I didn't need to change my controller board.? After I changed the interrupt code everything worked.? My build uses an SI-5351 and rotary encoder just like the uBitx.? I have run it with an LCD display, a TFT and a Nextion.? ?I don't see any reason it wouldn't work in the Raduino if you fix the interrupt code,? but I haven't tried it.

The way my sketch is setup right now it wok work with either the Nano or the Nano Every with no code changes.

Dean
KK4DAs


Re: WSJT-X 2.2.2

 

Mark,

I hadn't seen the that WSJTX supplied it. That's great because it will be built of the same library version as the WSJTX suite

rigctl-wsjtx.exe -m 1022 -r com4 -P RIG -D NONE -s 38400 -vvvvv

-m is the hamlib rig number.? 1022 is for the FT-857D (1020 is the FT-817)? - that is with the latest hamlib - they were previously 122 and 120.?
-vvvvv is the super debug option that shows you everything.? My CAT control library is built off the FT-857 specs but I think the command architecture between the 817 and the 857 is identical.??

I just tested it with my build.? It works the same as I described before.? First run rigctl "thinks" it is sending, but the the Arduino doesn't see any data and rigctl reports a timeout.? Open and close the serial monitor and it works fine business.? And then after it is working with rigctl I can run WSJTX, FLRIG or FLDIGI and they work fine.? Interestingly the Arduino does not reset on rigctl connecting.

Fascinating that one program running and exiting affects the state of the com port for the next program.

Where are the Windows USB gurus?

Would you car to share your Python monitoring script?

73,
Dean
KK4DAS




Is there a way to configure rigctl to sit between WSJT-X and the uBITX and monitor the communications or do you have to enter Hamlib commands into rigctl directly?

I don't think so - rigctrl is a command line interface -? here is how I run it -

cd "C:\Program Files (x86)\hamlib-w64-3.3\bin"
?


Re: WSJT-X 2.2.2

 

¿ªÔÆÌåÓý

Dean,

?

WSJT-X is running on Windows.

?

Thanks for the pointer on rigctl. I see ?a rigctl-wsjtx executable file in the WSJT-X installation. I guess it does the same thing.? Is there a way to configure rigctl to sit between WSJT-X and the uBITX and monitor the communications or do you have to enter Hamlib commands into rigctl directly?

?

I wrote my own Python script to monitor the communication. I create a virtual serial port pair. I point WSJT-X to one half of the virtual pair. The Python script connect to the other half of the virtual pair and to the hardware port connected to the uBITX. The program copies everything it gets on one port to the other and to the screen. It does a little decoding so that it can display commands it knows about in text rather than just hex which is the default.

?

I¡¯ve seen an issue with WSJT-X not communicating unless I upload a script. I suspect that opening and closing the serial monitor does the same thing to the serial port that makes it work. Communications works fine with my Python script in the middle, but I see the uBITX screen flash when I start the script, so I think the script toggles DTR behind the scenes.

?

I wish I knew what¡¯s in the DTR reset that makes the serial port on the Nano work. I would think that there would be a way to reset the serial port when a sketch starts up.

?

I¡¯d be glad to collaborate. FWIW, currently my CAT is having problems with FLDIGI, even when I have FLDIGI configured to use Hamlib.

?

73,

Mark, N8ME

?

From: Dean Souleles
Sent: Monday, January 4, 2021 12:48 PM
To: [email protected]
Subject: Re: [BITX20] WSJT-X 2.2.2

?

Hi Mark -?

Chasing down a similar (same) problem over here -?[email protected] | Arduino, PC, Serial Communications / CAT

What platform are you running WSKTX on Windows or Linux???

If you don't already know about it there is a command line program in the Hamlib distribution called "rigctl"? I find it very useful - in it's verbose debug mode it shows you every byte it sends and receives.? ? My observations is that it thinks it is sending but nothing arrives at the Arduino - unless I open and close the Arduino IDE serial monitor before running the program - then it all works fine - including WSJTX (with DTR un-checked).

I am Interested in collaborating on this - it would be good to get Arduino / Hamlib communications to be reliable.

73,
Dean

?


Re: WSJT-X 2.2.2

 

Hi Doug -

Yes? 2.2.2 uses the latest update to the hamlib libraries.? I'm not sure what all they have changed My experience is that CAT communication with our Arduino based rigs has never been super reliable - except with Ham Radio Deluxe 5 which has been super reliable.? That hasn't been updated since 2012!

As a programmer my goal is to have it "just work"? and not vary between programs and version and not require mystic incantations!

73,
Dean
KK4DAS


Re: WSJT-X 2.2.2

 

Mark,
I'm going from memory here so I don't remember all the details but 2.2.2 did something to the CAT interface.? You might want to try reverting to 2.2.0 and seeing if that works.
--


Re: WSJT-X 2.2.2

 

Hi Mark -?

Chasing down a similar (same) problem over here -?[email protected] | Arduino, PC, Serial Communications / CAT

What platform are you running WSKTX on Windows or Linux???

If you don't already know about it there is a command line program in the Hamlib distribution called "rigctl"? I find it very useful - in it's verbose debug mode it shows you every byte it sends and receives.? ? My observations is that it thinks it is sending but nothing arrives at the Arduino - unless I open and close the Arduino IDE serial monitor before running the program - then it all works fine - including WSJTX (with DTR un-checked).

I am Interested in collaborating on this - it would be good to get Arduino / Hamlib communications to be reliable.

73,
Dean


WSJT-X 2.2.2

 

I've written custom firmware for the uBITX 6 and got the CAT interface working well with WSJT-X 2.1.2, using the FT817 configuration. I just tried WSJT-X 2.2.2 and it no longer works.? I see in the release notes that they updated Hamlib to a newer version and one of the specific notes was to make it work with the uBITX.

I didn't have time to fully debug the interface as I was setting up for the RTTY RU contest, but I notice that it's using a few more undocumented FT817 commands. Even after adding those commands to my CAT interface, I still had trouble getting it working. I had it working fairly well as long as I didn't restart the uBITX after uploading the sketch. It seems that uploading firmware resets something in the serial interface that isn't done after a normal power up. With 2.1.2, I was able to get the uBITX to reset by setting DTR high on the interface, but it looks like 2.2.2 is using DTR differently as my uBITX resets several times instead of once with 2.1.2.

73,
Mark, N8ME


Re: Different Nano's

 

Dean,

Did you find that you could just replace the Nano with the Nano Everything on the Raduino board, or did you have to make hardware changes?? FWIW, I'm running a uBITX v6.

73,
Mark, N8ME


Frequency calibration on a lab #bfo #calibration #frequency

 

Hi folks,

Assuming I have RF laboratory instruments available, what could be an ideal scenario to calibrate ubitx frequencies ?

Would it work to set a RF generator to 10,000,500Hz and expect to receive 500Hz when the ubitx is tuned at 10MHz?

Or would it be better to measure the clk2 frequency with a counter?

73

Rafael Pinto - PU1OWL


Re: Different Nano's

 

On Sun, Jan 3, 2021 at 06:39 PM, Shirley Dulcey KE1L wrote:
TL:DR version: don't buy a Nano Every to use in your Raduino?right now unless?you are prepared to do some software development.
Hi Shirley and all -?

I have got my own homebrew sketch working on the Nano Every fine business.? The one change I had to make was the interrupt handling for the rotary encoder.? Discussion and sample sketch are here:??[email protected] | Nano Every - Interrupt Handling - Rotary Encoder

This code will work reliably with either the Nano or the Nano every - it automatically detects which board it is compiling for and adjusts.?

I believe this will approach will work fine with the Raduino sketches - but I have not tried it.

The other useful benefit of the Nano Every is there is a second hardware serial port which I used for a Nextion connection.? It gets you away from the somewhat troublesome SoftwareSerial library limitations.

Dean
KK4DAS


Re: Different Nano's

 

Shirley does know these Arduino variants better than I, that last message was meant to be self-deprecating.
I sent that out before reading Shirley's post 85141, which hit the forum one minute prior to mine.

Jerry, KE7ER


On Sun, Jan 3, 2021 at 05:15 PM, Jerry Gaffke wrote:
I probably should defer to Shirley.
But instead I'll just say "yes, it would work", except that the pins are soldered to the wrong side of the board for plugging into the Raduino.
You want a board that does not come with the pins soldered in place.


Re: Problems with connecting to computer for digital

 

I should correct that - you can set DTR high in WSJTX but I haven't had as much luck with that.? I think it times out during the Arduino reset - but it still works fine after using HRD.? I am working another thread with developers in the Software Controlled Ham Radio group - perhaps those fine folks can help or some of the brilliant Arduino programmers on here s well.? I will say there is a lot of mythology around this because things seem to work for some folks - and then they don't.? I am very interested in getting this working perfectly for my own radio control sketch.

The one consistent behavior for me is as I described.? After running HRD (V5) - all the other programs connect just fine.

Dean