¿ªÔÆÌåÓý

software problem


Jeff Davis
 

I have a version 3 board. I tried loading the original software for the nano and I am getting an error messages.
'si5351bx_setfreq' was not declared in this scope. Part of the code is shown below. I don't understand why the code will not work as is. Thanks in advance.
Jeff... ve3coj

void stopTx(){
inTx = 0;

digitalWrite(TX_RX, 0); //turn off the tx
si5351bx_setfreq(0, usbCarrier); //set back the cardrier oscillator anyway, cw tx switches it off

if (ritOn)
setFrequency(ritRxFrequency);
else{


Jack Purdum
 

Is there a function prototype for setFrequency() near the top of the code or in a header file? While I am not familiar with the code, my guess is that the argument to the function is either a long or unsigned long data type. Try adding:

void? setFrequency(unsigned long ritRxFrequency);

just after the #include's and see if that helps. If not, drop the unsigned and try again. If that fails, go have a beer.


Jack, W8TEE

On Wednesday, December 19, 2018, 11:56:31 AM EST, Jeff Davis via Groups.Io <ve3coj@...> wrote:


I have a version 3 board. I tried loading the original software for the nano and I am getting an error messages.
'si5351bx_setfreq' was not declared in this scope. Part of the code is shown below. I don't understand why the code will not work as is.? Thanks in advance.
Jeff... ve3coj

void stopTx(){
? inTx = 0;

? digitalWrite(TX_RX, 0);? ? ? ? ? //turn off the tx
? si5351bx_setfreq(0, usbCarrier);? //set back the cardrier oscillator anyway, cw tx switches it off

? if (ritOn)
? ? setFrequency(ritRxFrequency);
? else{



 

Jeff,
Appears that you are trying to compile just a single ".ino" file (i.e. ubitx_20).? You are missing the remaining required .ino files in the directory as supplied by HFsigs.
Not the best coding practice, but that's how it was done.
Regards,
Gary


Jeff Davis
 

Hi Gary... well you hit the nail on the head. I put all the ino's one after the other and it compiled ok.
However, the Bitx goes into cw mode and sends code?

I dropped each ino in the editor one after the other as listed starting from the top of the list... Is there any particular order?

I'm going to try the newer code with the CAT and I read the cw is improved......

Thanks for the help...


Jack Purdum
 

We've discussed the disadvantages of making all of the files ino files before. The biggest loss is you give up incremental compiles. For me, compiling 210K of program code dozens of times each day, the time savings are substantial. At one time, you also lost type checking with multiple ino files, but I'm not sure that's still true with the latest release of the IDE. Finally, for someone who is not familiar with the code, making the file with setup() and loop() the only ino file makes it easy to locate the code's starting point.

Jack, W8TEE

On Wednesday, December 19, 2018, 6:32:19 PM EST, Jeff Davis via Groups.Io <ve3coj@...> wrote:


Hi Gary... well you hit the nail on the head. I put all the ino's one after the other and it compiled ok.
However, the Bitx goes into cw mode and sends code?

I dropped each ino in the editor? one after the other as listed starting from the top of the list... Is there any particular order?

I'm going to try the newer code with the CAT and I read the cw is improved......

Thanks for the help...



Jeff Davis
 

Hi Jack... I have a simple problem. I don't see any information on which ino files are to be put in sequence in the Arduino IDE if necessary.

I coped and pasted each file into the IDE and it compiled. When connected to the Bitx it got stuck on the calculation showing 7.15Mhz then it jumped into CW mode.

It was working fine but I wanted to upgrade the software... so now I have this problem. I'm missing something because it can't be this complicated!

Is there an order in which ino files go into the IDE? Jeff ve3coj


Jack Purdum
 

Hi Jeff:

The order doesn't make any difference. The IDE will arrange them alphabetically on the tabs in the IDE. However, if your files are such that only the file containing setup() and loop() is named ?.ino and the rest are *.cpp, it will place the *.ino file first in the tab list. I kinda like that, since there tends to be more going on during development in that file.

I would suggest a fresh download of the source code files, all of which must be in the same directory, and then a compile.

Jack, W8TEE


On Thursday, December 20, 2018, 7:22:11 AM EST, Jeff Davis via Groups.Io <ve3coj@...> wrote:


Hi Jack... I have a simple problem. I don't see any information on which ino files are to be put in sequence in the Arduino IDE if necessary.

I coped and pasted each file into the IDE and it compiled. When connected to the Bitx it got stuck on the calculation showing 7.15Mhz then it jumped into CW mode.

It was working fine but I wanted to upgrade the software... so now I have this problem. I'm missing something because it can't be this complicated!

Is there an order in which ino files go into the IDE? Jeff ve3coj



barry underwood
 

Jeff,

It is simpler than it looks.

1: Open the Arduino IDE
2: From the files / open menu in the IDE, navigate to where you unzipped the KD8CEC archive to and open the file named ubitx_20.ino

This will load all of the files into the IDE.

You then need to edit the ubitx,.h file to reflect the display you are using.
This is simply matter of commenting or uncommenting the appropriate lines at he top of the file.

Use the upload button to compile and upload the firmware in the normal way.

73 de Barry G4BUD


 

Jeff,
Please let us know what software you are trying to use and give us the URL for the source so we can be more effective at helping.
The statements "I tried loading the original software for the nano" and "It was working fine but I wanted to upgrade the software"
are conflicting from where I sit at the moment.

Stay mindful of the required pull-up on the morse key pad.
For a guy like me, I'd rather have the pull-up hardwired / soldered on the raduino board, as getting into accidental transmit mode can be a failure mode.
Too many things on the mind, distractions, and fatigue set in on all of us. (human error) Plus more interconnects and possible failure points (mechanical fault).

Regards,
Gary
AG5TX









Jeff Davis
 

Thanks to all that have responded... sorry for the preamble but I think It's necessary.

At this time I am just trying to upload the software to the NANO. I have tried the original software to the latest software.
I followed Barry's suggestions (above) exactly. I get errors when compiling with the Aduino IDE.

I have made no mods to the radio. It worked except for poor audio. The audio is fine from the top of the audio pot.
Therefore I figured I needed to calibrate it. But the original software calibration menu seldom came up. Therefore, I wanted to try later software.

So I have just the Nano connected to my PC, via a USB... on my desk.
The software I have seen and tried is... KD8CEC's and is set for the 1602 display.

I loaded //Firmware Version
#define FIRMWARE_VERSION_INFO F("CE v1.070")
#define FIRMWARE_VERSION_NUM 0x02

compiler says " Arduino: 1.6.6 Hourly Build 2015/07/21 05:42 (Windows 8.1), Board: "Arduino Nano, ATmega328"

ubitx_20.ino:60:19: fatal error: ubitx.h: No such file or directory
compilation terminated.
Error compiling.

So I found the file ubitx.h and dropped it into the end of the code and it still can't find the ubitx.h file...

Maybe you can send me a working file to try... ve3coj@...

Thanks for the help.... Jeff


Jack Purdum
 

The ubitx.h header file should be in the directory with Ian's *.ino files. It is part of the download.

Jack, W8TEE

On Friday, December 21, 2018, 11:10:34 AM EST, Jeff Davis via Groups.Io <ve3coj@...> wrote:


Thanks to all that have responded... sorry for the preamble but I think It's necessary.

At this time I am just trying to upload the software to the NANO. I have tried the original software to the latest software.
I followed Barry's? suggestions (above) exactly. I get errors when compiling with the Aduino IDE.

I have made no mods to the radio. It worked except for poor audio. The audio is fine from the top of the audio pot.
Therefore I figured I needed to calibrate it. But the original software calibration menu seldom came up. Therefore, I wanted to try later software.

So I have just the Nano connected to my PC,? via a USB... on my desk.
The software I have seen and tried is... KD8CEC's and is set for the 1602 display.

I loaded //Firmware Version
#define FIRMWARE_VERSION_INFO F("CE v1.070")
#define FIRMWARE_VERSION_NUM 0x02

compiler says " Arduino: 1.6.6 Hourly Build 2015/07/21 05:42 (Windows 8.1), Board: "Arduino Nano, ATmega328"

ubitx_20.ino:60:19: fatal error: ubitx.h: No such file or directory
compilation terminated.
Error compiling.

So I found the file ubitx.h and dropped it into the end of the code and it still can't find the ubitx.h file...

Maybe you can send me a working file to try... ve3coj@...

Thanks for the help.... Jeff




 

Jeff,

? ?If you desire to work through the process of understanding the Arduino IDE, library management, and the way different IDEs behave, please let us know which version of the IDE you're using, which libraries you've installed, and from where you acquired the firmware you're working with.

? ?If you simply want a 'known good' upgrade to install so you can continue to operate or troubleshoot your V3 uBITX, I strongly recommend downloading one of the compiled binaries of the CEC firmware.


? You'll need to select the correct package.? Download the one titled "HEX1.1.zip" and uncompress it (winzip, 7zip, tar, etc.)? If you're using a radio with a standard Raduino, use the "UBITX_CEC_V1.100_16P.hex" file.? Don't worry about the memory manager or about calibration settings at this point - the calibration won't be erased when you install the new firmware.

? Download a copy of Xloader from here:


? ?Remove the raduino from the radio (may work in situ, but as I've only had success when removing the raduino or the Arduino if socketed, I'll recommend that), connect and identify the port, run xloader, select the 16P hex file, confirm the port and "Duemilanove/Nano(ATmega328" is selected,? and upload the file to the Arduino.? Reassemble and run.

? 73, Andy, KG5RKP


Jeff Davis
 

Hi Jack... Well no luck finding a ubitx.h header in any Sketches I could find...
Anyway, I reverted to uploading Hex files and the transceiver is up and running
first upload!.

Thanks for your help and the others that made suggestions.

Jeff ve3coj


Jack Purdum
 

If you look at:





you can see the header file listed there. Personally, I would always want to have a copy of the source code, too.

Jack, W8TEE

On Friday, December 21, 2018, 2:55:05 PM EST, Jeff Davis via Groups.Io <ve3coj@...> wrote:


Hi Jack... Well no luck finding a ubitx.h header in any Sketches I could find...
Anyway, I reverted to uploading Hex files and the transceiver is up and running
first upload!.

Thanks for your help and the others that made suggestions.

Jeff ve3coj



Jeff Davis
 

Thank you Jack... one has to know where to look!
Sometimes there is just Toooo much.

Thanks... will try it. Jeff ve3coj