a fork from  http://git.code.sf.net/p/qmodbus/code