Sub-Etha Software
Blogs

C musing of the day: i++ or ++i?

December 7, 2017 Sub-Etha Software

Here’s another short side-musing about C…

At my previous job, I did embedded programming on TI MSP430, PowerPC and Renesas processors. We were in the process of moving to a new system based on ARM architecture. It was during this time that I went from being part of a tiny

Sub-Etha Software
Blogs

C musing of the day: signed ints

December 6, 2017 Sub-Etha Software

I ran across some code today that puzzled me. It was an infinite loop that used a counter to determine if things took too long. Something like this:

int main() { int count; int status; count = 0; do { status = GetStatus(); count++; } while( status == 0 ); …

Sub-Etha Software
Blogs

C warnings, %d versus %u and more C fun.

December 4, 2017 Sub-Etha Software

Code cleanup on aisle five…

I recently spent two days at work going through projects to clean up compiler warnings. In GNU C, you can enable options such as “-Wall” (all warnings), “-Wextra” (extra warnings) and “-Werror” (warnings as errors). By doing steps like these, the compiler will scream at

Sub-Etha Software
Blogs

const-ant confusion in C.

November 30, 2017 Sub-Etha Software

Embedded Life

I currently make my living doing embedded C programming. I am not quite sure how to define what “embedded” programming is other than to say: you probably don’t have everything you expect.

You often program on systems without file systems, without gigabytes of RAM and without an operating

Sub-Etha Software
Blogs

Happy Halloween in November!

November 9, 2017 Sub-Etha Software

A few side projects keep me busy during the year. One is doing things for local festivals (show guides, websites, newspaper ads, TV commercials, etc.) and the other is maintaining my haunted house website: www.dmhauntedhouses.com

During October, I visit with all the local haunted attractions to get information from that

No Picture
Blogs

Happy birthday, computer revolution.

August 3, 2017 Sub-Etha Software

Today marks the 40th anniversary of the Radio Shack TRS-80 Model I computer. TRS stood for Tandy/Radio Shack, and the 80 came from the Z-80 processor it uses. The Model I came from Tandy’s belief there would be more than one model 😉

When the TRS-80 came out in 1977,

No Picture
Blogs

All quiet on the Western front…

July 18, 2017 Sub-Etha Software

 

Things have been very quiet here. I started a new job a few months ago and have been having a blast doing embedded C firmware programming for power-over-ethernet LED light control systems. I am currently working on the CoAP protocol, as mentioned previously.

I have a few articles for

No Picture
Blogs

More CoAP musings…

June 30, 2017 Sub-Etha Software

Last week I implemented a simple version of CoAP protocol at work, going by the main specification:

https://tools.ietf.org/html/rfc7252

CoAP seems to be similar to how a web browser works with a web server: GET some content, POST something back.

A CoAP server could report back the status of various sensors, and