No valid database connection Table './usr_web422_1/jos_dbcache' is marked as crashed and last (automatic?) repair failed SQL=REPLACE INTO `jos_dbcache` (id, groupname,expire,value) VALUES ('c046c4a280b07cd9ab75586f42db7c51','joomfish-en-GB',FROM_UNIXTIME('1283551363'),COMPRESS('a:2:{s:6:\"output\";s:0:\"\";s:6:\"result\";a:7:{i:0;O:8:\"stdClass\":8:{s:2:\"id\";s:2:\"21\";s:5:\"title\";s:11:\"Breadcrumbs\";s:6:\"module\";s:15:\"mod_breadcrumbs\";s:8:\"position\";s:10:\"breadcrumb\";s:7:\"content\";s:0:\"\";s:9:\"showtitle\";s:1:\"1\";s:7:\"control\";s:0:\"\";s:6:\"params\";s:73:\"showHome=1\nhomeText=Home\nshowLast=1\nseparator=\nmoduleclass_sfx=\ncache=0\n\n\";}i:1;O:8:\"stdClass\":8:{s:2:\"id\";s:2:\"18\";s:5:\"title\";s:18:\"Language selection\";s:6:\"module\";s:23:\"mod_jflanguageselection\";s:8:\"position\";s:4:\"left\";s:7:\"content\";s:0:\"\";s:9:\"showtitle\";s:1:\"0\";s:7:\"control\";s:0:\"\";s:6:\"params\";s:81:\"type=dropdownplusimage\nshow_active=1\ninc_jf_css=0\nmoduleclass_sfx=\ncache_href=1\n\n\";}i:2;O:8:\"stdClass\":8:{s:2:\"id\";s:2:\"26\";s:5:\"title\";s:10:\"Quicklinks\";s:6:\"module\";s:14:\"mod_exmenu-j15\";s:8:\"position\";s:4:\"left\";s:7:\"content\";s:0:\"\";s:9:\"showtitle\";s:1:\"1\";s:7:\"control\";s:0:\"\";s:6:\"params\";s:883:\"class_sfx=\nmoduleclass_sfx=\ncache=0\nmenutype=quicklinks\nmenu_source_type=menu\nmenu_source_value=\nmenu_source_show_section=default\nmenu_source_show_category=default\nmenu_source_show_content_item=default\nmenu_source_order=ordering\ndefault_content_itemid=\nmenu_style=select_tree\nmenu_view_plugin_name=\nmenu_images=0\nexpand_menu=0\nexpand_min=\nmax_depth=10\nhide_first=0\nshow_parent=0\nparent_item=\ncurrent_level_begin=0\nlevel_begin=\nsplit_menu=\nmenu_count=1\nquery_cache=0\nparse_access_key=3\ntitle_attribute=0\nlevel_class=0\nactive_menu_class=0\nelement_id=0\nmenu_template=1\nmenu_template_name=menu.html\nindent_image=0\nindent_image1=\nindent_image2=\nindent_image3=\nindent_image4=\nindent_image5=\nindent_image6=\nspacer=\nend_spacer=\nselect_list_submit_text=Go\nselect_list_submit_hide=0\ncall_getitemid=1\ncurrent_item=smart\ncurrent_item_duplicates=convert_active\naccess_keys=\nexact_access_level=0\n\n\";}i:3;O:8:\"stdClass\":8:{s:2:\"id\";s:2:\"23\";s:5:\"title\";s:15:\"Site navigation\";s:6:\"module\";s:14:\"mod_exmenu-j15\";s:8:\"position\";s:4:\"left\";s:7:\"content\";s:0:\"\";s:9:\"showtitle\";s:1:\"1\";s:7:\"control\";s:0:\"\";s:6:\"params\";s:881:\"class_sfx=\nmoduleclass_sfx=\ncache=0\nmenutype=mainmenu\nmenu_source_type=menu\nmenu_source_value=\nmenu_source_show_section=default\nmenu_source_show_category=default\nmenu_source_show_content_item=default\nmenu_source_order=ordering\ndefault_content_itemid=\nmenu_style=css_tree\nmenu_view_plugin_name=\nmenu_images=left\nexpand_menu=0\nexpand_min=\nmax_depth=10\nhide_first=0\nshow_parent=0\nparent_item=\ncurrent_level_begin=0\nlevel_begin=\nsplit_menu=\nmenu_count=1\nquery_cache=0\nparse_access_key=3\ntitle_attribute=0\nlevel_class=0\nactive_menu_class=2\nelement_id=0\nmenu_template=0\nmenu_template_name=menu.html\nindent_image=0\nindent_image1=\nindent_image2=\nindent_image3=\nindent_image4=\nindent_image5=\nindent_image6=\nspacer=\nend_spacer=\nselect_list_submit_text=Go\nselect_list_submit_hide=0\ncall_getitemid=1\ncurrent_item=smart\ncurrent_item_duplicates=convert_active\naccess_keys=\nexact_access_level=0\n\n\";}i:4;O:8:\"stdClass\":8:{s:2:\"id\";s:2:\"32\";s:5:\"title\";s:10:\"Newsletter\";s:6:\"module\";s:15:\"mod_jnewsletter\";s:8:\"position\";s:5:\"right\";s:7:\"content\";s:0:\"\";s:9:\"showtitle\";s:1:\"1\";s:7:\"control\";s:0:\"\";s:6:\"params\";s:534:\"moduleclass_sfx=\ncssfile=default.css\neffect=default\nlistids=0\nred_url=\nlinear=0\nintrotext=Subscribe to the hermocom email newsletter, if you would like to be informed about project status and software updates.\nshowlistname=0\ndefaultchecked=1\nshownamefield=1\ncolumn1=0\ncolumn2=0\ncolumn3=0\ncolumn4=0\ncolumn5=0\ndropdown=0\nselecteddrop=0\nfieldsize=18\nposttext=\nreceivehtmldefault=0\nshowreceivehtml=0\nbutton_text=\nbutton_img=\nbutton_text_change=\nbutton_img_change=\nmootools_btntext=\nmootools_boxw=200\nmootools_boxh=210\nmod_align=\ncache=0\n\n\";}i:5;O:8:\"stdClass\":8:{s:2:\"id\";s:2:\"33\";s:5:\"title\";s:4:\"Poll\";s:6:\"module\";s:8:\"mod_poll\";s:8:\"position\";s:5:\"right\";s:7:\"content\";s:0:\"\";s:9:\"showtitle\";s:1:\"1\";s:7:\"control\";s:0:\"\";s:6:\"params\";s:46:\"id=1\nmoduleclass_sfx=\ncache=1\ncache_time=900\n\n\";}i:6;O:8:\"stdClass\":8:{s:2:\"id\";s:2:\"20\";s:5:\"title\";s:14:\"hermocom login\";s:6:\"module\";s:9:\"mod_login\";s:8:\"position\";s:5:\"right\";s:7:\"content\";s:0:\"\";s:9:\"showtitle\";s:1:\"1\";s:7:\"control\";s:0:\"\";s:6:\"params\";s:92:\"cache=0\nmoduleclass_sfx=\npretext=\nposttext=\nlogin=1\nlogout=1\ngreeting=1\nname=1\nusesecure=0\n\n\";}}}'))
hermocom Logo  
productivity everywhere  
Home Knowledge base HP Palmtops WWW/LX setup example
03 | 09 | 2010
No valid database connection Table './usr_web422_1/jos_dbcache' is marked as crashed and last (automatic?) repair failed SQL=REPLACE INTO `jos_dbcache` (id, groupname,expire,value) VALUES ('f2f6c9f76f7ab3c60a018f2f843975c1','joomfish-en-GB',FROM_UNIXTIME('1283551363'),COMPRESS('a:2:{s:6:\"output\";s:0:\"\";s:6:\"result\";a:1:{i:0;O:8:\"stdClass\":41:{s:2:\"id\";s:2:\"55\";s:5:\"title\";s:30:\"A complex WWW/LX setup example\";s:5:\"alias\";s:5:\"wwwlx\";s:11:\"title_alias\";s:0:\"\";s:9:\"introtext\";s:24760:\"

\r\n


\r\n

Contents of this page:\r\n

\r\n\r\n

\r\n


\r\n\r\n\r\n

Introduction:

\r\n\r\nWWW/LX is a software package made by and downloadable from D&A Software\r\nwhich allows Internet access with the DOS-based Hewlett Packard palmtops 100LX, 200LX, 1000CX and\r\nOmnigo 700LX.
\r\nYou can download WWW/LX (for free) at\r\nftp://ftp.dasoft.com/pub/WWW. The file is named \"www3.zip\".

\r\n\r\nIt contains a TCP/IP stack with built-in IrDA and Ethernet support (in addition to\r\nthe usual PPP and SLIP protocols which are needed for modem connections or direct serial\r\nconnections to other computers) and the package contains several clients for almost every kind\r\nof purpose. An email client, a news reader client, ftp, telnet, finger and HV, a limited but useful\r\nWWW browser and get, which lets you get web pages automatically. Another very useful addition\r\nhas been developed by Tony Hutchins using ROBOT/LX, an Internet robot program: ROBOWEB/LX.\r\nIt combines get and ROBOT/LX so that you can get Internet pages or even whole sites\r\nonto your palmtop for offline reading. See this link\r\nfor details.

\r\n\r\nIt is relatively easy to set up WWW/LX and Post/LX for basic purposes.\r\nHowever, there are so many amazing sophisticated possibilities, which are not\r\ncovered by the setup programs which come with WWW/LX and must be created manually.

\r\n\r\nHere are examples which should give you some ideas of what is really possible with WWW/LX.\r\nI have never seen another Internet software package which is so powerful and rich of features\r\nas WWW/LX. And in addition it is extremely user-customizable. See below.\r\n\r\nI won´t give you details here of how basic setups\r\nwork, because you can read that in the WWW/LX documentation. Here I assume that you are familiar with the\r\nbasics already.\r\n\r\n\r\n\r\n

Basics of my setup:

\r\n\r\nI use almost every possible kind of Internet connection, so you will find examples here which are useful,\r\nregardless which kind of connection you want to use:\r\n
    \r\n
  • Modem connection over the serial port with several ISPs\r\n
  • Modem connection via PCMCIA modem with several ISPs\r\n
  • Mobile connection via IrDA-enabled GSM mobile phone\r\n
  • Ethernet connection via PCMCIA Ethernet card\r\n
  • direct serial connection to a PC which is connected to the Internet (internet connection sharing)\r\n
  • IrDA connection to another PC which is connected to the Internet (internet connection sharing)\r\n
\r\n\r\nTake this as a \"snapshot\" of my current WWW/LX configuration and have fun with it!

\r\n\r\nMy main application, which acts as the \"central\", is Post/LX. WWW/LX is loaded resident\r\nand activated\r\neverytime I press F5 in Post/LX to establish a connection. If you don´t use email that much,\r\nbut more often use ftp or HV, it may be better for you to start www.exe manually giving the\r\nsetup to use as a parameter. It will then connect instantly and return to the DOS\r\nprompt, so you can do whatever you want once the connection is established. If\r\nthat is the way you want to use WWW/LX, most parts of my setup are not useful for you. I use Post/LX as the central application of my setup.

\r\n\r\nIn general, my www.cfg only contains five basic setups, independent from the ISP to use.\r\nSo my www.cfg is kept small and thus doesn´t need so much memory. www.cfg is always loaded entirely\r\ninto RAM, so it really makes a difference if you have for example 10 setups\r\n(one for each modem / ISP combination using two modems and 5 ISPs) or only two setups for the\r\ntwo modems and do the ISP choice externally using the little utility wwwset.

\r\n\r\nYou could even work with just ONE \"general\" www setup and modify all relevant parameters externally.\r\nHowever, I have not choosen that way because I want still to be able to use www.exe as a stand-alone\r\nprogram without having to use the external wwwset utility.

\r\n\r\n\r\n\r\n

My WWW/LX setup:

\r\n\r\n\r\nMy five basic www.cfg setups are [Modem1], [Modem2], [IrDA], [Ether] and [PPPD].
\r\nI also have TERM-IR and TERM-K, which are explained below.\r\n
    \r\n
  • Modem1 is for an external modem on COM1\r\n
  • Modem2 is for a connection via PCMCIA modem (COM2)\r\n
  • IrDA is for mobile phone connections over IrDA, for either Internet or SMS\r\n
  • Ether is for a connection to my home PC via Ethernet card\r\n
  • PPPD is for serial or IrDA connection to my home PC or laptop running Linux and the pppd (PPP deamon)\r\nand internet connection sharing (=IP forwarding and IP masquerading)\r\n

    \r\n
  • TERM-K and TERM-IR is for a dumb terminal which enables you to send AT commands to\r\na modem or mobile phone (IrDA) and connect manually (for debugging purposes).\r\nIt requires you to have telnet.exe\r\n(also available on the dasoft ftp server) and you have to call it from the DOS prompt\r\nthat way: www.exe -d TERM-[IR|K] \"!telnet local\"
    \r\nIR stands for IrDA, K for Cable.\r\n
\r\n\r\n\r\n\r\n

My Post/LX setup:

\r\n\r\n\r\nPost/LX is set up in a way that I only need to press F5, then it launches a batch file \"setcom.bat\"\r\nvia the post.cfg parameter \"PreOnline\". setcom.bat determines the connected hardware and decides,\r\nwhich www setup to use.\r\nIf it finds out that I want to connect via modem, it lets me choose an ISP.\r\nOtherwise it changes the active www setup instantly to the appropriate one\r\nfrom the five setups mentioned above. In addition I let setcom ask me (only for the setups where it\r\nis useful), if I want to let WWW/LX disconnect after the online run of Post/LX, i.e.\r\ndirectly after\r\nmail sending / receiving. If I want to surf the web with HV after transmitting mail for\r\nexample, I choose to keep the connection. In other cases, for example when I will have\r\nan expensive connection\r\nvia mobile phone, and I´m sure I don´t want to do anything else than sending the email I\r\njust wrote, I can choose \"yes, disconnect!\" and the connection is terminated as fast as possible\r\nautomatically after the Post/LX online run. This is done via the post.cfg \"PostOnline\" parameter\r\nwhich invokes a batch file after every online run.

\r\n\r\nI also use Post/LX for SMS sending and receiving via IrDA and my mobile phone. For this purpose,\r\nI have created a keyboard macro in post.cfg, which lets me send and receive all SMS just by placing the mobile\r\nphone near the palmtop´s IR port and fressing F8 in Post/LX.\r\nNote that if you are used to use F8 for pther purposes\r\n(for example for marking messages during you read them),\r\nyou should NOT use that macro. I do never use F8 with the functionality Post/LX gives to it,\r\nand in the main screen of Post/LX F8 doesn´t have any functionality anyway. So I could choose\r\nF8 as my SMS macro activating key.

\r\nFor more info on how to setup PDU for SMS processing please\r\ndownload PDU from Stefan Peichl´s\r\nhomepage\r\nand read the documentation.

\r\n\r\nHere are some screenshots of my Post/LX main screen:

\r\nThe main screen with some folders and mailboxes\r\n(SMS box on top so that the F8 macro works, see post.cfg below!):
\r\n

\r\nHere I pressed Shift-F5: Only the one \"Default\" WWW/LX setup is shown. No need anymore to choose\r\nanything here!\r\n

\r\n\r\nThis shows some of my \"Externals\" entries (Menu-X-X). Hotkey \"S\" chooses \"SMS\" (so that the F8 SMS macro\r\nworks, see post.cfg below!)

\r\n\r\n\r\n\r\n\r\n\r\n

My cfg config files:

\r\n\r\n\r\nOkay, enough words, I will now show you my cfg and batch files and add comments everywhere\r\nI think it´ necessary.\r\nAgain: Please read the WWW/LX documentation carefully in order to understand everything.\r\nI won´t answer questions covered there.

\r\n\r\nClick here to see my www.cfg file (don´t use the file as is, because it contains\r\nhtml tags! Load it into your browser by clicking on the link and then mark, copy and paste! Passwords\r\nare replaced by dummy strings.)\r\n\r\n

\r\nClick here to see my post.cfg file (don´t use the file\r\nas is, because it contains\r\nhtml tags! Load it into your browser by clicking on the link and then mark, copy and paste! Passwords\r\nare replaced by dummy strings, most folder and mailbox data is removed because it is not relevant here)\r\n\r\n\r\n\r\n

My batch and other involved files:

\r\n\r\nNow follow the batch files and a robot script (thanks to Tony Hutchins who provided this script!)\r\nwhich enable the magic of my setup ;-)\r\n

\r\nFirst I provide the setcom.bat file which is invoked directly after pressing\r\nF5 in Post/LX (by the PreOnline parameter in the cfg).\r\n
\r\nThen follows the batch file choosisp.bat, which is invoked from within setcom.bat\r\nand which is responsible for the appropriate Dial and login paramteres, depending on the\r\nISP which shall be used. choosisp.bat is only invoked if setcom.bat recognizes a modem, either\r\non COM1 or in the PCMCIA slot.
\r\nAfter that you will see postonl.bat, which handles the disconnecting after the online run (invoked by\r\nthe PostOnline parameter in the cfg.
\r\nThereafter at.scr (a robot script) is shown which setcom needs in order to\r\ndistinguish, if the device connected to IrDA or the serial port is a modem or another computer.

\r\nAnd finally, I will show you my postlx.bat, which I use after booting the palmtop to invoke\r\nPost/LX with WWW/LX loaded resident.

\r\n\r\nFor all this you need the following programs:\r\n

    \r\n
  • port1.exe or modem.com which looks if there is something connected to COM1\r\n
  • wwwset.exe, which sets WWW setup parameters externally\r\n
  • dis.com which is part of the WWW/LX package (terminates connection)\r\n
  • Robot/LX (Robot/LX), which executes SCR scripts\r\n
  • lxcic.com which detects, recognizes and enables PCMCIA cards\r\n
  • PDU for SMS processing\r\n
  • choice.com which is part of DOS, but not included in the palmtop ROM.\r\n
  • LXETH, the Ethernet packet driver for the LX, if you use an Ethernet card\r\n
  • maxdos, if you want to reserve as much DOS memory as possible for external programs\r\n like an editor or HV.\r\n
\r\nDownload links for these utilities (as far as they are not part of the WWW/LX package) are provided\r\ndirectly within the batch files below (where the utilities are used),\r\nsimply click on the links and download the utilities.\r\n\r\n

\r\nClick here to see my setcom.bat file (don´t use the file as is, because it contains\r\nhtml tags! Load it into your browser by clicking on the link and then mark, copy and paste!)\r\n\r\n

\r\nClick here to see my choosisp.bat file (don´t use the file as is, because it contains\r\nhtml tags! Load it into your browser by clicking on the link and then mark, copy and paste!)\r\n\r\n

\r\nClick here to see my postonl.bat file (don´t use the file as is, because it contains\r\nhtml tags! Load it into your browser by clicking on the link and then mark, copy and paste!)\r\n\r\n

\r\nClick here to see my at.scr file, created by Tony Hutchins.\r\n

\r\nThis is the line of setcom.bat which invokes Robot/LX with at.scr:\r\n

\r\nROBOT.EXE -q AT.SCR >NUL\r\n
\r\nIt appears twice in setcom.bat. Once in the section for a device on COM1 and once for the IrDA\r\nsection.\r\n\r\n

\r\nAnd here is my postlx.bat, which I use to start Post/LX with WWW/LX loaded resident:

\r\n

\r\n@echo off\r\nmaxdos -l -e\r\nC:\\DFU\\WWWLX\\WWW.EXE -d !C:\\DFU\\WWWLX\\POST.EXE\r\nmaxdos -r\r\n
\r\n\r\n
\r\n
\r\n

\r\nInvolved batch and configuration files linked from the text above:\r\n

\r\n\r\n\r\n

at.scr

\r\n\r\n
\r\n;at.scr, provided by Tony Hutchins\r\n;tests, if device on COM1 or IrDA is a modem or not by sending an AT command.\r\n\r\ne testing modem ...\\n\r\n;create file at_no_ok.tmp\r\nfile w at_no_ok.tmp\r\nput 1\\n\r\nfile c\r\ne sending AT\\n\r\nsend AT\\r\r\ne waiting for OK\\n\r\nwait 2 OK\r\ne GOT OK\\n\r\n;delete file at_no_ok.tmp, if OK has been received, otherwise leave it there\r\nfile d at_no_ok.tmp\r\nx\r\n
\r\n\r\n
\r\n\r\n\r\n

choosisp.bat

\r\n\r\n
\r\n@echo off\r\nREM CHOOSISP.BAT (choose ISP)\r\nREM this batch is called by setcom.bat! Don\'t use it manually!\r\nREM %1 is the WWW setup to use as the basis for the settings\r\n\r\necho.\r\necho.\r\necho Now choose ISP:\r\necho ~~~~~~~~~~~~~~~\r\necho.\r\necho (1) MSN Easysurfer (???)\r\necho (2) E-Plus Online  (60 Freiminuten pro Monat)\r\necho (3) TU Berlin ZRZ  (Ortstarif Berlin)\r\necho (4) Compuserve Classic Berlin\r\necho (5) Compuserve Classic International (adjust Dial string!)\r\necho.\r\nchoice /c:12345\r\nif errorlevel 5 wwwset \"%1 Login=117144,1520 Dial=ATX3DT0,901666255 Password=xxxxxxxx Script=CIS_Script\"\r\nif errorlevel 4 wwwset \"%1 Login=117144,1520 Dial=ATDT691000 Password=xxxxxxxx Script=CIS_Script\"\r\nif errorlevel 3 wwwset \"%1 Login=dherbgba Dial=ATDT31553500 Password=xxxxxxx\"\r\nif errorlevel 2 wwwset \"%1 Login=hertrich Dial=ATDT010880192192 Password=xxxxxx\"\r\nif errorlevel 1 wwwset \"%1 Login=msn Dial=ATDT010880192658 Password=xxxxx\"\r\n\r\necho.\r\necho.\r\nchoice Disconnect directly after Online run?\r\nif errorlevel 2 goto nodis\r\ngoto end\r\n\r\n:nodis\r\necho 1 > nodis.tmp\r\n\r\n:end\r\n
\r\n\r\n
\r\n\r\n\r\n

post.cfg

\r\n\r\n
\r\n; Configuration file for the POST/LX package\r\n\r\n[FILTER]\r\nHPLX-L@=hplx-l\r\n\r\n[MFILTER]\r\n>=q\r\n??>=q\r\n\r\nSubject=h\r\n\r\nDate:=+\r\nSubject:=+\r\nFrom:=+\r\nTo:=+\r\nCc:=+\r\n*=-\r\n\r\n[MACRO]\r\n;F8: send / receive SMS.\r\n;Esc Esc Home Space Menu X X S Space\r\n;(SMS box must be first in Post/LX list, SMS batch must be external using hotkey S,\r\n;up/down arrow of SMS box must be DEactivated (script activates for you))\r\n#4200=#011b#011b#4700#3920#c800#2d78#2d78#1f73#3920\r\n\r\n\r\n[SYSTEM]\r\n;only relevant for ROBOWEB/LX:\r\nExtProg=ROBOT.EXE -p \"RWEB1 po\"\r\nScripts=c:\\_dat\\wwwlx\\ROBOWEB\r\n\r\n;for opening of attachments with the appropriate program:\r\nPNS=maxdos pns200.exe\r\n\r\nPreOnline=SETCOM.BAT\r\nPostOnline=postonl.bat\r\nManualPack=1\r\nForceDate=1\r\nEditor=maxdos PEH.BAT $f $h $x N\r\nEditSM=maxdos PEH.BAT $f $h $x N\r\nHangUp=0\r\nTimeZone=+0200\r\nOverlap=0\r\nQuote=>_\r\nClog=1\r\nTopLines=0\r\nZoomMode=1\r\nLZoomMode=0\r\nAllHeaders=0\r\nReFormat=1\r\nNoQuote=0\r\nDownload=a:\\attach\r\nJapanese=0\r\nDir=a:\\_dat\\wwwlx\r\nTmpDir=c:\\_tmp\r\nClipFile=c:\\_dat\\clipvue.txt\r\nSelected=Mail\r\nInit=1\r\nMIME=0\r\nShowDate=0\r\nGrabLink=c:\\_dat\\clipvue.txt\r\nGrabAdr=c:\\dfu\\wwwlx\\post.adr\r\nRegKey=xxxxxxxxxxx\r\nGrabText=c:\\_dat\\clipvue.txt\r\n\r\n\r\n[EXTERNAL]\r\n&Disconnect WWW/LX=DIS.COM\r\n&HV (as Webbrowser)=HV\r\nH&V (with last email)=HV $f\r\n&Read message in V&R=a:\\programs\\vr100\\vr.exe $f\r\nEdit &.CFGs=pe.exe c:\\dfu\\wwwlx\\robot.cfg  $c\r\n;SMS external with hotkey S:\r\n;   robosms.bat is simple:\r\n;   @wwwset \"IrDA\"\r\n;   @robot.exe pdu\r\n&SMS=robosms.bat\r\n\r\n[HEADERS]\r\nCc:=Cc:\r\nBcc:=Bcc:\r\nDeliveryConfirmation=Return-Receipt-To:my.own@email.address\r\nX-Priority:=X-Priority:\r\nImportance:=Importance:\r\nSensitivity:=Sensitivity:\r\nDepth=:=Depth=:\r\nMaxCount=:=MaxCount=:\r\nReturn-Path:=Return-Path:\r\n\r\n[WWW]\r\n;only one entry here, because PreOnline=setcom.bat does everything to choose\r\n;the WWW setup to use!\r\nDefault=Modem1\r\n\r\n[HTTP]\r\nMaxTotGet=100\r\n\r\n;========= MAILBOXES ===========\r\n; (most of mine removed here in the example)\r\n\r\n[FOLDERS]\r\nSMS=E\r\nRWEB=X\r\nMail=E\r\ncsc=E\r\nhplx-l=F\r\narchivlx=F\r\nsentarch=F\r\n\r\n[SMS]\r\nCheckFields=0\r\nAlias=SMS\r\nDir=c:\\_dat\\wwwlx\r\nSMTP=not.set\r\nPOP=not.set\r\nTemplate=SMS.TPL\r\nDel=0\r\nSep=0\r\nRPA=0\r\nAPOP=0\r\nVolatilePOP=0\r\n\r\n[Mail]\r\nForceDate=1\r\nAlias=E-Mail GMX\r\nAPOP=0\r\nRPA=0\r\nTimeout=60\r\nDel=1\r\nSep=1\r\nSMTP=mail.gmx.net\r\nPOP=pop.gmx.net\r\nVolatilePOP=0\r\nLimit=10000\r\nSignature=c:\\_dat\\wwwlx\\signatur.txt\r\nLogin=206139\r\nPass=xxxxxxxxxxx\r\nTopLines=20\r\nDir=c:\\_dat\\wwwlx\r\n\r\n[csc]\r\nAlias=E-Mail Compuserve Classic\r\nSMTP=smtp.sompuserve.com\r\nPOP=pop.compuserve.com\r\nLogin=117144.1520\r\nPass=xxxxxxxx\r\nDel=1\r\nSep=1\r\nAPOP=0\r\nVolatilePOP=0\r\nLimit=10000\r\nSignature=c:\\_dat\\wwwlx\\signatur.txt\r\nDir=c:\\_dat\\wwwlx\r\n\r\n\r\n\r\n;============ FOLDERS ============\r\n; (most of mine removed here in the example)\r\n\r\n[hplx-l]\r\nAlias=HPLX Mailing List\r\nSep=1\r\nBox=Mail\r\nDir=c:\\_dat\\wwwlx\r\n\r\n[RWEB]\r\nCheckfields=0\r\nDir=C:\\_dat\\wwwlx\\ROBOWEB\r\nAlias=ROBOWEB/LX\r\n\r\n[sentarch]\r\nSep=0\r\nAlias=Archive of sent messages\r\n
\r\n\r\n
\r\n\r\n\r\n

www.cfg

\r\n\r\n
\r\n; Configuration file for WWW\r\n; A. Garzotto, February 1998\r\n\r\n[Global]\r\nCommand=C:\\dfu\\wwwlx\\wwwmenu.exe\r\n;(when www.exe is executed from command line without a program to run\r\n;automatically, wwwmenu is executed. It lets you choose what to do (HV, Post/LX...))\r\nCache=C:\\_DAT\\WWWLX\\WWW.CAC\r\nHosts=C:\\_DAT\\HOSTS\r\nSetup=Modem1\r\n;Log=c:\\_DAT\\WWWLX\\WWW.LOG\r\nUserName=Daniel Hertrich\r\nRegID=xxxxxxxxxxxxx\r\n\r\n[Setup]\r\nEther=Ethernet HomePC\r\nModem1=Modem on COM1\r\nModem2=Modemcard on COM2\r\nIrDA=IrDA connection\r\nPPPD=Connection to PPPD on Linux\r\nTERM_IR=DumbTerminal_IrDA\r\nTERM_K=DumbTerminal_Cable\r\n\r\n[Script]\r\nCHAP_Script=PPP dial up using CHAP or PAP\r\nISP_SLIP_Script=Generic SLIP (needs to be modified)\r\nCIS_Script=Compuserve Classic dial up\r\npppd_script=PPPD on Linux over serial line or IrDA\r\n\r\n[CHAP_Script]\r\ne=Initializing modem\r\nm=\r\ns=\\r\r\nw=5 OK\r\nd=\r\ns=\\r\r\nw=75 CONNECT\r\n\r\n[CIS_Script]\r\ne=Initializing modem\r\nm=\r\ns=\\r\r\nw=5 OK\r\nd=\r\ns=\\r\r\nw=75 CONNECT\r\n@=1\r\ne=Connecting to CIS\r\ns=\\003\r\nw=15 D:\r\ne=Sending login\r\nl=\r\ns=/noint/ppp:cisppp\r\ns=\\\\\r\ne=Sending password\r\np=\r\ns=\\r\r\ne=Waiting for CIS to respond\r\nw=75 PPP\r\n\r\n[ISP_SLIP_Script]\r\ne=Initializing Modem\r\nm=\r\ns=\\r\r\nw=5 OK\r\nd=\r\ns=\\r\r\nw=75 CONNECT\r\ns=\\r\r\nw=5 name:\r\ne=Logging in\r\nl=\r\ns=\\r\r\nw=5 word:\r\ne=Sending Password\r\np=\r\ns=\\r\r\nw=5 :\r\ne=Starting SLIP\r\ns=SLIP\\r\r\nw=3 IP address is\r\ni=\r\n\r\n[pppd_script]\r\ns=\\r\r\n@=3\r\n\r\n; adjust and uncomment the following line to set up a HTTP proxy server\r\n;HTTP_Proxy=proxy.zrz.tu-berlin.de:3128\r\n\r\n\r\n[Ether]\r\nEther=1\r\nMy_IP=172.16.96.18\r\nPeer_IP=172.16.96.1\r\n;Peer_IP is the IP of the Computer which the palmtop is connected to (usually gateway)\r\nDNS_IP=217.5.100.1\r\nDNS2_IP=194.25.2.129\r\nScript=CHAP_Script\r\nLogin=DOESNTMATTER\r\nModemInit=AT&F\r\nDial=00000\r\nPassword=DOESNTMATTER\r\n\r\n\r\n[Modem1]\r\nPort=1\r\nOmniGo=0\r\nPPP=1\r\nModem=1\r\nBaud=57600\r\nMy_IP=0.0.0.0\r\nDNS_IP=0.0.0.0\r\nDNS2_IP=0.0.0.0\r\nScript=CHAP_Script\r\nModemInit=AT&FL1\r\nDial=ATDT31553500\r\nLogin=dherbgba\r\nPassword=xxxxxxx\r\n\r\n[Modem2]\r\nPort=2\r\nOmniGo=0\r\nPPP=1\r\nModem=1\r\nBaud=57600\r\nMy_IP=0.0.0.0\r\nDNS_IP=0.0.0.0\r\nDNS2_IP=0.0.0.0\r\nScript=CHAP_Script\r\nModemInit=AT&FL1\r\nDial=ATDT31553500\r\nLogin=dherbgba\r\nPassword=xxxxxxx\r\n\r\n\r\n[IrDA]\r\nPort=-1\r\nOmniGo=0\r\nModem=0\r\nPPP=1\r\nBaud=38400\r\nMy_IP=0.0.0.0\r\nDNS_IP=0.0.0.0\r\nDNS2_IP=0.0.0.0\r\nScript=CHAP_Script\r\nModemInit=at+cbst=71,0,1;+chsn=1,1,0,4\r\n;For correct settings of init and dial string for your mobile phone,\r\n;please read http://www.hermocom.com/knowledgebase/hplx/mob_hplx\r\nDial=ATDT03031553500\r\nLogin=dherbgba\r\nPassword=xxxxxxx\r\n\r\n\r\n[PPPD]\r\nPort=1\r\nOmniGo=0\r\nPPP=1\r\nModem=0\r\nBaud=38400\r\nMy_IP=0.0.0.0\r\nDNS_IP=0.0.0.0\r\nDNS2_IP=0.0.0.0\r\nScript=pppd_script\r\nLogin=\r\nModemInit=\r\nDial=\r\nPassword=\r\n\r\n\r\n;===================== Dumb Terminal Setup ===================\r\n; CALL WITH www -d TERM-[IR|K] \"!telnet local\"\r\n; useful e.g. to send AT commands manually to a modem or mobile phone\r\n\r\n[TERM-IR]\r\nPort=-1\r\nBaud=38400\r\nModem=1\r\nScript=T_Script\r\n\r\n[TERM-K]\r\nPort=1\r\nBaud=19200\r\nModem=1\r\nScript=T_Script\r\n\r\n[T_Script]\r\n?=\r\ne=done\r\n\r\n
\r\n\r\n
\r\n\r\n\r\n

setcom.bat

\r\n\r\n
\r\n@echo off\r\nREM SETCOM.BAT\r\nREM called by \"PreOnline\" feature of Post/LX\r\nREM sets communication parameters for WWW/LX depending on attached communications hardware\r\n\r\nif exist nodis.tmp del nodis.tmp\r\nif exist pcmcia.tmp del pcmcia.tmp\r\nREM nodis.tmp is used by postonl.bat to prevent automatical connection termination.\r\nREM The file will contain nothing, postonl.bat only checks if it exists!\r\nREM Similar with pcmcia.tmp: it tells postonl.bat that there is a PCMCIA modem\r\nREM so postonl.bat can switch PCMCIA power off after the online run.\r\n\r\nlxcic>NUL\r\nif errorlevel 7 goto un_card\r\nif errorlevel 6 goto lan_card\r\nif errorlevel 3 goto un_card\r\nif errorlevel 2 goto modem_card\r\n\r\n:un_card\r\nport1 > NUL\r\nif errorlevel 1 goto no_ext\r\necho External modem or serial line to PC detected\r\necho Testing if modem or not...\r\nwwwset \"Port=1\"\r\nrobot.exe -q AT.SCR > NUL\r\nif exist at_no_ok.tmp goto com1noat\r\necho the device on COM1 is a modem! :-)\r\ncall choosisp.bat Modem1\r\ngoto end\r\n\r\n:com1noat\r\ndel at_no_ok.tmp\r\necho Connection over COM1, but no modem!\r\necho Setting up for Linux PPPD over serial line\r\nwwwset \"PPPD port=1\"\r\ngoto end\r\n\r\n:no_ext\r\necho No extermal device found, trying IrDA setting\r\nwwwset \"Port=-1\"\r\nrobot.exe -q AT.SCR > NUL\r\nif exist at_no_ok.tmp goto ir_noat\r\necho The device on IrDA is a modem!\r\necho.\r\nchoice Disconnect after Online run?\r\nif errorlevel 2 goto echo 1 > nodis.tmp\r\nwwwset \"IrDA\"\r\nREM you could also call choosisp.bat from here, if necessary!\r\nREM for me it isn´t, because I only use one ISP with my mobile phone\r\ngoto end\r\n\r\n:ir_noat\r\necho NO MODEM on IrDA. Setting up for Linux PPPD over IrDA...\r\nwwwset \"PPPD Port=-1\"\r\ngoto end\r\n\r\n:lan_card\r\necho LAN card detected\r\necho loading packet driver....\r\nc:\\dfu\\lxeth\\lxen2216.com 0x66 > nul\r\nwwwset \"Ether\"\r\ngoto end\r\n\r\n:modem_card\r\nwwwset \"Port=2\"\r\nREM tell postonl.bat that there is a pcmcia modem:\r\necho 1 > pcmcia.tmp\r\necho Modem card detected (COM2)\r\ncall choosisp.bat Modem2\r\ngoto end\r\n\r\n:end\r\n
\r\n\r\n
\r\n\r\n\r\n

postonl.bat

\r\n\r\n
\r\n@echo off\r\nif exist nodis.tmp goto nodis\r\n\r\n:dis\r\ndis.com\r\n\r\nREM if there is a PCMCIA modem, switch PCMCIA power off to save power:\r\nif exist pcmcia.tmp lxcic o > nul\r\n\r\necho unloading Packet driver if LAN card is present...\r\nlxcic>NUL\r\nif not errorlevel 6 goto common\r\necho LAN card detected. Disconnecting...\r\nc:\\dfu\\lxeth\\termin 0x66\r\ngoto common\r\n\r\n:nodis\r\necho Not disconnecting now.\r\necho Disconnect manually with Menu-X-X-D\r\ngoto common\r\n\r\n:common\r\ncall sr.bat\r\nREM (sr.bat is from the ROBOWEB package)\r\nif exist nodis.tmp del nodis.tmp\r\nif exist pcmcia.tmp del pcmcia.tmp\r\n
\r\n\r\n
\";s:8:\"fulltext\";s:0:\"\";s:5:\"state\";s:1:\"1\";s:9:\"sectionid\";s:1:\"1\";s:4:\"mask\";s:1:\"0\";s:5:\"catid\";s:1:\"2\";s:7:\"created\";s:19:\"2009-10-15 14:07:09\";s:10:\"created_by\";s:2:\"62\";s:16:\"created_by_alias\";s:0:\"\";s:8:\"modified\";s:19:\"2009-10-21 12:18:50\";s:11:\"modified_by\";s:2:\"62\";s:11:\"checked_out\";s:1:\"0\";s:16:\"checked_out_time\";s:19:\"0000-00-00 00:00:00\";s:10:\"publish_up\";s:19:\"2009-10-15 14:07:09\";s:12:\"publish_down\";s:19:\"0000-00-00 00:00:00\";s:6:\"images\";s:0:\"\";s:4:\"urls\";s:0:\"\";s:7:\"attribs\";s:231:\"show_title=\nlink_titles=\nshow_intro=\nshow_section=\nlink_section=\nshow_category=\nlink_category=\nshow_vote=\nshow_author=\nshow_create_date=\nshow_modify_date=\nshow_pdf_icon=\nshow_print_icon=\nshow_email_icon=\nlanguage=\nkeyref=\nreadmore=\";s:7:\"version\";s:1:\"3\";s:8:\"parentid\";s:1:\"0\";s:8:\"ordering\";s:2:\"14\";s:7:\"metakey\";s:0:\"\";s:8:\"metadesc\";s:0:\"\";s:6:\"access\";s:1:\"0\";s:4:\"hits\";s:4:\"1400\";s:8:\"metadata\";s:15:\"robots=\nauthor=\";s:6:\"author\";s:22:\"hermocom Administrator\";s:8:\"usertype\";s:19:\"Super Administrator\";s:8:\"category\";s:4:\"HPLX\";s:7:\"section\";s:7:\"Website\";s:4:\"slug\";s:8:\"55:wwwlx\";s:7:\"catslug\";s:6:\"2:hplx\";s:6:\"groups\";s:6:\"Public\";s:7:\"sec_pub\";s:1:\"1\";s:7:\"cat_pub\";s:1:\"1\";s:10:\"sec_access\";s:1:\"0\";s:10:\"cat_access\";s:1:\"0\";}}}'))
A complex WWW/LX setup example Print


Contents of this page:


Introduction:

WWW/LX is a software package made by and downloadable from D&A Software which allows Internet access with the DOS-based Hewlett Packard palmtops 100LX, 200LX, 1000CX and Omnigo 700LX.
You can download WWW/LX (for free) at ftp://ftp.dasoft.com/pub/WWW. The file is named "www3.zip".

It contains a TCP/IP stack with built-in IrDA and Ethernet support (in addition to the usual PPP and SLIP protocols which are needed for modem connections or direct serial connections to other computers) and the package contains several clients for almost every kind of purpose. An email client, a news reader client, ftp, telnet, finger and HV, a limited but useful WWW browser and get, which lets you get web pages automatically. Another very useful addition has been developed by Tony Hutchins using ROBOT/LX, an Internet robot program: ROBOWEB/LX. It combines get and ROBOT/LX so that you can get Internet pages or even whole sites onto your palmtop for offline reading. See this link for details.

It is relatively easy to set up WWW/LX and Post/LX for basic purposes. However, there are so many amazing sophisticated possibilities, which are not covered by the setup programs which come with WWW/LX and must be created manually.

Here are examples which should give you some ideas of what is really possible with WWW/LX. I have never seen another Internet software package which is so powerful and rich of features as WWW/LX. And in addition it is extremely user-customizable. See below. I won´t give you details here of how basic setups work, because you can read that in the WWW/LX documentation. Here I assume that you are familiar with the basics already.

Basics of my setup:

I use almost every possible kind of Internet connection, so you will find examples here which are useful, regardless which kind of connection you want to use:
  • Modem connection over the serial port with several ISPs
  • Modem connection via PCMCIA modem with several ISPs
  • Mobile connection via IrDA-enabled GSM mobile phone
  • Ethernet connection via PCMCIA Ethernet card
  • direct serial connection to a PC which is connected to the Internet (internet connection sharing)
  • IrDA connection to another PC which is connected to the Internet (internet connection sharing)
Take this as a "snapshot" of my current WWW/LX configuration and have fun with it!

My main application, which acts as the "central", is Post/LX. WWW/LX is loaded resident and activated everytime I press F5 in Post/LX to establish a connection. If you don´t use email that much, but more often use ftp or HV, it may be better for you to start www.exe manually giving the setup to use as a parameter. It will then connect instantly and return to the DOS prompt, so you can do whatever you want once the connection is established. If that is the way you want to use WWW/LX, most parts of my setup are not useful for you. I use Post/LX as the central application of my setup.

In general, my www.cfg only contains five basic setups, independent from the ISP to use. So my www.cfg is kept small and thus doesn´t need so much memory. www.cfg is always loaded entirely into RAM, so it really makes a difference if you have for example 10 setups (one for each modem / ISP combination using two modems and 5 ISPs) or only two setups for the two modems and do the ISP choice externally using the little utility wwwset.

You could even work with just ONE "general" www setup and modify all relevant parameters externally. However, I have not choosen that way because I want still to be able to use www.exe as a stand-alone program without having to use the external wwwset utility.

My WWW/LX setup:

My five basic www.cfg setups are [Modem1], [Modem2], [IrDA], [Ether] and [PPPD].
I also have TERM-IR and TERM-K, which are explained below.
  • Modem1 is for an external modem on COM1
  • Modem2 is for a connection via PCMCIA modem (COM2)
  • IrDA is for mobile phone connections over IrDA, for either Internet or SMS
  • Ether is for a connection to my home PC via Ethernet card
  • PPPD is for serial or IrDA connection to my home PC or laptop running Linux and the pppd (PPP deamon) and internet connection sharing (=IP forwarding and IP masquerading)

  • TERM-K and TERM-IR is for a dumb terminal which enables you to send AT commands to a modem or mobile phone (IrDA) and connect manually (for debugging purposes). It requires you to have telnet.exe (also available on the dasoft ftp server) and you have to call it from the DOS prompt that way: www.exe -d TERM-[IR|K] "!telnet local"
    IR stands for IrDA, K for Cable.

My Post/LX setup:

Post/LX is set up in a way that I only need to press F5, then it launches a batch file "setcom.bat" via the post.cfg parameter "PreOnline". setcom.bat determines the connected hardware and decides, which www setup to use. If it finds out that I want to connect via modem, it lets me choose an ISP. Otherwise it changes the active www setup instantly to the appropriate one from the five setups mentioned above. In addition I let setcom ask me (only for the setups where it is useful), if I want to let WWW/LX disconnect after the online run of Post/LX, i.e. directly after mail sending / receiving. If I want to surf the web with HV after transmitting mail for example, I choose to keep the connection. In other cases, for example when I will have an expensive connection via mobile phone, and I´m sure I don´t want to do anything else than sending the email I just wrote, I can choose "yes, disconnect!" and the connection is terminated as fast as possible automatically after the Post/LX online run. This is done via the post.cfg "PostOnline" parameter which invokes a batch file after every online run.

I also use Post/LX for SMS sending and receiving via IrDA and my mobile phone. For this purpose, I have created a keyboard macro in post.cfg, which lets me send and receive all SMS just by placing the mobile phone near the palmtop´s IR port and fressing F8 in Post/LX. Note that if you are used to use F8 for pther purposes (for example for marking messages during you read them), you should NOT use that macro. I do never use F8 with the functionality Post/LX gives to it, and in the main screen of Post/LX F8 doesn´t have any functionality anyway. So I could choose F8 as my SMS macro activating key.

For more info on how to setup PDU for SMS processing please download PDU from Stefan Peichl´s homepage and read the documentation.

Here are some screenshots of my Post/LX main screen:

The main screen with some folders and mailboxes (SMS box on top so that the F8 macro works, see post.cfg below!):

Here I pressed Shift-F5: Only the one "Default" WWW/LX setup is shown. No need anymore to choose anything here!

This shows some of my "Externals" entries (Menu-X-X). Hotkey "S" chooses "SMS" (so that the F8 SMS macro works, see post.cfg below!)

My cfg config files:

Okay, enough words, I will now show you my cfg and batch files and add comments everywhere I think it´ necessary. Again: Please read the WWW/LX documentation carefully in order to understand everything. I won´t answer questions covered there.

Click here to see my www.cfg file (don´t use the file as is, because it contains html tags! Load it into your browser by clicking on the link and then mark, copy and paste! Passwords are replaced by dummy strings.)

Click here to see my post.cfg file (don´t use the file as is, because it contains html tags! Load it into your browser by clicking on the link and then mark, copy and paste! Passwords are replaced by dummy strings, most folder and mailbox data is removed because it is not relevant here)

My batch and other involved files:

Now follow the batch files and a robot script (thanks to Tony Hutchins who provided this script!) which enable the magic of my setup ;-)

First I provide the setcom.bat file which is invoked directly after pressing F5 in Post/LX (by the PreOnline parameter in the cfg).
Then follows the batch file choosisp.bat, which is invoked from within setcom.bat and which is responsible for the appropriate Dial and login paramteres, depending on the ISP which shall be used. choosisp.bat is only invoked if setcom.bat recognizes a modem, either on COM1 or in the PCMCIA slot.
After that you will see postonl.bat, which handles the disconnecting after the online run (invoked by the PostOnline parameter in the cfg.
Thereafter at.scr (a robot script) is shown which setcom needs in order to distinguish, if the device connected to IrDA or the serial port is a modem or another computer.

And finally, I will show you my postlx.bat, which I use after booting the palmtop to invoke Post/LX with WWW/LX loaded resident.

For all this you need the following programs:

  • port1.exe or modem.com which looks if there is something connected to COM1
  • wwwset.exe, which sets WWW setup parameters externally
  • dis.com which is part of the WWW/LX package (terminates connection)
  • Robot/LX (Robot/LX), which executes SCR scripts
  • lxcic.com which detects, recognizes and enables PCMCIA cards
  • PDU for SMS processing
  • choice.com which is part of DOS, but not included in the palmtop ROM.
  • LXETH, the Ethernet packet driver for the LX, if you use an Ethernet card
  • maxdos, if you want to reserve as much DOS memory as possible for external programs like an editor or HV.
Download links for these utilities (as far as they are not part of the WWW/LX package) are provided directly within the batch files below (where the utilities are used), simply click on the links and download the utilities.

Click here to see my setcom.bat file (don´t use the file as is, because it contains html tags! Load it into your browser by clicking on the link and then mark, copy and paste!)

Click here to see my choosisp.bat file (don´t use the file as is, because it contains html tags! Load it into your browser by clicking on the link and then mark, copy and paste!)

Click here to see my postonl.bat file (don´t use the file as is, because it contains html tags! Load it into your browser by clicking on the link and then mark, copy and paste!)

Click here to see my at.scr file, created by Tony Hutchins.

This is the line of setcom.bat which invokes Robot/LX with at.scr:

ROBOT.EXE -q AT.SCR >NUL
It appears twice in setcom.bat. Once in the section for a device on COM1 and once for the IrDA section.

And here is my postlx.bat, which I use to start Post/LX with WWW/LX loaded resident:

@echo off
maxdos -l -e
C:\DFU\WWWLX\WWW.EXE -d !C:\DFU\WWWLX\POST.EXE
maxdos -r




Involved batch and configuration files linked from the text above:

at.scr

;at.scr, provided by Tony Hutchins
;tests, if device on COM1 or IrDA is a modem or not by sending an AT command.

e testing modem ...\n
;create file at_no_ok.tmp
file w at_no_ok.tmp
put 1\n
file c
e sending AT\n
send AT\r
e waiting for OK\n
wait 2 OK
e GOT OK\n
;delete file at_no_ok.tmp, if OK has been received, otherwise leave it there
file d at_no_ok.tmp
x

choosisp.bat

@echo off
REM CHOOSISP.BAT (choose ISP)
REM this batch is called by setcom.bat! Don't use it manually!
REM %1 is the WWW setup to use as the basis for the settings

echo.
echo.
echo Now choose ISP:
echo ~~~~~~~~~~~~~~~
echo.
echo (1) MSN Easysurfer (???)
echo (2) E-Plus Online  (60 Freiminuten pro Monat)
echo (3) TU Berlin ZRZ  (Ortstarif Berlin)
echo (4) Compuserve Classic Berlin
echo (5) Compuserve Classic International (adjust Dial string!)
echo.
choice /c:12345
if errorlevel 5 wwwset "%1 Login=117144,1520 Dial=ATX3DT0,901666255 Password=xxxxxxxx Script=CIS_Script"
if errorlevel 4 wwwset "%1 Login=117144,1520 Dial=ATDT691000 Password=xxxxxxxx Script=CIS_Script"
if errorlevel 3 wwwset "%1 Login=dherbgba Dial=ATDT31553500 Password=xxxxxxx"
if errorlevel 2 wwwset "%1 Login=hertrich Dial=ATDT010880192192 Password=xxxxxx"
if errorlevel 1 wwwset "%1 Login=msn Dial=ATDT010880192658 Password=xxxxx"

echo.
echo.
choice Disconnect directly after Online run?
if errorlevel 2 goto nodis
goto end

:nodis
echo 1 > nodis.tmp

:end

post.cfg

; Configuration file for the POST/LX package

[FILTER]
HPLX-L@=hplx-l

[MFILTER]
>=q
??>=q

Subject=h

Date:=+
Subject:=+
From:=+
To:=+
Cc:=+
*=-

[MACRO]
;F8: send / receive SMS.
;Esc Esc Home Space Menu X X S Space
;(SMS box must be first in Post/LX list, SMS batch must be external using hotkey S,
;up/down arrow of SMS box must be DEactivated (script activates for you))
#4200=#011b#011b#4700#3920#c800#2d78#2d78#1f73#3920


[SYSTEM]
;only relevant for ROBOWEB/LX:
ExtProg=ROBOT.EXE -p "RWEB1 po"
Scripts=c:\_dat\wwwlx\ROBOWEB

;for opening of attachments with the appropriate program:
PNS=maxdos pns200.exe

PreOnline=SETCOM.BAT
PostOnline=postonl.bat
ManualPack=1
ForceDate=1
Editor=maxdos PEH.BAT $f $h $x N
EditSM=maxdos PEH.BAT $f $h $x N
HangUp=0
TimeZone=+0200
Overlap=0
Quote=>_
Clog=1
TopLines=0
ZoomMode=1
LZoomMode=0
AllHeaders=0
ReFormat=1
NoQuote=0
Download=a:\attach
Japanese=0
Dir=a:\_dat\wwwlx
TmpDir=c:\_tmp
ClipFile=c:\_dat\clipvue.txt
Selected=Mail
Init=1
MIME=0
ShowDate=0
GrabLink=c:\_dat\clipvue.txt
GrabAdr=c:\dfu\wwwlx\post.adr
RegKey=xxxxxxxxxxx
GrabText=c:\_dat\clipvue.txt


[EXTERNAL]
&Disconnect WWW/LX=DIS.COM
&HV (as Webbrowser)=HV
H&V (with last email)=HV $f
&Read message in V&R=a:\programs\vr100\vr.exe $f
Edit &.CFGs=pe.exe c:\dfu\wwwlx\robot.cfg  $c
;SMS external with hotkey S:
;   robosms.bat is simple:
;   @wwwset "IrDA"
;   @robot.exe pdu
&SMS=robosms.bat

[HEADERS]
Cc:=Cc:
Bcc:=Bcc:
DeliveryConfirmation=Return-Receipt-To:my.own@email.address
X-Priority:=X-Priority:
Importance:=Importance:
Sensitivity:=Sensitivity:
Depth=:=Depth=:
MaxCount=:=MaxCount=:
Return-Path:=Return-Path:

[WWW]
;only one entry here, because PreOnline=setcom.bat does everything to choose
;the WWW setup to use!
Default=Modem1

[HTTP]
MaxTotGet=100

;========= MAILBOXES ===========
; (most of mine removed here in the example)

[FOLDERS]
SMS=E
RWEB=X
Mail=E
csc=E
hplx-l=F
archivlx=F
sentarch=F

[SMS]
CheckFields=0
Alias=SMS
Dir=c:\_dat\wwwlx
SMTP=not.set
POP=not.set
Template=SMS.TPL
Del=0
Sep=0
RPA=0
APOP=0
VolatilePOP=0

[Mail]
ForceDate=1
Alias=E-Mail GMX
APOP=0
RPA=0
Timeout=60
Del=1
Sep=1
SMTP=mail.gmx.net
POP=pop.gmx.net
VolatilePOP=0
Limit=10000
Signature=c:\_dat\wwwlx\signatur.txt
Login=206139
Pass=xxxxxxxxxxx
TopLines=20
Dir=c:\_dat\wwwlx

[csc]
Alias=E-Mail Compuserve Classic
SMTP=smtp.sompuserve.com
POP=pop.compuserve.com
Login=117144.1520
Pass=xxxxxxxx
Del=1
Sep=1
APOP=0
VolatilePOP=0
Limit=10000
Signature=c:\_dat\wwwlx\signatur.txt
Dir=c:\_dat\wwwlx



;============ FOLDERS ============
; (most of mine removed here in the example)

[hplx-l]
Alias=HPLX Mailing List
Sep=1
Box=Mail
Dir=c:\_dat\wwwlx

[RWEB]
Checkfields=0
Dir=C:\_dat\wwwlx\ROBOWEB
Alias=ROBOWEB/LX

[sentarch]
Sep=0
Alias=Archive of sent messages

www.cfg

; Configuration file for WWW
; A. Garzotto, February 1998

[Global]
Command=C:\dfu\wwwlx\wwwmenu.exe
;(when www.exe is executed from command line without a program to run
;automatically, wwwmenu is executed. It lets you choose what to do (HV, Post/LX...))
Cache=C:\_DAT\WWWLX\WWW.CAC
Hosts=C:\_DAT\HOSTS
Setup=Modem1
;Log=c:\_DAT\WWWLX\WWW.LOG
UserName=Daniel Hertrich
RegID=xxxxxxxxxxxxx

[Setup]
Ether=Ethernet HomePC
Modem1=Modem on COM1
Modem2=Modemcard on COM2
IrDA=IrDA connection
PPPD=Connection to PPPD on Linux
TERM_IR=DumbTerminal_IrDA
TERM_K=DumbTerminal_Cable

[Script]
CHAP_Script=PPP dial up using CHAP or PAP
ISP_SLIP_Script=Generic SLIP (needs to be modified)
CIS_Script=Compuserve Classic dial up
pppd_script=PPPD on Linux over serial line or IrDA

[CHAP_Script]
e=Initializing modem
m=
s=\r
w=5 OK
d=
s=\r
w=75 CONNECT

[CIS_Script]
e=Initializing modem
m=
s=\r
w=5 OK
d=
s=\r
w=75 CONNECT
@=1
e=Connecting to CIS
s=\003
w=15 D:
e=Sending login
l=
s=/noint/ppp:cisppp
s=\\
e=Sending password
p=
s=\r
e=Waiting for CIS to respond
w=75 PPP

[ISP_SLIP_Script]
e=Initializing Modem
m=
s=\r
w=5 OK
d=
s=\r
w=75 CONNECT
s=\r
w=5 name:
e=Logging in
l=
s=\r
w=5 word:
e=Sending Password
p=
s=\r
w=5 :
e=Starting SLIP
s=SLIP\r
w=3 IP address is
i=

[pppd_script]
s=\r
@=3

; adjust and uncomment the following line to set up a HTTP proxy server
;HTTP_Proxy=proxy.zrz.tu-berlin.de:3128


[Ether]
Ether=1
My_IP=172.16.96.18
Peer_IP=172.16.96.1
;Peer_IP is the IP of the Computer which the palmtop is connected to (usually gateway)
DNS_IP=217.5.100.1
DNS2_IP=194.25.2.129
Script=CHAP_Script
Login=DOESNTMATTER
ModemInit=AT&F
Dial=00000
Password=DOESNTMATTER


[Modem1]
Port=1
OmniGo=0
PPP=1
Modem=1
Baud=57600
My_IP=0.0.0.0
DNS_IP=0.0.0.0
DNS2_IP=0.0.0.0
Script=CHAP_Script
ModemInit=AT&FL1
Dial=ATDT31553500
Login=dherbgba
Password=xxxxxxx

[Modem2]
Port=2
OmniGo=0
PPP=1
Modem=1
Baud=57600
My_IP=0.0.0.0
DNS_IP=0.0.0.0
DNS2_IP=0.0.0.0
Script=CHAP_Script
ModemInit=AT&FL1
Dial=ATDT31553500
Login=dherbgba
Password=xxxxxxx


[IrDA]
Port=-1
OmniGo=0
Modem=0
PPP=1
Baud=38400
My_IP=0.0.0.0
DNS_IP=0.0.0.0
DNS2_IP=0.0.0.0
Script=CHAP_Script
ModemInit=at+cbst=71,0,1;+chsn=1,1,0,4
;For correct settings of init and dial string for your mobile phone,
;please read http://www.hermocom.com/knowledgebase/hplx/mob_hplx
Dial=ATDT03031553500
Login=dherbgba
Password=xxxxxxx


[PPPD]
Port=1
OmniGo=0
PPP=1
Modem=0
Baud=38400
My_IP=0.0.0.0
DNS_IP=0.0.0.0
DNS2_IP=0.0.0.0
Script=pppd_script
Login=
ModemInit=
Dial=
Password=


;===================== Dumb Terminal Setup ===================
; CALL WITH www -d TERM-[IR|K] "!telnet local"
; useful e.g. to send AT commands manually to a modem or mobile phone

[TERM-IR]
Port=-1
Baud=38400
Modem=1
Script=T_Script

[TERM-K]
Port=1
Baud=19200
Modem=1
Script=T_Script

[T_Script]
?=
e=done


setcom.bat

@echo off
REM SETCOM.BAT
REM called by "PreOnline" feature of Post/LX
REM sets communication parameters for WWW/LX depending on attached communications hardware

if exist nodis.tmp del nodis.tmp
if exist pcmcia.tmp del pcmcia.tmp
REM nodis.tmp is used by postonl.bat to prevent automatical connection termination.
REM The file will contain nothing, postonl.bat only checks if it exists!
REM Similar with pcmcia.tmp: it tells postonl.bat that there is a PCMCIA modem
REM so postonl.bat can switch PCMCIA power off after the online run.

lxcic>NUL
if errorlevel 7 goto un_card
if errorlevel 6 goto lan_card
if errorlevel 3 goto un_card
if errorlevel 2 goto modem_card

:un_card
port1 > NUL
if errorlevel 1 goto no_ext
echo External modem or serial line to PC detected
echo Testing if modem or not...
wwwset "Port=1"
robot.exe -q AT.SCR > NUL
if exist at_no_ok.tmp goto com1noat
echo the device on COM1 is a modem! :-)
call choosisp.bat Modem1
goto end

:com1noat
del at_no_ok.tmp
echo Connection over COM1, but no modem!
echo Setting up for Linux PPPD over serial line
wwwset "PPPD port=1"
goto end

:no_ext
echo No extermal device found, trying IrDA setting
wwwset "Port=-1"
robot.exe -q AT.SCR > NUL
if exist at_no_ok.tmp goto ir_noat
echo The device on IrDA is a modem!
echo.
choice Disconnect after Online run?
if errorlevel 2 goto echo 1 > nodis.tmp
wwwset "IrDA"
REM you could also call choosisp.bat from here, if necessary!
REM for me it isn´t, because I only use one ISP with my mobile phone
goto end

:ir_noat
echo NO MODEM on IrDA. Setting up for Linux PPPD over IrDA...
wwwset "PPPD Port=-1"
goto end

:lan_card
echo LAN card detected
echo loading packet driver....
c:\dfu\lxeth\lxen2216.com 0x66 > nul
wwwset "Ether"
goto end

:modem_card
wwwset "Port=2"
REM tell postonl.bat that there is a pcmcia modem:
echo 1 > pcmcia.tmp
echo Modem card detected (COM2)
call choosisp.bat Modem2
goto end

:end

postonl.bat

@echo off
if exist nodis.tmp goto nodis

:dis
dis.com

REM if there is a PCMCIA modem, switch PCMCIA power off to save power:
if exist pcmcia.tmp lxcic o > nul

echo unloading Packet driver if LAN card is present...
lxcic>NUL
if not errorlevel 6 goto common
echo LAN card detected. Disconnecting...
c:\dfu\lxeth\termin 0x66
goto common

:nodis
echo Not disconnecting now.
echo Disconnect manually with Menu-X-X-D
goto common

:common
call sr.bat
REM (sr.bat is from the ROBOWEB package)
if exist nodis.tmp del nodis.tmp
if exist pcmcia.tmp del pcmcia.tmp

Last Updated on Wednesday, 21 October 2009
 
Newsletter
Subscribe to the hermocom email newsletter, if you would like to be informed about project status and software updates.



Poll
What do you consider the most important feature of an ultramobile computer?
 
hermocom login