"Fossies" - the Fresh Open Source Software Archive

Member "sendpage-1.001001/docs/pc-testing.txt" (3 Jan 2008, 2513 Bytes) of package /linux/privat/old/sendpage-1.001001.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 This document is a really rough example of how to examine a paging central to
    2 figure out the paging limits for a particular pager or service.
    3 (See "examples/configure-pc" for a quick perl script that does this part.)
    4 
    5 
    6 start with PC configuration defaults.
    7 send a page just to make sure you CAN get a page.
    8 
    9 set "esc=true"
   10 Send page with "\n" and "\t"'s (eg "This\nis a CR and this\tis a tab.")
   11 
   12 if you see \n and \t okay, you have a real 1.8 TAP, and you're done.
   13 otherwise:
   14    remove "esc=true"
   15    set "ctrl=true"
   16    Send page with "\n" and "\t"'s (eg "This\nis a CR and this\tis a tab.")
   17 
   18    if both \n and \t show up correctly, you have a weak TAP, but you're done.
   19    if only the \n was displayed correctly, you can pass \n's only, so:
   20 	unset "ctrl=true"
   21 	set "lfok=true"
   22 	and you're done
   23    otherwise:
   24 	unset "ctrl=true"
   25 	you can't send ctrl chars at all.  sorry!
   26 
   27 
   28 
   29 now, gauge the size of your paging length (test with ctrl/esc/lfok off):
   30 
   31 page of 100 chars:
   32 a123456789b123456789c123456789d123456789e123456789f123456789g123456789h123456789i123456789j123456789
   33 
   34 page of 200 chars:
   35 a123456789b123456789c123456789d123456789e123456789f123456789g123456789h123456789i123456789j123456789A123456789B123456789C123456789D123456789E123456789F123456789G123456789H123456789I123456789J123456789
   36 
   37 page of 240 chars:
   38 a123456789b123456789c123456789d123456789e123456789f123456789g123456789h123456789i123456789j123456789A123456789B123456789C123456789D123456789E123456789F123456789G123456789H123456789I123456789J123456789a123456789b123456789c123456789d123456789
   39 
   40 page of 250 chars:
   41 a123456789b123456789c123456789d123456789e123456789f123456789g123456789h123456789i123456789j123456789A123456789B123456789C123456789D123456789E123456789F123456789G123456789H123456789I123456789J123456789a123456789b123456789c123456789d123456789e123456789
   42 
   43 page of 300 chars:
   44 a123456789b123456789c123456789d123456789e123456789f123456789g123456789h123456789i123456789j123456789A123456789B123456789C123456789D123456789E123456789F123456789G123456789H123456789I123456789J123456789a123456789b123456789c123456789d123456789e123456789f123456789g123456789h123456789i123456789j123456789
   45 
   46 start with X=100 chars
   47 start with SIZE=100 chars
   48 
   49 try to send a page:
   50 send a page with SIZE chars
   51 if it xmit fail or go through truncated?
   52 	decrease X by half
   53 	decrease SIZE by X
   54 else
   55 	increase SIZE by X
   56 try page again
   57 	
   58 Some PCs will stall on a "continued.." block, so you may need to force splits
   59 at 250 - pinsize - 2 chars (usually 240).
   60 
   61 
   62 -Kees Cook
   63 kees@outflux.net