home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / p / pb920430.zip / PBNEW.TXT < prev    next >
Windows Setup INFormation  |  1992-04-30  |  43KB  |  1,018 lines

  1.  
  2.  
  3.  
  4.          "I write so little documentation because so 
  5.          few people bother to read it." - Anon.
  6.  
  7. PB User's Documentation Rev. 0.03
  8.  
  9. THE PACSAT BROADCAST GROUNDSTATION PROGRAM
  10.  
  11. This documentation relates to versions of PB with version dates 911220 
  12. or newer. Users of older PB versions are strongly encouraged to update! 
  13. If you just want to find out what's new in this release, jump to the 
  14. REVISION NOTES at the end of this document.
  15.  
  16. [As of 29/4/92 only UO-22 supports the broadcast directory system used by PB. 
  17. The other satellites should follow before the end of may.]
  18.  
  19. PB is an groundstation program for receiving messages and message directories 
  20. from satellites running the PACSAT Protocol Suite. 
  21.  
  22.  
  23.  
  24. NECESSARY EQUIPMENT
  25.  
  26. PB will run on any IBM compatible Personal Computer running MS-DOS. [Version 
  27. 5.0 and 3.x have been extensively tested.] PB will run well under MS Windows 
  28. 3.0 and 3.1 if your machine has the computing power. Although PB will run on a 
  29. PC or XT machine, serious users of UO-22 will desire at least a 12 MHz AT. A 
  30. hard disk (or RAMDISK) is also necessary. 
  31.  
  32. PB requires a terminal node controller (TNC) which supports the KISS interface 
  33. mode. TNCs with KISS EPROMs are supported, as are TNCs which recognise the 
  34. TAPR-style commands for entering KISS mode. 
  35.  
  36. INSTALLATION
  37.  
  38. You should make a subdirectory for each PACSAT satellite you expect to 
  39. operate. From each of these, there should be a subdirectory called "MSGS." For 
  40. example, if you expect to operate PACSAT, LUSAT and UOSAT-5, you might have 
  41. the following:
  42.  
  43. C:\PAC
  44. C:\PAC\MSGS
  45. C:\LU
  46. C:\LU\MSGS
  47. C:\UO22
  48. C:\UO22\MSGS
  49.  
  50. Copy the default configuration file - PB.CFG - into each of the satellite 
  51. directories (C:\PAC, C:\LU and C:\UO22). 
  52.  
  53. Edit the configuration files - specifically, you must set "mycall" in 
  54. each file to your callsign. Each configuration file must contain a 
  55. different "bdcstcall" line to identify the satellite.
  56.  
  57. Place a copy of the example select equation file - PB.EQN - into each of the 
  58. satellite subdirectories. (To activate this file and any modifications you 
  59. make to it, you need the line "select pb.eqn" in your PB.CFG file.)
  60.  
  61. Place a copy of PBHELP.HHH in each of the satellite directories.
  62.  
  63. Place the main program - PB.EXE - in a subdirectory where DOS can find it.
  64.  
  65. Use a terminal program to set your TNC for NO PARITY and 8 DATA BITS. To do 
  66. this on a TAPR-like TNC, type the commands
  67.  
  68. PARITY 0
  69. AWLEN 8
  70. RESTART
  71.  
  72. If you do not do this, PB will not start up correctly.
  73.  
  74. To run PB for a particular satellite, you now change to the appropriate 
  75. satellite directory and type "PB." Using the example above,
  76.  
  77. C:\>CD LU
  78. C:\LU>PB
  79.  
  80. PB will place all of its working files in the satellite subdirectory.
  81.  
  82.  
  83. 1 PRINCIPALS OF OPERATION
  84.  
  85. Two aspects of PB and PACSAT operation are unfamiliar to users of terrestrial 
  86. packet radio: the client/server relationship and the use of "broadcast mode". 
  87. Both of these concepts are essential to an in-depth understanding of PB.
  88.  
  89. 1.1 Client Server Operation
  90.  
  91. In most terrestrial BBS systems, you use a simple terminal program on your 
  92. computer. After instructing your TNC to connect to a BBS, you type commands 
  93. which are received and processed by the BBS. The BBS will respond by sending 
  94. you messages, menus and help in plain text which is displayed by your terminal 
  95. program. You type characters which directly command the BBS.
  96.  
  97. In PACSAT operations, this direct connection between your commands and the 
  98. software running on the satellite is removed. The software running on your PC 
  99. is not just a terminal program. At the "front," PB provides a user interface 
  100. which allows you view message directories, request and read messages. At the 
  101. "back," PB implements the PACSAT Broadcast Protocol, a computer-to-computer 
  102. protocol for transferring messages and directory entries from the satellite to 
  103. the groundstation. When necessary - because of your keyboard activity or 
  104. internal automatic operations - PB requests portions of directories and files 
  105. files from the satellite. The satellite software receives requests from many 
  106. stations on the uplink, and provides the desired data on the downlink. The 
  107. groundstation is the "client," and the satellite is the "server."
  108.  
  109. PB implements this client/server system in a way that minimises (or removes) 
  110. direct, immediate interaction between you and the satellite. These operations 
  111. are automated, and controlled by satellite and groundstation software. The 
  112. messages and directories received by PB are stored on your hard disk, so you 
  113. can view and manipulate them when the satellite is not in range. This means 
  114. that you can set to PB automatically download messages while you are 
  115. unavailable, and then you can view the new mail later.
  116.  
  117. 1.2 Broadcast Mode
  118.  
  119. Every station in the satellite's footprint can hear everything transmitted on 
  120. the downlink, and the PACSAT Broadcast Protocol was designed to make the best 
  121. use of this information and as much as possible to avoid repeating data. PB 
  122. works along with the satellite to capitalize on on the broadcast-nature of the 
  123. downlink.
  124.  
  125. When a PACSAT satellite transmits a message, the message is broken into 
  126. chunks, each chunk is put in a packet and the packets are send in UI frames. 
  127. (UI frames are not part of connected mode AX.25, but are the frames usually 
  128. associated with "beacon" transmissions.) Each of these broadcast packets 
  129. carries a chunk of message information, the message ID number, and a number 
  130. giving a rough indication of the message type. Of course, when a message is 
  131. broken into several of packets, each packet must contain enough information to 
  132. tell the groundstation where in the message that packet belongs. For further 
  133. information see the PACSAT Broadcast Protocol definition.
  134.  
  135. By default, PB identifies and stores all new broadcast packets from all 
  136. messages which it hears. This way, if someone in your footprint downloads a 
  137. message and you later decide that you want to look at that message, PB will 
  138. already have a copy of the message stored away for you. This is sometimes 
  139. called "message grabbing."
  140.  
  141. When PB is capturing a message, it might miss some of the message packets. 
  142. These missing packets leave "holes" in the message, and usually you won't want 
  143. to view a message with holes in it. PB can fill the holes either by waiting 
  144. until the holes happen to be transmitted, or by actively requesting that the 
  145. PACSAT send the necessary holes. (See "Message Status" below.) Incomplete 
  146. messages - ones with holes - are stored in files with the extension .ACT, 
  147. along with a list of the holes which has an extension .HOL. 
  148.  
  149. Completed messages are stored in files with the extension .DL.
  150.  
  151. In general, you will only be interested in .DL files. DL files may contain any 
  152. kind of information which can be stored on a computer. Some of the messages 
  153. will be text messages like on a terrestrial BBS, but others will be images, 
  154. digital voice, computer programs and other binary files. Most long messages 
  155. are compressed using programs like ZIP and LHA. When you have received a DL 
  156. file, use the program PHS (or the similar program PFH) to convert the DL file 
  157. into a standard file for your PC.
  158.  
  159. 1.3 Broadcast Directories
  160.  
  161. Directories tell you what messages are available on the satellite, and give 
  162. some details of each message. Since all groundstations need the message 
  163. directory, PACSATs also broadcast their directories in a UI frames which can 
  164. be received and used by everyone in the footprint. PB will always listen for 
  165. directories on the downlink and save new or updated message directories for 
  166. you to view. By viewing message directories (see "Message Status" below), you 
  167. can decide whether you want to make sure to get a complete DL file for a 
  168. particular message.
  169.  
  170. 1.4 Message Status
  171.  
  172. The most important window in PB is the Directory View window. You can either 
  173. have PB start automatically displaying this window, of you can switch to it by 
  174. typing V.
  175.  
  176. When you are in the Directory View window, you can see a message's status in 
  177. the column headed "S". The status markers are interpreted as follows:
  178.  
  179. n - Never
  180.  
  181. This message will not be automatically downloaded and filled, nor will it be 
  182. saved if it is overheard when another station is downloading it.
  183.  
  184. g - Grab
  185.  
  186. This is the next step up from "Never". It means that the message will be saved 
  187. if it is overheard when another station is downloading it, but PB will 
  188. NOT automatically try to fill all holes in the message to create a .DL file.
  189.  
  190. A - Automatic
  191.  
  192. This is the standard automatic status. It means that the message will be 
  193. completely downloaded and filled automatically by PB, without your 
  194. intervention. When the message is completely filled, the status indicator will 
  195. will go to a SQUARE WHITE BLOCK. 
  196.  
  197. P - Priority automatic
  198.  
  199. This allows you to place some messages "before" others in the automatic 
  200. downloading system. All Priority messages will have their holes filled before 
  201. any messages with Automatic status. 
  202.  
  203. SQUARE WHITE BLOCK - Downloaded
  204.  
  205. The message has been completely downloaded. When this first happens, the 
  206. message will be in the PB working directory, with the name xxxx.DL, where xxxx 
  207. is replaced by the message number.
  208.  
  209. E - Error (permanent)
  210.  
  211. The server has indicated that this message cannot be downloaded. Either it is 
  212. not there or you are not allowed access to it. This status is permanent, until 
  213. you change it manually.
  214.  
  215. e - Error (temporary)
  216.  
  217. The server has indicated that the message cannot presently be downloaded, but 
  218. might become downloadable later. This status is cleared when you exit PB and 
  219. the previous (A/P) status is restored.
  220.  
  221. N.B. - If you changed the status of a Downloaded message to A/P/g, you will 
  222. receive another copy of that message.
  223.  
  224.  
  225.  
  226. 2.  CONFIGURING PB
  227.  
  228. When PB runs, it reads a configuration file. The default file name is PB.CFG, 
  229. and it must be in the current DOS directory. Alternatively, you can specify 
  230. the complete DOS path to and name of the configuration file as a command line 
  231. argument when you run PB. (If you specify the path/filename, you will probably 
  232. also need a "pbpath" entry in the config file to make sure that PB actually 
  233. looks for and stores all of its files where you want them. See "pbpath" 
  234. below.) The configuration file must be a pure ASCII file like AUTOEXEC.BAT or 
  235. CONFIG.SYS. It must not be edited with a normal word processor which may 
  236. insert control characters.
  237.  
  238. A sample configuration file comes with the PB program release. Some entries 
  239. you must edit. Others you might need to. Others you can if you want to. Others 
  240. you are discouraged from editing. All users will need to have the proper 
  241. "mycall" entry, and you may also have to use set "port" and "speed" to make 
  242. sure that PB can communicate with your TNC. Examine the "Your Station" and "PB 
  243. Startup" sections below.
  244.  
  245. Your Station
  246. ------------
  247.  
  248. mycall <call>[-<ssid>]
  249.  
  250. Your station callsign. <call> is 6 or fewer ASCII characters. <ssid> is an 
  251. optional number from 1 to 15. Please do not use an <ssid> unless you have a 
  252. very good reason.
  253.  
  254. alias <string>                  
  255.      - or - 
  256. myaddr <string>
  257.  
  258. This allows you to set your network address, handle, or whatever you call it. 
  259. This can be long and complicated, whereas the "mycall" must be an AX.25 
  260. callsign. The select equation system alows you to use your alias when selecting 
  261. messages. 
  262.  
  263. "alias" and "myaddr" do the same thing, and the last one in PB.CFG will be the 
  264. one that is used. 
  265.  
  266. There is no need to set your alias to "ALL" to get messages addressed to 
  267. "ALL," since the Select Equation processor will allow you to do this. The 
  268. alias is actually intended to give you another name to use on the satelite, or 
  269. a place to put your complete network address. For example, if I wanted to use 
  270. my internet address on the satellite, I would set alias to 
  271. "J.W.Ward@ee.surrey.ac.uk." The maximum length of the alias is 40 characters.
  272.  
  273. bdcstcall <call>[-<ssid>]
  274.  
  275. This identifies the satellite you want to communicate with. The 
  276. distribution file is for UOSAT5-11, so when you make a configuration 
  277. file for another satellite, you'll need to change this. Some other 
  278. satellite calls are:
  279.      pacsat-11
  280.      lusat-11
  281.  
  282. port 1|2 
  283.           Default COM1
  284.  
  285. Sets the communications port. Only COM1 and COM2 are supported. This is the 
  286. port your TNC should be connected to. If you normally use a TSR serial 
  287. communications driver (COMBIOS, MBBIOS, etc) remove it before running PB.
  288.  
  289. speed <baud rate> 
  290.           Default 19200 
  291.  
  292. This is the speed that you have your TNC asynchronous port set to. This 
  293. is not directly related to the downlink or uplink speed of the 
  294. satellite, although it is recommended that you run your asynchronous 
  295. port faster thatn your satellite port. For UO-22 this means running the 
  296. asynchronous port at 19200 baud.
  297.  
  298.  
  299. PB Startup
  300. ----------
  301.  
  302. screenmode <zoom | dir>
  303.  
  304. If you want PB to start in the directory view mode, use "screenmode dir." To 
  305. start in a zoomed main window use "screenmode zoom." Otherwise, PB will start 
  306. in the normal main window mode.
  307.  
  308. defaultsel <Fx>
  309.      default F1
  310. When you go to view mode, before you type any function keys, the active 
  311. selection will be the one associated with the function key specified in the 
  312. "defaultsel" entry. For example, if you are using the selection equations 
  313. built in to PB, "defaultsel F2" in your PB.CFG file will show only messages 
  314. addressed to you. This can be combined with "screenmode" to jump directly to a 
  315. desirable directory view when you execute PB.
  316.  
  317. select <filename>
  318.  
  319. If you have a "select" line in PB.CFG, PB's built-in select equations will be 
  320. replaced by the select equations in the file you have named.
  321.  
  322. pbpath <dos path> 
  323.           Default is the current logged directory
  324.  
  325. PB will look for and create certain data and message files during its 
  326. operation. If you don't have a "pbpath" entry in your configuration file, PB 
  327. will use the currently logged DOS directory. If you want to make sure you know 
  328. where PB is putting its files, put a "pbpath" entry in the configuration file. 
  329. For example
  330.  
  331.      pbpath c:\pacsats\uosat3
  332.  
  333. would tell PB to find/put all of its working files in the directory 
  334. "\pacsats\uosat3" on drive C.
  335.  
  336. silent 0|1
  337.           Default 0
  338. Set slient to 1 if you don't want any warning bells.
  339.  
  340. trace 0|1
  341.           Default 0
  342. Little general importance. Trace is used to monitor connected mode activity on 
  343. the downlink. 
  344.  
  345.  
  346. PB Shutdown
  347. -----------
  348.  
  349. exitafter <minutes>
  350.           Default 0
  351. If this is not 0, PB will exit if it hasn't heard a packet or received a 
  352. keypress for the given number of minutes. 
  353.  
  354. actdays <days> 
  355.           Default 3
  356. Tells PB how long to keep incomplete message fragments, e.g. .HOL 
  357. and .ACT files. 
  358.  
  359.  
  360. TNC Oddities
  361. ------------
  362.  
  363. Some TNCs require time delays to get them safely into and out of KISS mode 
  364. which is used by PB. The following configuration options should be used. If 
  365. all else fails, you can put  KISS-only EPROM in your TNC or put your TNC into 
  366. KISS mode yourself before running PB. If you do either of these things, put 
  367. "kisstnc 1" into PB.CFG.
  368.  
  369. restart_delay <delay after restart cmd> 
  370.           Default 60  (in 1/18 second increments, e.g. 3.333 seconds)
  371. This delay tells PB how long your TNC takes to get into KISS mode. Most TNCs 
  372. flash their lights 3 times while entering KISS mode, and PB must not try to 
  373. communicate with the TNC during this time. 
  374.  
  375. aea_delay <delay before restart cmd> 
  376.           Default 1 (as above, e.g. 0.055 seconds)
  377. This delay is necessary on some "smart" TNCs. If your TNC won't go into KISS 
  378. mode, then try bumping this up a lot to cure it.
  379.  
  380. break_delay <delay after break> 
  381.           Default 9 (as above, e.g. 0.5 seconds)
  382. This delay allows the TNC to get its cmd: processor sorted out before we try 
  383. to send commands to the TNC.
  384.  
  385. kisstnc 0|1 
  386.           Default 0
  387. If you have KISS EPROMs in your TNC, or otherwise put your TNC into KISS mode 
  388. before running PB, set this to 1.
  389.  
  390. tncid <id> 
  391.           Default 0
  392. Little general importance. Allows you to set a multidrop KISS address.
  393.  
  394. txd <tx keyup delay msec> 
  395.           Default 150 msec
  396. This is the number of msec between the keying of your transmitter and the 
  397. transmission of data. 
  398.  
  399. paclen <bytes> 
  400.           Default 244
  401. When your station requests something from the satellite, it asks the satellite 
  402. to transmit packets of this length. If you have not set up your downlink 
  403. receiver for peak performance, you may wish to reduce this length. In 
  404. general, you should not change this.
  405.  
  406. This has no effect on uplink packet size.
  407.  
  408.  
  409. Kiss Logs
  410. ---------
  411.  
  412. The next three entries (logbbframes, logdbframes, logothers) control what KISS 
  413. frames get stored in the KISS log files. KISS log files are "raw output" from 
  414. your KISS TNC. They are stored in files called yymmddhh.KSS, where yymmddhh is 
  415. replaced by the current time. These files are useful for debugging, keeping 
  416. statistics or using as input to other data processing programs like DTLM.
  417.  
  418. logbbframes 0|1 
  419.           Default 0
  420. If 1, put all broadcast protocol data frames in the KISS log.
  421.  
  422. logdbframes 0|1 
  423.           Default 0
  424. Little general interest. If 1, put all directory broadcast protocol frames in 
  425. the KISS log.
  426.  
  427. logothers 0|1 
  428.           Default 0
  429. Some general use. If 1, put all frames which are not broadcast directory or 
  430. data frames into a KISS log file. This might be used to capture telemetry 
  431. frames for later processing.
  432.  
  433.  
  434.  
  435. Automatic Transmissions
  436. -----------------------
  437.  
  438. automode <0|1>
  439.           Default 1
  440. If this is set to 0, no automatic transmissions will take place.
  441.  
  442. dirupdatemins <minutes> 
  443.           Default 15
  444. Tells how many minutes after bringing the directory up-to-date, the directory 
  445. should be updated again. This is set to some time greater than the average 
  446. pass, and allows PB to be left running overnight. The directory will then be 
  447. updated every pass, even though you haven't quit and re-run PB. 
  448.  
  449.  
  450. PFH Files
  451. ---------
  452.  
  453. maxdirfilesize <bytes>
  454.           Default 25 kbytes
  455. The size of individual PB__xxxx.PFH files. Do not increase this value 
  456. significantly, as it will interact with "maxdirload" and lead to RAM shortage.
  457.  
  458. maxdirload <bytes>
  459.           Default 100 kbytes
  460. When PB is executed, it loads the most recent PB__XXXX.PFH files into memory 
  461. for your main directory view. PB stops reading .PFH files when maxdirload 
  462. bytes have been loaded. This size check is only made after each complete .PFH 
  463. file is loaded, hence the warning about "maxdirfilesize." 
  464.  
  465.  
  466. Batch File Creation
  467. -------------------
  468.  
  469. To assist in the post processing of newly-received files, PB will create a 
  470. batch file containing the file number for every newly-received file. 
  471. This batch file can be run after the pass. See the "Automation" section 
  472. for more discussion.
  473.  
  474. If you want to customise the entries in postpass.bat, you can set two 
  475. strings: one (bats1) which comes before the file number and one (bats2) 
  476. which comes after the file number. For example, if pb.cfg contained the 
  477. lines
  478.  
  479.      bats1 'this is the file number'
  480.      bats2 'just downloaded.'
  481.  
  482. then each line in postpass.bat would look like
  483.  
  484.      this is the file number 45ab just downloaded.
  485.  
  486. The default is for PB not to create postpass.bat. If you want to turn 
  487. this feature on, put the line
  488.  
  489.      makebat 1
  490.  
  491. into PB.CFG.
  492.  
  493.  
  494. Deep Secrets
  495. ------------
  496.  
  497. ndupesearch <depth> 
  498.           Default 100
  499. Very little general importance. When a new directory entry is received from 
  500. the satellite, it may be for an updated version of a spacecraft log file. PB 
  501. will scan the newest <depth> entries in your directory to find out if this is 
  502. true. 
  503.  
  504. maxpfhsize <bytes> 
  505.           Default 500
  506. Very little general importance. The PFH is the header or envelope which 
  507. encloses messages on the PACSAT server. This PFH is also the "directory entry" 
  508. which PB stores for the directory view mode. PFHs can be any length. If people 
  509. start using really big ones, you might have to increase this number. A message 
  510. will show up in the message window if this is ever the case.
  511.  
  512. autoselect 0|1 
  513.           Default 1
  514. When a new or updated directory entry is received, PB will check your select 
  515. equations to see if the message should be marked Never, Priority or Auto. The 
  516. default select equations make all messages to "mycall" and "alias" Priority 
  517. mesages, all reasonable-sized messages to "all" as Auto messages, and leave 
  518. everything else alone. There aren't any real reasons to turn this off.
  519.  
  520. graball 0|1
  521.           Default 1
  522. Because of the way broadcast mode works, you may hear part of a message being 
  523. transmitted to someone else before you have received the directory entry (PFH) 
  524. for that message. If you have graball on, these bits of messages will be 
  525. captured and saved unless they are blocked by a "blockftype" entry. You should 
  526. leave this at the default unless you NEVER WANT TO RECEIVE ANYTHING.
  527.  
  528. blockftype <decimal file type>
  529.           Default none.
  530. There is a select equation which specifies message which you Never want to 
  531. download. However, the select equation can only mark a message "N" when the 
  532. directory entry for that message is received. PB may receive data packets from 
  533. a message before receiving the message directory entry. By default, these 
  534. message packets would be saved in a .ACT file. To make sure that bits of 
  535. unwanted message types do not sneak in before PB receives directory entry, use 
  536. "blockftype" entries in your PB.CFG file. For example, to make sure that you 
  537. never receive any fragments of BBS traffic messages, put
  538.      blockftype 2
  539. into your PB.CFG. You may have up to 20 blocked file types. It is considered 
  540. antisocial to block file types that you later download, since this causes 
  541. unnecessary downlink traffic. 
  542.  
  543. Remember that blocked file types can become selected if they meet your Auto or 
  544. Priority select equation criterea.
  545.  
  546. showgrabs 1|0 
  547.           Default 0
  548. Setting this to 1 tells PB to print a message explaining why each message 
  549. heard on the downlink is being grabbed or not grabbed.
  550.  
  551.  
  552.  
  553. 3.0 MENU SELECTIONS
  554.  
  555. There are two menus. One is the "Main Menu" and the other is the "Directory 
  556. View Menu". You will generally want to interact with PB through the Directory 
  557. View Menu. Each menu has a (H)elp option which you should read.
  558.  
  559. 3.1 Directory View Menu
  560.  
  561. P, A, G, or N to change the status of the message currently hilighted by the 
  562. cursor. See "Message Status" above for descriptions of the various status 
  563. settings.
  564.  
  565. Right Arrow to see an expanded view of the Subject and Keywords fields.
  566.  
  567. Left Arrow to return to the normal view.
  568.  
  569. ENTER to see a more extensive display of the message header (PFH).
  570.  
  571. Up and Down Arrows move the cursor.
  572.  
  573. Page Up and Page Down. To change the display page. 
  574.  
  575. Q to Quit the program, that is to leave PB completely.
  576.  
  577. X to Quit the program and return an error code of 1, useful in .BAT files.
  578.  
  579. M or ESC to return to the Main Menu.
  580.  
  581. H to see the help screen for Directory View mode.
  582.  
  583. V to view a downloaded message. (See "Message Viewing")
  584.  
  585. R to see archived directory files. (See "Archived Directories")
  586.  
  587. F to find a particular numbered message. (See "Finding a Message")
  588.  
  589. The function keys are programmed by the select equation system. The built in 
  590. select equations assign the function keys to 
  591.  
  592. F1 - to show all non-BBS and non F4 messages.
  593. F2 - show only those entries with your call or alias in the To field.
  594. F3 - show only those entries with "all" in the To field.
  595. F4 - show only spacecraft log files. 
  596. F5 - show Downloaded messages
  597. F6 - show Requested (A or N) messages
  598. F7 - show Keplerian element files
  599. F8 - show Image files (UO-22 CCD or those with "IMAGE" in keywords)
  600. F9 - show messages with "NEWS" in the keywords
  601. F10- show messages with PB or PG in the keywords
  602. F11- show BBS traffic.
  603. F12- show messages with high precedence (e.g. PFH "priority" > 0)
  604.  
  605. 3.1.1 Message Viewing
  606.  
  607. Once a file has been downloaded (indicated by a WHITE SQUARE WHITE BLOCK in 
  608. the status column) you can try to view it from within PB. Place the 
  609. cursor onto the message and type V. If possible, PB will display the 
  610. message text, one screenfull at a time, allowing you to use the PAGE 
  611. DOWN key to see more text.
  612.  
  613. The advantage of PB's crude built-in file viewer over more comprehensive 
  614. commercial and shareware viewers is that while you view a file PB still 
  615. processes data from the satellite downlink and pursues any automated 
  616. operations you have requested. Shelling out to another viewer would 
  617. suspend PB and cause loss of downlink data.
  618.  
  619. Message viewing is a feature in the process of being implemented and its 
  620. internal workings may be completely revamped soon. It does, however, 
  621. depend on some basic assumptions which will remain fixed. It assumes 
  622. that there is a subdirectory called "MSGS" off of the satellite 
  623. subdirectory, and that .DL files are in the satellite subdirectory, and 
  624. files without their PFHs are in the MSGS subdirectory. All file base 
  625. names are hexadecimal message numbers. File name extensions for 
  626. uncompressed text messages are .MSG, and ZIP files are .ZIP.
  627.  
  628. Presently, view does the following in an attempt to view the message:
  629.  
  630. If a .DL file for the message exists, PB calls the DOS batch file called 
  631. DOFILE.BAT, giving the message number as an argument. If no .DL file is found, 
  632. this step is skipped.
  633.  
  634. If a .MSG file for the message is found in the subdirectory called MSGS off of 
  635. the current directory, that file will be viewed as an ASCII file.
  636.  
  637. If a .ZIP file for the message is found in the subdirectory called MSGS off of 
  638. the current directory, the batch file ZIPVIEW.BAT is executed, with the 
  639. message number as an argument. The batch file should leave an ASCII file 
  640. called TEMP in the MSGS subdirectory. This TEMP file will be viewed.
  641.  
  642.  
  643. 3.1.2 Archived Directories
  644.  
  645. New or updated directory entries recieved from the satellite are stored in a 
  646. file with a name like PB__nnnn.PFH, where nnnn is replaced by an ID number. 
  647. When the current .PFH file is too big, a new file, with the next higher 
  648. ID number, is opened.
  649.  
  650. When you run PB, the .PFH files are read into memory starting with the file 
  651. with the highest number (the newest directories). PB stops reading in .PFH 
  652. files after about 100 kbytes (by default). This means that you will usually 
  653. have 100 kbytes of the most recent directory entries to view in your Directory 
  654. View. Obviously, some of the older .PFH files will not have been read into 
  655. RAM.
  656.  
  657. You can view these older files, one at a time, by using the aRchive view. From 
  658. the Directory View menu, type "R". This will read the next older directory 
  659. file into memory. You can filter this view using the function keys, and you 
  660. can even select files for Auto or Priority downloading (if they are still on 
  661. the satellite). 
  662.  
  663. To read an older .PFH file, use the "-" (minus) key.
  664.  
  665. To read a newer .PFH file, use the "+" key.
  666.  
  667. To return to the main, current directory, type "M." 
  668.  
  669. 3.1.3 Finding A Message
  670.  
  671. If you type "F," you will be prompted for a message number. Type the number, 
  672. followed by return. PB will search your directory for the message you want. If 
  673. it is found and it is selected by your current Function key selection, the 
  674. directory window will be redisplayed with the message on the top line. If it 
  675. is not found, or found but not in the current selection, an error message will 
  676. be displayed.
  677.  
  678.  
  679. 3.2 The Main Menu
  680.  
  681. Download: Priority Auto Grab Never Fill Dir   Info. View dir. Quit! Help.
  682.  
  683. 3.2.1 Priority, Auto, Grab and Never 
  684.  
  685. These operate the same as they do on the Directory View Menu, except that you 
  686. will be prompted to enter the desired message number. This is primarily used 
  687. to request messages before you have received their Directory entries, and is 
  688. of little use.
  689.  
  690. 3.2.2 Fill 
  691.  
  692. This is a manual command which tells PB to request a particular message from 
  693. the If you have not yet received any part of the message, Fill will request 
  694. that the satellite transmit the entire message for you. satellite. If you 
  695. already have part of the message, Fill will request only the missing portions 
  696. ("holes"). Fill does not alter the message status, and the message will not 
  697. automatically be completely filled unless it is already marked by the A or P 
  698. command. 
  699.  
  700. If you want to use Fill instead of allowing PB to operate automatically, type 
  701. ctrl-A to turn automatic mode off. This will be indicated by "Auto: Disabled" 
  702. on the Status Bar.
  703.  
  704. 3.2.3 Dir
  705.  
  706. This sends a directory request to the satellite, to update your directory. 
  707. This is an immediate, manual command. Generally, the directory will be updated 
  708. when you run PB, after PB has downloaded any messages with Automatic or 
  709. Priority status. It is best to let PB automatically update your directory 
  710. after Automatic and Priority operations are complete, since this gives you the 
  711. best opportunity to re-use other people's directory entries.
  712.  
  713. 3.2.4 eXit
  714.  
  715. You can type "X" to exit PB and cause it to return errorlevel 1. This is 
  716. useful if you use a POSTPASS.BAT file and you sometimes don't want to go 
  717. through all of the post pass processing.
  718.  
  719.  
  720. 3.3 PB Performance Monitoring
  721.  
  722. 3.3.1 On-Screen Status Indicators
  723.  
  724. There are several status indicators which are displayed along the bottom 
  725. of the screen. For example, you might see:
  726.  
  727. DIR: Old         AUTO: Idle                  s:0900  b:121234  d:083452 e:1
  728.  
  729. The "DIR:" entry tells you whether your directory is complete and up to date. 
  730. If it says "DIR: Old" then you have a complete directory, but it hasn't been 
  731. updated since you started PB this time.  "DIR: Up-to-Date." tells you that the 
  732. directory is complete and up to date. "DIR: Part (10)" tells you that you do 
  733. not have a complete directory - e.g. you have a partial directory - and that 
  734. there are 10 missing holes in the directory. Each hole in the directory may 
  735. contain any number of files.
  736.  
  737. The "AUTO:" entry tells you what the automatic hole-filling processor is 
  738. doing. "AUTO: Idle" means that the directory is up to date, and there are no 
  739. files marked for Priority or Automatic downloading. "AUTO: Dir" tells you that 
  740. PB is trying to fill your directory holes. "AUTO: 234b" tells you that PB is 
  741. filling holes in file 234b. "AUTO: Disabled" indicates that the automatic hole 
  742. filler has been disabled. You can re-enable it by typing Control-A.
  743.  
  744. The "s:" indicator tells the speed at which you have been receiving data on 
  745. the downlink, in bytes per second. This is calculated roughly every five 
  746. seconds. Thus, "s:0900" means that you have received 45000 bytes in the last 5 
  747. seconds.
  748.  
  749. The "b:" counter counts the number of bytes in message broadcast frames you 
  750. have received since starting PB. This includes all message broadcasts on the 
  751. downlink, not just those which were important to your station.
  752.  
  753. The "d:" counter counts the number of bytes in directory broadcast frames you 
  754. have received since starting PB. This includes all directory broadcasts on the 
  755. downlink, not just those which were important to your station.
  756.  
  757. Both the "b:" and the "d:" counter include Broadcast Protocol overhead of 
  758. about 11 bytes per packet, but they do not include the AX.25 overhead, which 
  759. is near 18 bytes per frame.
  760.  
  761. The "e:" indicator counts the number of broadcast message data or directory 
  762. packets which were corrupted between reception by your TNC and processing by 
  763. the PB program. "e:" can increase because PB runs too slowly on your PC,  
  764. because some other TSR program running on your PC is turning hardware 
  765. interrupts off for too long, or because of faults in your serial cable. You 
  766. can sometimes tell which by examining the messages printed when PB exits. Do 
  767. not worry if you get a few "e:" counts during a pass, especially if you are 
  768. using the directory and message views a lot - keyboard activity can cause 
  769. missed characters or buffer overruns.
  770.  
  771.  
  772. 3.3.2 On-Exit Status Message
  773.  
  774. When you exit from PB, you will see a message like the following:
  775.  
  776. Serial I/O performance:
  777. Missed interrupts (overrun errors) :    0
  778. Slow PB execution (4K buffer full) :    0
  779.  
  780. Missed interrupts are when PB's serial interrupt driver did not get a chance 
  781. to remove the one character from your serial port before another character 
  782. arrived. This is because interrupts were disabled for more than one character-
  783. period. PB does not disable interrupts. DOS, the BIOS, or a TSR program must 
  784. be responsible.
  785.  
  786. PB has a 4096 byte buffer in which its interrupt driver stores incoming data 
  787. from the TNC. If PB is occupied writing to the disk or talking to the user for 
  788. too long, this interrupt buffer will overflow and data will be lost. The exact 
  789. number following this message is somewhat meaningless. These errors are 
  790. usually caused by you lingering at PB prompts or doing something that takes a 
  791. lot of disk access.
  792.  
  793. 3.3.3 Througput Log
  794.  
  795. When you exit from PB, PB writes a log entry to the file PB.LOG. The entry 
  796. tells the start and end time of the pass, the maximum downlink throughput 
  797. reached during the pass (in a 5-second window), the total number of bytes 
  798. received during the pass, and the downlink througput averaged over the entire 
  799. duration of the pass. An example of a PB.LOG message is shown below.
  800.  
  801. 92/04/29 17:10:41 - 17:10:47 : Max=1222 Bps  Gross=1188 Bps  Total Bytes=7128
  802.  
  803. 3.3.4 Error Logs
  804.  
  805. PB may create a file called PBERROR.LOG. This indicates a critical error which 
  806. may be caused by something as simple as a write-protected .PFH file or 
  807. something as unlikely as a program bug. Examine the file and/or send it on to 
  808. the program developers at SSTL.
  809.  
  810.  
  811. 4.0 CONTROL KEYS
  812.  
  813. Control keys are now used to toggle ON/OFF certain aspects of PB operation.
  814.  
  815. ctrl-a     Toggle automatic operations on/off.
  816. ctrl-z     Zoom/Unzoom the Downlink Window.
  817. ctrl-d     Toggle the display of data bytes in the Downlink Window.
  818. ctrl-t     Toggle trace mode in the Downlink Window.
  819. ctrl-h     Toggle the display of AX.25 headers in the Downlink Window.
  820. ctrl-x     Toggle the hexadecimal display of data in the Downlink Window.
  821.  
  822.  
  823.  
  824. 5.0 SELECTION EQUATIONS 
  825.  
  826. For a complete description of the select-equation system, see the accompanying 
  827. documentation "PB Select Equations." If you use the PB.CFG file which is 
  828. distributed with PB, you will get the select equations built in to PB.
  829.  
  830. These include equations for each of the function keys:
  831.  
  832. F1 - to show all non-BBS and non F4 messages.
  833. F2 - show only those entries with your call or alias in the To field.
  834. F3 - show only those entries with "all" in the To field.
  835. F4 - show only spacecraft log files. 
  836. F5 - show Downloaded messages
  837. F6 - show Requested (A or N) messages
  838. F7 - show Keplerian element files
  839. F8 - show Image files (UO-22 CCD or those with "IMAGE" in keywords)
  840. F9 - show messages with "NEWS" in the keywords
  841. F10- show messages with PB or PG in the keywords
  842. F11- show BBS traffic.
  843. F12- show messages with high precidence (e.g. PFH precedence > 0)
  844.  
  845. and two equations for automatic downloading of messages:
  846.  
  847. priority = messages to "mycall", "myaddr" or "alias."
  848.  
  849. automatic = messages to "all" that are less than 10 kbytes long.
  850.  
  851. If you wish to define your own select equations, you may begin by modifying 
  852. the supplied PB.EQN file. You must add the line "select pb.eqn" to your PB.CFG 
  853. file in order to activate this file.
  854.  
  855. 6.0 AUTOMATION
  856.  
  857. Since its initial release, features have steadily been added to PB 
  858. allowing automated operation. (PB does not currently support message 
  859. uploading, so these features have necessarily been related to 
  860. downloading and post-processing of received mail.)
  861.  
  862. Automatic downloading of the appropriate messages is an integral part of 
  863. PB. If you use only the built-in select equations, your station will 
  864. automatically get complete copies of all short (< 10 kbytes) bulletins 
  865. and all mail addressed to you. By re-defining the select equations 
  866. "auto" and "priority," you can select virtually any subset of messages 
  867. on the satellite for automatic downloading. Downloaded messages will end 
  868. up in the satellite's subdirectory, with file names xxxxxxxx.DL, where 
  869. "xxxxxxxx" is replaced by a hexadecimal representation of the messgage 
  870. number.
  871.  
  872. You will want to process messages after the pass - removing their 
  873. satellite headers (PACSAT File Headers or "PFHs"), decompressing them, 
  874. and perhaps moving them to different parts of your hard disk and running 
  875. other programs. 
  876.  
  877. 6.1 Automatic Exit
  878.  
  879. You will need to exit PB after each pass for for your post pass 
  880. processing to begin. You can tell PB that you to automatically exit a 
  881. certain number of minutes after it last hears the satellite. This is 
  882. done with a line in the PB.CFG file:
  883.  
  884. exitafter x
  885.  
  886. where "x" is the number of minutes. If PB hears no data for "x" minutes, 
  887. and you haven't typed any keys, PB will exit.
  888.  
  889.  
  890. 6.2 Post Pass Processing
  891.  
  892. During a pass, PB can create a batch file to help with 
  893. this post processing.
  894.  
  895. To turn on the batch file generation, put the line "makebat 1" into your 
  896. PB.CFG file. This tells PB to make an entry in the file "POSTPASS.BAT" 
  897. for every downloaded file. Each entry in POSTPASS.BAT is in the form
  898.  
  899. call dofile xxxxxxxx
  900.  
  901. where xxxxxxxx is replaced by the message number in HEX. This allows you 
  902. to write your own batch file called DOFILE.BAT which then actually 
  903. processes the messages. 
  904.  
  905. We believe that this is much simpler than attempting to process the 
  906. messages by using the DOS batch file directive 
  907.  
  908. "for %a in (*.dl) do <command>"
  909.  
  910. An example DOFILE.BAT file is included with the PB release. This shows 
  911. how you can use the utility PFH_VAL to find the values of various header 
  912. items and process the .DL file based on these values. The example 
  913. DOFILE.BAT only properly processes uncompressed text messages and text 
  914. messages compressed by PKZIP. You will want to customize DOFILE.BAT for 
  915. your own uses.
  916.  
  917. Note that by leaving a text file called file xxxxxxxx.MSG or a PKZIP 
  918. file called xxxxxxxx.ZIP in the subdirectory MSGS, you can take 
  919. advantage of PB's built-in file view feature. 
  920.  
  921. You can customize the contents of the POSTPASS.BAT file by using "bats1" 
  922. and "bats2" lines in your PB.CFG file. "bats1" should be set to a string 
  923. which will replace "call dofile" in the POSTPASS.BAT entries, and 
  924. "bats2" will be placed after the message number in each entry. For 
  925. example, having the lines
  926.  
  927. bats1 'call myprog'
  928. bats2 '.dl'
  929.  
  930. in your PB.CFG will cause the POSTPASS.BAT entries to look like:
  931.  
  932. call myprog xxxxxxxx.dl
  933.  
  934. Note that strings for bats1 and bats2 are enclosed in single quotes.
  935.  
  936.  
  937. 6.3 Putting It Together
  938.  
  939. To put all of this automation to work, you must run PB from a batch file 
  940. constructed for your particular station. An example called RUNPB.BAT has 
  941. been provided in the PB release. This file first runs PG to take care of 
  942. any uploading, then runs PB, and then calls POSTPASS to handle any 
  943. new .DL files.
  944.  
  945.  
  946.  
  947. 7  GUIDE TO FILES
  948.  
  949. PB.EXE          The main executable program.
  950. PFH_VAL.EXE     A program used to extract PFH values as errorlevels.
  951. PHS.EXE         A program used to display and remove PFHs from .DL files.
  952. PFHADD.EXE      A program used to add PFHs to files for uploading
  953.  
  954. nnnnnnnn.DL     A downloaded message number nnnnnnnn WITH ITS PFH ON.
  955.  
  956. PB__nnnn.PFH     Contain PFHs used for directory view. Higher numbers are 
  957.                newer files. Not all files need be present. Don't use any 
  958.                other file names matching PB__????.PFH.
  959. PFHDIR.HOL      Contains the list of "holes" missing from your directory.
  960.  
  961. SLIST.DAT       Contains entries for the 1000 messages most recently 
  962.                downloaded, marked for downloading, or marked N. Each entry 
  963.                is 16-bit message number, 16-bit status, 16 bit timestamp.
  964.  
  965. nnnnnnnn.ACT     Contains fragments of message nnnnnnnn.
  966. nnnnnnnn.HOL     Contains a list of holes missing from message nnnnnnnn.
  967.  
  968. PB.LOG          Contains a station performance log.
  969. PBERROR.LOG     Contains critical error reports.
  970. PBDEBUG.LOG     Contains debug information.
  971. yymmddhh.KSS     Contains raw KISS frames as received from your TNC.
  972. POSTPASS.BAT     A file created by PB for post-pass use.
  973. DOFILE.BAT      A file supplied with PB or customised by you to process a 
  974.                single .DL file.
  975. RUNPB.BAT       A file showing how to automate station operation, assuming 
  976.                you have some way of detecting the times of passes and 
  977.                execute RUNPB.BAT.
  978. PB.EQN          A file supplied with PB or customised by you containing 
  979.                select equations.
  980.  
  981.  
  982. 8  A FINAL NOTE
  983.  
  984. This software and documentation Copyright (C) 1991, 1992 Surrey 
  985. Satellite Technology, Ltd. 
  986.  
  987. The PB software was written by engineers working for Surrey Satellite 
  988. Technology (SSTL), which is a company formed by the UoSAT Unit and the 
  989. University of Surrey to fund UoSAT missions and research into low-cost 
  990. satellite technology. This software is provided free-of-charge for use 
  991. by amateurs on amateur satellites because UoSAT and SSTL were founded by 
  992. radio amateurs and have always worked closely with AMSAT-UK. 
  993.  
  994. Although you pay nothing for this software, it was fairly expensive to 
  995. develop. AMSAT-UK supports the UoSAT Unit with periodic donations toward 
  996. specific projects, and we strongly encourage you to support AMSAT-UK and 
  997. your national AMSAT group. Contact AMSAT-UK at 
  998.  
  999. 94 Herongate Road 
  1000. Wanstead Park 
  1001. London, E12 5EQ 
  1002. United Kingdom.
  1003.  
  1004. This software may not be used for communications by non-amateurs or 
  1005. outside the amateur bands without the explicit consent of:
  1006.  
  1007. Surrey Satellite Technology Limited
  1008. Senate House
  1009. The University of Surrey
  1010. Guildford, 
  1011. Surrey, GU2 5XH 
  1012. United Kingdom.
  1013.  
  1014. This software must be distributed free-of-charge, with the sole 
  1015. exception that the distributor may recover the cost of disks and 
  1016. postage.
  1017.  
  1018.