Thanks for sharing your solution with us. It does appear to be a rather 'roundabout way.
I would have hoped that your experiment results would have shown us where the timing problem was:
-t0: send ping to google, wireshark timing
-t1: receive ping from google, wireshark timing
-t2: send packet to device, wireshark timing
-t3: receive packet from device, wireshark timing
-t4: Perl code does something (probably send out a ping so that
we get a time stamp with wireshark).
t2-t1 is the time for Perl to send the packet
t3-t2 is the time for the device to respond
t4-t3 is the time for Perl to do something
However, I am glad that you got a solution!
Perl is like the "Swiss army knife of the internet".
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|