04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Section 10. Troubleshooting<br />

10.4.3.3 CommsMemFree(3)<br />

CommsMemFree(2) number will be. A PakBusNodes setting of 50 is normally<br />

enough, and can probably be reduced in small networks to free memory, if<br />

needed. Reducing PakBusNodes by one frees 224 bytes. If<br />

CommsMemFree(2) drops and stays down for no apparent reason (a very rare<br />

occurrence), please contact a <strong>Campbell</strong> <strong>Scientific</strong> applications engineer since the<br />

<strong>CR1000</strong> operating system may need adjustment.<br />

CommsMemFree(3) Specifies three two-digit fields, from right (least<br />

significant) to left (most significant):<br />

• lilfreeq = "little" IP packets available<br />

• bigfreeq = "big" IP packets available<br />

• rcvdq = IP packets in the received queue (not yet processed)<br />

At start up, with no TCP/IP communication occurring, this field will read 1530,<br />

which is interpreted as 30 lilfreeq and 15 bigfreeq available, with no packets in<br />

rcvdq. The Ethernet and/or the PPP interface feed rcvdq. If<br />

CommsMemFree(3) has a reading of 21428, then two packets are in the received<br />

queue, 14 bigfreeq packets are free (one in use), and 28 lilfreeq are free (two in<br />

use). These three pieces of information are also reported in the IP trace (p. 457)<br />

information every 30 seconds as lilfreeq, bigfreeq, and recvdq. If lilfreeq or<br />

bigfreeq free packets drop and stay near zero, or if the number in rcvdq climbs<br />

and stays high (all are rare occurrences), please contact a <strong>Campbell</strong> <strong>Scientific</strong><br />

application engineer as the operating system may need adjustment.<br />

CommsMemFree(3) is encoded as follows:<br />

where,<br />

CommsMemFree(3) = lilfreeq + bigfreeq*100 + rcvdq*10000 +<br />

sendq*1000000<br />

lilfreeq = number of small TCP packets available<br />

bigfreeq = number of large TCP packets<br />

rcvdq = number of input packets currently waiting to be serviced<br />

sendq = number of output packets waiting to be sent<br />

The following expressions can be used to pick the values out of the<br />

CommsMemFree(3) variable:<br />

lilfreeq = CommsMemFree(3) % 100<br />

bigfreeq = (CommsMemFree(3) / 100) % 100<br />

rcvdq = (CommsMemFree(3) / 10000) % 100<br />

sendq = (CommsmemFree(3) / 1000000) % 100<br />

434

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!