Blog about development of embedded software for devices, the process of making it and the tools involved.
2010-11-28
Peter Toft: Finde C/C++ fejl med valgrind -> massif finder fejl i allokering/deallokering
Peter Toft: Finde C/C++ fejl med valgrind -> massif finder fejl i allokering/deallokering: "Jeg har haft meget travlt på arbejdet de sidste par uger, især med at få releaset en stor klump kode, hvor mange har deltaget i af kode. Det kommer fra tid til anden fejl ind. Vi diskuterer langt over…"
2010-11-14
Solid principle for SW structuring
Some solid principle for SW structuring: Solid (object-oriented design)
2010-10-05
The internal variable $! in Bash
Great use of a Internal variable in Bash
Using $! for job control:
Using $! for job control:
possibly_hanging_job & { sleep ${TIMEOUT}; eval 'kill -9 $!' &> /dev/null; }
# Forces completion of an ill-behaved program.
# Useful, for example, in init scripts. 2010-09-22
Eclipse encoding problems in c-build console
Jeg had the problem a bow with eclipse c-build console. I found a solution in this post
The solution is to set the LANG environment variable for gcc to en_US.ISO-8859-1.
The solution is to set the LANG environment variable for gcc to en_US.ISO-8859-1.
2010-09-20
ruby rmodbus serialport
I like to use ruby for make test. On some project I must use a serial modbus for testing. For that rmodbus is a fine lib. However the installation of it on windows can be a little tricky because the serialport lib has to be compiled. Here is how it done.
Install ruby with the one click installer:
http://rubyinstaller.org/
Then install the DevKit for ruby
http://rubyinstaller.org/add-ons/devkit/
http://github.com/oneclick/rubyinstaller/wiki/Development-Kit
The rmodbus lib is located the
http://rmodbus.heroku.com/
http://github.com/flipback/RModBus
Installation is however quite simple:
gem install rmodbus
Install ruby with the one click installer:
http://rubyinstaller.org/
Then install the DevKit for ruby
http://rubyinstaller.org/add-ons/devkit/
http://github.com/oneclick/rubyinstaller/wiki/Development-Kit
run these commands in the directory in which DevKit has been extracted:ruby dk.rb initruby dk.rb install
The rmodbus lib is located the
http://rmodbus.heroku.com/
http://github.com/flipback/RModBus
Installation is however quite simple:
gem install rmodbus
Nuttx
An Open source RTOS, based on a micro kernel design and licensed under BSD. That sounds cool: http://nuttx.sourceforge.net/
2010-09-17
ifconfig output
What does all the counters in the ifconfig output mean? e.g. frame, dropped... this page describe some of them.
eth1 Link encap:Ethernet HWaddr 02:83:13:02:24:00
inet addr:192.168.20.13 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2169 errors:0 dropped:0 overruns:0 frame:0
TX packets:1769 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1009774 (986.1 KiB) TX bytes:210912 (205.9 KiB)
eth1 Link encap:Ethernet HWaddr 02:83:13:02:24:00
inet addr:192.168.20.13 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2169 errors:0 dropped:0 overruns:0 frame:0
TX packets:1769 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1009774 (986.1 KiB) TX bytes:210912 (205.9 KiB)
Subscribe to:
Posts (Atom)

