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.

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

run these commands in the directory in which DevKit has been extracted:
ruby dk.rb  init
ruby 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)