background image

Page 9 

wastes  resources  and  in  some  cases  can  actually  cause  the  microDAQ  to  hang  and  require  a 
power cycle. 
 
The data rate over TCP is vulnerable to low level operating system considerations, in particular any 
‘delayed  acknowledgement’  algorithm.    Windows  ®  attempts  to  suppress  too  many 
acknowledgments for small data packets swamping a network by inserting a 200ms (default) delay 
in the generation of a second acknowledgement to a communicating device. Since the microDAQ’s 
communication  consists  of  many  small  packets  at  a  high  repeat  rate,  this  algorithm  has  a 
catastrophic effect on the microDAQ’s delivered bandwidth (effectively limiting it to tens of Hz).  
The  bottleneck  can  be  removed  by  altering/adding  a  value  of  the  registry  key: 
HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\

{adapter GUID}

  

(HKLM  =  HKEY_LOCAL_MACHINE; 

{adapter  GUID  = 

the  network  adapter  being  used  by  the 

Windows PC), though this should be done only in consultation with the network administrator.  
In Windows 2000, the DWORD value TcpDelAckTicks should be set to 0 in the registry key. 
In Windows XP (must have SP1 or later installed), the DWORD value TcpAckFrequency should be 
set to 1 in the registry key. 
 
Also note that the TCP channel of the microDAQ is subject to buffering both within the unit itself 
(the  size  of  the  buffer  depending  on  number  of  channels  and  data  rate), and within Windows ® 
itself.  At low data rates, it is possible to receive single complete data packets, however as the data 
rate  increases  Windows ® is more likely to deliver chunks of data 2k to 4k bytes in length, with 
arbitrary boundaries with respect to microDAQ’s data packets.  User software should take this into 
account to avoid losing data. 
 
Please note that if streaming at high data rates it is essential that a good network infrastructure is 
used.  It  is  recommended  that  any  streaming  is  performed  over  a  ‘private’  network  (i.e. 
disconnected from any corporate network structure) to reduce the number of packets flying around 
the network. It is also highly recommended that a high speed managed network switch with a large 
store  and  forward  buffer  is  used  between  the  microDAQ  and  client  PC,  particularly  if  several 
microDAQs are being used together to acquire data. 
 

4.2.5  Control Via TCP. 

User commands are handled in a similar way as the RS232 commands above, however it should 
be noted that the acknowledgement bytes are doubled for the purposes of the internal workings of 
the  TCP  software,  so  a  positive  acknowledgement  is  returned  as  ‘**’  and  a  negative 
acknowledgement as ‘!!’. 
 
The  argument  regarding  loss  of  acknowledgements  in  the  data  stream  holds  good  for  the  TCP 
channel,  and  it  is  recommended  that  a  ‘Stream  Off’  or  ‘Standby’  is  sent  before  any  other 
command. 
 

4.3 CAN 
4.3.1  Overview. 

The  CAN  channel  is  somewhat  different  to  the  above  channels,  in  that  it  is  not  a  simple  serial 
communications channel, the data being sent in discrete chunks on specified message identifiers. 
 

4.3.2  CAN Baudrate. 

The microDAQ offers a single ‘standard’ CAN bus connection running at a selectable baudrate, the 
user having access to the values used for the microDAQ’s microcontroller CAN timing registers to 
enable  customising  of  sample  point  and  jump  width.    Default  values  for  a  number  of  common 
baudrates (1M, 500k, 250k, 125k, 100k, 50k (Hz)) are available from the microDAQSetup program. 
The  values  are  calculated  based  on  the  microcontroller  CAN  peripheral  clock  of  60MHz.  Users 
should  bear  this  in  mind  when  calculating  suitable  values  for  BRP,  TSEG1,  TSEG2  and  SJW  for 
their own physical network implementation. 

Summary of Contents for microDAQ

Page 1: ...Folgate Road North Walsham Norfolk NR28 0AJ ENGLAND Tel 01692 500555 Fax 01692 500088 microDAQ Pressure Scanner Acquisition System USER PROGRAMMING GUIDE e mail info chell co uk Visit the Chell websit...

Page 2: ...ified in this manual may impair the user s protection Chell Document No 900167 Issue 1 3 ECO 1270 Date 28th November 2014 Chell s policy of continuously updating and improving products means that this...

Page 3: ...ol 7 4 1 4 Control Via RS232 7 4 1 5 Data Rate 7 4 2 TCP 8 4 2 1 Overview 8 4 2 2 Connection 8 4 2 3 TCP Protocol 8 4 2 4 TCP Data Rate 8 4 2 5 Control Via TCP 9 4 3 CAN 9 4 3 1 Overview 9 4 3 2 CAN B...

Page 4: ...received command may be acknowledged if required The following sets out the essentials of the command protocol the data packet format for all channels in addition to the message identifier arrangemen...

Page 5: ...ASCII The response to the command is to echo back the string Test command rxd ok n where n is the value of the parameter byte This may be checked from a terminal program by typing dC ie byte values 6...

Page 6: ...pressure value is averaged over the time between data delivery cycles Rezero and Rebuild G 71 None Requests a rezero followed by a calibration table rebuild with the calculated zero offsets being app...

Page 7: ...rnal RAM Disable the data delivery for the chosen channel Get Status 63 0 Short 1 With temp 2 Full 3 Pressure reading 4 Temp readings 5 Excitation reading 6 Hall sensor read 7 Firmware ID 8 Unit seria...

Page 8: ...channels A calibration table rebuild is then performed Hardware Trigger T 84 byte 0xab a 0 Disable a 1 Enable b 0 RS232 b 1 TCP b 2 CAN b 3 Internal RAM b 4 Internal RAM stop on full Enables or disabl...

Page 9: ...in ascending order as comma delimited ASCII engineering units ie degrees C The full status data contains the above followed by fields for the setup options of the microDAQ Each field is comma delimite...

Page 10: ...ations bandwidth as well as less processor overhead within the microDAQ it is recommended that engineering unit conversions be applied at the client Protocol Example data format Note 16 bit LE 0x00 0x...

Page 11: ...ing to 10kHz from the default maximum 20kHz due to internal issues regarding string handling The 16 bit little ended protocol is most efficient from the microDAQ s viewpoint the data being calibrated...

Page 12: ...account to avoid losing data Please note that if streaming at high data rates it is essential that a good network infrastructure is used It is recommended that any streaming is performed over a priva...

Page 13: ...ty to avoid overlap of message identifiers in a multiple microDAQ installation Data are two bytes unsigned scaled to full scale ie 0x0000 might represent 5psi 0xffff 5psi The data are user selectable...

Page 14: ...MSB CH18 MSB CH22 MSB CH26 MSB CH30 MSB 2 CH2 LSB CH6 LSB CH10 LSB CH14 LSB CH18 LSB CH22 LSB CH26 LSB CH30 LSB 1 CH1 MSB CH5 MSB CH9 MSB CH13 MSB CH17 MSB CH21 MSB CH25 MSB CH29 MSB 0 Ch1 LSB Ch5 LSB...

Page 15: ...The offset from the base identifier may be selected as being 0x10 0x20 0x30 0x40 or 0x50 For example the base data message identifier of 0x220 might be set up to receive commands over CAN on message...

Page 16: ...on the selected CAN message type single message or multiple message IDs as detailed in section 4 3 3 above In addition to the above an internal RAM dump sends a 9 or 6 byte header which is sent as soo...

Page 17: ...ion of the standard command set and can be transmitted all through the same comms connection These commands change the valves accordingly to perform a zero function or a purge function and also to sim...

Reviews: