Think this is wrong. The presentation format is being written instead of the actual data. The actual raw data must be written in stead.

Use [`Buffer.fill`](http://nodejs.org/api/buffer.html#buffer_buf_fill_value_offset_end) instead. Note that a conflict is created if you try to read and write the same packet if you do this (because the val.data is set to the presentation format (hex string) upon reading). I will make another comment below about this.

Recommendation: have `val.dataRaw` and `val.dataHexStr`.