Date   
Re: Hijacked: C vs C++

Jerry Gaffke
 

On critical code, I prefer the direct correspondence of a vanilla C program to its executable.
With C++, there are too many unseen gears turning to implement all those cool features.

If I want easy coding of complicated algorithms and don't care about space or time, I write in python.
It's clean and concise and powerful, I get far fewer coding errors than when writing in C/C++.
If there are time critical functions to implement, write them in C and call them from the main python program.

Here's an old Unix fortune cookie from 40 years ago:
"The day-to-day travails of the IBM programmer are so amusing to most of us who are 
fortunate enough never to have been one  -- like watching Charlie Chaplin trying to cook a shoe."

We can argue if that applies better to the C or C++ programmer.

Jerry, KE7ER
he day-to-day travails of the IBM programmer are so amusing to most of us who are fortunate enough never to have been one

Re: Who has uBITX with Nextion display in action pictures ?

Charlie Morrison
 

Thanks Art

 

That’s it…I’ll follow this development with interest.

 

Charlie GI4FUE

 

From: BITX20@groups.io [mailto:BITX20@groups.io] On Behalf Of Art Olson
Sent: 04 July 2018 00:36
To: BITX20@groups.io
Subject: Re: [BITX20] Who has uBITX with Nextion display in action pictures ?

 

Charlie

 

His name is Joe Basque, VE1BWV

 

Here is a youtube link

 

https://www.youtube.com/watch?v=MU4ehLk1I2A&t=28s

 

73

Art N2AJO

 

From: BITX20@groups.io [mailto:BITX20@groups.io] On Behalf Of Charlie Morrison
Sent: Tuesday, July 3, 2018 7:19 PM
To: BITX20@groups.io
Subject: Re: [BITX20] Who has uBITX with Nextion display in action pictures ?

 

I saw a post recently (cant remember where ) of someone who is developing a tft file for a 7In nextion…cant find it now, but the 7 in displays are becoming much cheaper and could be mounted on top of the ubitx case, similar to the PIHPSDR done by Scott, WU2O…anyone remember who it was?

 

Regards

Charlie GI4FUE

 

From: BITX20@groups.io [mailto:BITX20@groups.io] On Behalf Of Art Olson via Groups.Io
Sent: 03 July 2018 23:24
To: BITX20@groups.io
Subject: Re: [BITX20] Who has uBITX with Nextion display in action pictures ?

 

Kees

I placed a photo of my 3.5 Nextion, CECs firmware 1.094. It is installed and running on a Ubitx version 3.Nextion has a list of 3d bezels for each size with downloadable stl files. I ordered a 3.5 bezel from 3d Hubs and it cost me $10. I think it looks pretty good on the face of my rig enclosure.


Nextion bezels -
https://www.itead.cc/wiki/Nextion_HMI_Solution#3D_printing_bezel

 

 

Virus-free. www.avg.com

 

Re: Who has uBITX with Nextion display in action pictures ?

Charlie Morrison
 

Hi Joe

 

Thanks for the info, I’ll look out for it. Is yours a standard or enhanced display?

 

73 de Charlie GI4FUE

 

From: BITX20@groups.io [mailto:BITX20@groups.io] On Behalf Of Joe
Sent: 04 July 2018 01:44
To: BITX20@groups.io
Subject: Re: [BITX20] Who has uBITX with Nextion display in action pictures ?

 

Hi,

 

I am running a 3.2e and a 7 inch

The code is working fine.

I will be releasing the 7 inch .hmi code with enhanced for the larger screen

by the end of the week or sooner.

Probably on ubitx.net

Also a new youtube demo

 

73

Joe

VE1BWV

On Tue, Jul 3, 2018, 8:35 PM Art Olson <olson339@...> wrote:

Charlie

 

His name is Joe Basque, VE1BWV

 

Here is a youtube link

 

https://www.youtube.com/watch?v=MU4ehLk1I2A&t=28s

 

73

Art N2AJO

 

From: BITX20@groups.io [mailto:BITX20@groups.io] On Behalf Of Charlie Morrison
Sent: Tuesday, July 3, 2018 7:19 PM


To: BITX20@groups.io
Subject: Re: [BITX20] Who has uBITX with Nextion display in action pictures ?

 

I saw a post recently (cant remember where ) of someone who is developing a tft file for a 7In nextion…cant find it now, but the 7 in displays are becoming much cheaper and could be mounted on top of the ubitx case, similar to the PIHPSDR done by Scott, WU2O…anyone remember who it was?

 

Regards

Charlie GI4FUE

 

From: BITX20@groups.io [mailto:BITX20@groups.io] On Behalf Of Art Olson via Groups.Io
Sent: 03 July 2018 23:24
To: BITX20@groups.io
Subject: Re: [BITX20] Who has uBITX with Nextion display in action pictures ?

 

Kees

I placed a photo of my 3.5 Nextion, CECs firmware 1.094. It is installed and running on a Ubitx version 3.Nextion has a list of 3d bezels for each size with downloadable stl files. I ordered a 3.5 bezel from 3d Hubs and it cost me $10. I think it looks pretty good on the face of my rig enclosure.


Nextion bezels -
https://www.itead.cc/wiki/Nextion_HMI_Solution#3D_printing_bezel

 

 

Virus-free. www.avg.com

 

Re: My uBitx with 5v mod #ubitx

m5fra2@...
 

Nigel, where did you get the case? It looks ideal.

Colin - G8FRA/M5FRA

Re: Elmer in Atlanta GA with working BITx40 RFSignals Kit working

Vic WA4THR
 

There is a file here with the voltages to be expected for a BitX40. A common failure point is the Q13 transistor, which is what mine had before I installed the back-to-back diode mod. I actually found the problem watching a video from VK3YE. Google "VK3YE BitX40 repair".

=Vic=

Re: My uBitx with 5v mod #ubitx

Nigel G4ZAL
 

Colin, the case is an Excellway EF01 and is available from Banggood, ebay etc.
Ebay UK --> https://www.ebay.co.uk/itm/112584900985

Nigel

Re: v4 pop-fix on a v3 board #ubitx

Nigel G4ZAL
 

@Mark, not sure on sidetone as I haven't checked and I understood swapping out the R70 resistor rectified the sidetone problem?

My shack/man cave is now partly cleaned out ready for a mains wiring and network cabling fit out so the uBitx is sidelined for now...

@Michael, I have no idea on the v4 board audio and this topic is regarding the v3 board and retro-fit of the 'pop-fix'.

Re: experience with Sunil VU3SUA's enclosures #ubitx

Sunil Lakhani
 

Hi Mike

Your case is in the lot of 25 cases that are being shipped tomorrow. Apologies for the delay, it will be shipped by DHL.
I mist your email as I have couple of email addresses.. 
Thanks and regards

Sunil

Completed my QCX #ubitx

WD8WV
 

Completed my uBitx and my own home brewed enclosure.  Nothing fancy but all built by hand and a drill and Dremel with a cutting disk and sanding drum.  Still have to do some mods like the s-meter and agc.
--
Judd, WD8WV

Re: Hijacked: C vs C++

w7hd.rh <w7hd.rh@...>
 

It was a simple printf("Hello world.\n") statement as the entire content.  Probably the printf is what caused the overhead.

Ron W7HD

On 07/03/2018 08:31 PM, Jack Purdum via Groups.Io wrote:
Wow, I would never expect a 50:1 difference. True, C++ does drag in more overhead, but it shouldn't be that much. The gcc compiler is behind the Arduino IDE. Try using it to write a C versus C++ program and see if that difference holds. Some compilers bring in the entire I/O library if you use printf(). That shouldn't happen in the Arduino world. Take the code you used to come to those conclusions, but do it with the Arduino IDE. I'd love to hear the results. I'd be happy to run the test if you care to send the source code.

Jack, W8TEE

On Tuesday, July 3, 2018, 11:07:59 PM EDT, w7hd.rh <w7hd.rh@...> wrote:


Turbo C and Turbo C++ at first, then gcc and g++ later.  Without a lot of compiler switches added in.
It certainly turned me off C++ coding.  I still program in C and shell scripts whenever possible. 
I've written a LOT of programs over the last 30 years and can crank out a working C program in a few hours.

Ron W7HD

On 07/03/2018 07:05 PM, Jack Purdum via Groups.Io wrote:
Good grief! What compiler was it?

Jack, W8TEE

On Tuesday, July 3, 2018, 6:29:47 PM EDT, w7hd.rh <w7hd.rh@...> wrote:


I can vouch for the size increase with C++.  When I was teaching C and just getting my feet wet with C++, we did a direct comparison.  The results showed a 1.5K executable for C and 80K for C++ with the exact same code, simply renaming it .C++ instead of .C.  It is due to the libraries being pulled in.  Speed is a different issue since it is highly dependent on coding style.

Ron W7HD

On 07/03/2018 01:15 PM, Jack Purdum via Groups.Io wrote:
Hi Jerry:

I've seen statements like this:

    It's always been straight C (K&R or ANSII) if I want to code for speed or size

many times before, but I've never seen any a priori proof of this or articles that discuss it. It seems that it would make sense to be so, but I don't know if that's pushed into the generated code or if it's an increased load on the parser given the semantics of C++ versus C. Some even say that, because C++ uses templates in the libraries, the code generator can perform more optimizations on the code because it "knows" what you are doing (What are the fundamental differences between C and C++?).


I don't have an answer, but I do try to follow the goals of C++ where it makes sense, especially encapsulation. If anyone has a definitive answer, I'd really like to know about it.

Jack, W8TEE



On Tuesday, July 3, 2018, 3:16:24 PM EDT, Jerry Gaffke via Groups.Io <jgaffke@...> wrote:


> I fail to see the their and there you are pointing out. 
 
What do you mean?
It's right their in this sentence: 

>>   "their" is possessional, "there" is positional, required in this context.


My gripes are mostly about a good technical discussions diverging into multiple threads.
If you do start a new thread on an old subject then post links to both showing where the other thread can be found. 

Those posting without any history for context generally get ignored.
If it's not worth your while to spend 5 seconds including context,
it's certainly not worth it for thousands of forum readers to go find it.

If anybody want's to pick apart my use of USAish or my C indentation style (or lack thereof), have at it.
I'm quite capable of skipping over those posts too.

And while I'm at it, I've never seen any reason to get comfortable with C++.
It's always been straight C (K&R or ANSII) if I want to code for speed or size,
and for the last couple decades I've been resorting to Python for easy coding. 
This violates my primary beef above, I do try not to be overly pendantic.

Jerry, KE7ER



On Tue, Jul 3, 2018 at 09:49 am, Allen Merrell wrote:
On Tue, Jul 3, 2018 at 08:46 am, Dexter N Muir wrote:
Sorry to be a pedant, but that's me Allen: "their" is possessional, "there" is positional, required in this context.
73
Dex, ZL2DEX
Sorry Dexter, I'm not an english major but I fail to see the their and there you are pointing out.
 
--
Allen  Merrell

-- 
Ron W7HD - NAQCC#7587 OMISS#9898 KX3#6966 LinuxUser#415320
Editor OVARC newsletter

-- 
Ron W7HD - NAQCC#7587 OMISS#9898 KX3#6966 LinuxUser#415320
Editor OVARC newsletter

-- 
Ron W7HD - NAQCC#7587 OMISS#9898 KX3#6966 LinuxUser#415320
Editor OVARC newsletter

Re: LED Power Output Indicator #ubitx

Lee
 

Please don't assume a 3.0 volt LED and reasonable brightness. As I already stated,

I used a clear red LED and it is nice and bright and fun to watch.

I have received all the information I was looking for.   Thank you.

It works great just the way it is.  "If it aint broke, don't fix it."
--
Lee - N9LO  "I Void Warranties"

 

Re: Completed my QCX #ubitx

Lee
 

Very nice work.
--
Lee - N9LO  "I Void Warranties"

 

Re: Hijacked: C vs C++

bobolink
 

With C++, there are too many unseen gears turning to implement all those cool features.
In my C++ class the instructor would often start class with the quiz “How many constructors are called” for some simple code. Everybody’s answers would be low. 

With some experience, there is little difference in in resulting code execution speed for C coders.  There is a huge difference for C++ coders. And the good ones make a lot of money.

Re: Hijacked: C vs C++

Christopher Miller
 

my community college had me learn C. I suspect  the added functionality wasn't required. 


On Wed, Jul 4, 2018, 5:36 AM bobh_us <rwhinric@...> wrote:
With C++, there are too many unseen gears turning to implement all those cool features.
In my C++ class the instructor would often start class with the quiz “How many constructors are called” for some simple code. Everybody’s answers would be low. 

With some experience, there is little difference in in resulting code execution speed for C coders.  There is a huge difference for C++ coders. And the good ones make a lot of money.

Re: Hijacked: C vs C++

Jack, W8TEE
 

The bloat in the Arduino IDE isn't nearly as bad as that. After all, you all have been using C++ the moment you used Serial.begin() in a program. Indeed, I don't think I've seen any Arduino libraries that weren't written in C++. I do agree that C is much easier to use and that's my preferred programming language. Still, the OOP Trillogy brings a lot to the table in terms of making one's code a little more bullet proof. The good news is that you can apply some of those safety concepts without really having to go full bore on C++. I, too, will stick with C, but I'm not against swiping some good stuff from C++ when I can.

Jack, W8TEE

On Wednesday, July 4, 2018, 8:17:54 AM EDT, w7hd.rh <w7hd.rh@...> wrote:


It was a simple printf("Hello world.\n") statement as the entire content.  Probably the printf is what caused the overhead.

Ron W7HD

On 07/03/2018 08:31 PM, Jack Purdum via Groups.Io wrote:
Wow, I would never expect a 50:1 difference. True, C++ does drag in more overhead, but it shouldn't be that much. The gcc compiler is behind the Arduino IDE. Try using it to write a C versus C++ program and see if that difference holds. Some compilers bring in the entire I/O library if you use printf(). That shouldn't happen in the Arduino world. Take the code you used to come to those conclusions, but do it with the Arduino IDE. I'd love to hear the results. I'd be happy to run the test if you care to send the source code.

Jack, W8TEE

On Tuesday, July 3, 2018, 11:07:59 PM EDT, w7hd.rh <w7hd.rh@...> wrote:


Turbo C and Turbo C++ at first, then gcc and g++ later.  Without a lot of compiler switches added in.
It certainly turned me off C++ coding.  I still program in C and shell scripts whenever possible. 
I've written a LOT of programs over the last 30 years and can crank out a working C program in a few hours.

Ron W7HD

On 07/03/2018 07:05 PM, Jack Purdum via Groups.Io wrote:
Good grief! What compiler was it?

Jack, W8TEE

On Tuesday, July 3, 2018, 6:29:47 PM EDT, w7hd.rh <w7hd.rh@...> wrote:


I can vouch for the size increase with C++.  When I was teaching C and just getting my feet wet with C++, we did a direct comparison.  The results showed a 1.5K executable for C and 80K for C++ with the exact same code, simply renaming it .C++ instead of .C.  It is due to the libraries being pulled in.  Speed is a different issue since it is highly dependent on coding style.

Ron W7HD

On 07/03/2018 01:15 PM, Jack Purdum via Groups.Io wrote:
Hi Jerry:

I've seen statements like this:

    It's always been straight C (K&R or ANSII) if I want to code for speed or size

many times before, but I've never seen any a priori proof of this or articles that discuss it. It seems that it would make sense to be so, but I don't know if that's pushed into the generated code or if it's an increased load on the parser given the semantics of C++ versus C. Some even say that, because C++ uses templates in the libraries, the code generator can perform more optimizations on the code because it "knows" what you are doing (What are the fundamental differences between C and C++?).


I don't have an answer, but I do try to follow the goals of C++ where it makes sense, especially encapsulation. If anyone has a definitive answer, I'd really like to know about it.

Jack, W8TEE



On Tuesday, July 3, 2018, 3:16:24 PM EDT, Jerry Gaffke via Groups.Io <jgaffke@...> wrote:


> I fail to see the their and there you are pointing out. 
 
What do you mean?
It's right their in this sentence: 

>>   "their" is possessional, "there" is positional, required in this context.


My gripes are mostly about a good technical discussions diverging into multiple threads.
If you do start a new thread on an old subject then post links to both showing where the other thread can be found. 

Those posting without any history for context generally get ignored.
If it's not worth your while to spend 5 seconds including context,
it's certainly not worth it for thousands of forum readers to go find it.

If anybody want's to pick apart my use of USAish or my C indentation style (or lack thereof), have at it.
I'm quite capable of skipping over those posts too.

And while I'm at it, I've never seen any reason to get comfortable with C++.
It's always been straight C (K&R or ANSII) if I want to code for speed or size,
and for the last couple decades I've been resorting to Python for easy coding. 
This violates my primary beef above, I do try not to be overly pendantic.

Jerry, KE7ER



On Tue, Jul 3, 2018 at 09:49 am, Allen Merrell wrote:
On Tue, Jul 3, 2018 at 08:46 am, Dexter N Muir wrote:
Sorry to be a pedant, but that's me Allen: "their" is possessional, "there" is positional, required in this context.
73
Dex, ZL2DEX
Sorry Dexter, I'm not an english major but I fail to see the their and there you are pointing out.
 
--
Allen  Merrell

-- 
Ron W7HD - NAQCC#7587 OMISS#9898 KX3#6966 LinuxUser#415320
Editor OVARC newsletter

-- 
Ron W7HD - NAQCC#7587 OMISS#9898 KX3#6966 LinuxUser#415320
Editor OVARC newsletter

-- 
Ron W7HD - NAQCC#7587 OMISS#9898 KX3#6966 LinuxUser#415320
Editor OVARC newsletter

Re: Known issues on uBITX r4 #ubitx

hirosmb <hirosmb@...>
 

I finally have got a uBITX today.

I placed my order last Friday night and then have it on WED evening.

It took only 5 days delivering from India to Japan.

Thanks, all. I’ll start enjoying myself to set my uBITX up from now on.

// hiro, JJ1FXF



2018/06/30 20:39、hirosmb JAZZ <hirosmb@...>のメール:

Raj,

Thanks for ur reply.

I understand that VFO shaft is 6mm but the volume shaft is 4mm.

I will try to find again a knob for 4mm shaft and also the 6mm pot and switch, just in case.

Thank you for ur advice.

// hiro, JJ1FXF



2018/06/30 20:17、Raj vu2zap <@Raj>のメール:

Hiro,

The Volume control is 4mm with switch. So if you are at Akhiabara tomorrow pick up
a 10KA pot with switch (if required) of 6mm type.

Raj

At 30-06-18, you wrote:
I got a 12V 5A regulated power supply with ferrite core for noise filter, plus I got 10 pieces of extra ferrite core, just in case.

I also got some knobs for VFO and volume which shafts are 6mm. Is it OK?

I will make a front panel tomorrow.

// hiro, JJ1FXF



Re: Completed my QCX #ubitx

WD8WV
 

Thanks Lee.

Now when my version 4 board gets here I know what I am doing.  Hopefully it will be an even better build, especially the enclosure.  I still need to do a few things to this one, I plan on changing out the AF control with another one that has a more user friendly knob attachment.  I was lucky I had this old knob that had two set screws that were 90 degrees to each other.

I didn't leave much room in this one for upgrades, but I am going to do the S-Meter and the AGC.  Still looking at all the different mods others have done.
--
Judd, WD8WV

Re: KD8CEC Firmware

pat griffin
 

Ian,

I am running beta 1.094 and it is great. Thanks for your hard work.

You mentioned that 1.095 was ready for release but I am not able to locate it.  Can your point me to it?

Thanks,

Pat AA4PG


Pat Griffin
http://www.cahabatechnology.com/aa4pg.html


From: BITX20@groups.io <BITX20@groups.io> on behalf of Ian Lee <kd8cec@...>
Sent: Sunday, July 1, 2018 7:10:26 PM
To: BITX20@groups.io
Subject: Re: [BITX20] KD8CEC Firmware
 
Thanks for your interresting.
You can get it from the link below

See the Release section for more convenience.

Ian KD8CEC


2018-07-02 10:07 GMT+09:00 MadRadioModder <madradiomodder@...>:
Where did you find it?



--
Best 73
KD8CEC / Ph.D ian lee
kd8cec@...
www.hamskey.com (my blog)

Software for uBITX

Franz.Rebholz@...
 

Hi,

last week I got the new uBITX, it finished and work fine with software V0.20.

My question ist, what ist the newest update version which work without hardware changes?
An where I can download?

Franz

DF5GF

Re: Completed my QCX #ubitx

Kees T
 

Looks very nice Judd, almost missed it because of the topic name.  What size Nextion display is that ?

73 Kees K5BCQ