Hi:
I’m a RouterOS home user. Because I had some WRAP boards (EOL now) hanging around, I decided to use one of them to distribute internet access (and LAN) to some PCs at home instead of use a standard motherboard with lots of processing power, cooling fans here and there, no-breaks and etc. I don’t need much processing power at home and those boards can be feeded by a 12V gelcell bat durying power outages.
My connection to ISP is via 3G mobile phone network, actually using an Huawei E156 modem (similar to E220). The WRAP was modified accordingly in order to make USB avialable (on WRAPs USB is there but un-conectorized nor bios enabled by default). Untill RB have more boards (besides RB230) with USB ports on it I’ll keep WRAPs up. Seems that there will be more RB options in 2009. ![]()
ROS is 3.17, with WEB Cache enabled and a 3G modem is the ppp interface. Sill some small problems with PPP so from time to time I need to hang-up and reconnect PPP. Until I figure what’s really going on, I’m looking for alternatives to make it automatically. And dial-on-demand is not the way to go. PPP must be 24X7X365 up.
I’m using netwatch but since its an ICMP dependent tool, sometimes ping times out due to other applications running on AP-Bridge or LAN clients (downloads, video or voice, etc). I set time out to 10000 ms but still switching the status=down sometimes and the connection still up but only busy. Then PPP disconnects and reconects and hung-up was not really necessary this time.
Then I saw around on the forum, wiki or manual an script that swicthes two LAN ports when the traffic falls below certain value (trigger) in one of them. But I’m not a software guy, I’m “analog” (e.g. RF, antennas, microwave, etc). ![]()
Can anybody help me with this? I want to base this script on the “received traffic” on PPP (speed, not volume). If “received traffic” is zero (or below some vy low value) for certain amount of time (lets say 60 seconds), then PPP must be disabled, 5 seconds pause, PPP enabled back again. If anything is received from PPP within this 60 seconds, this counter must be zeroed.
One other feature that’s desireable is: some specific modem commands must be reloaded just after re-connect and they don’t fit on PPP interface tab, not because the size but the format. I guess this (and may be others) modem after connected waits for extra commands on a virtual serial interface (USB2 in my case). Windows modem GUI probably do that (I compared the AT&V results from ROS and WIN, they’re different). They’re AT commands, like AT+CSSN, AT+CREG, AT+CNMI, etc, each one followed by a . Is there a way to send this commands direct to USB2 (I use serial-terminal USB2 on Winbox to do that manually)?
I’ll keep netwatch as my “watchdog”, firing against 2 or 3 public addresses each 10 seconds or so. Other routines will require answers from internet anyway, even when nobody’s surfing (NTP clients, etc).
Any help is apreciated.
Regards
Marcus Ramos
P.S.
-
For those that uses 3G modems and have some strange behaviour, those modems are vy current consuming (5V @ 0.5A) and USBs sometimes have not power enough to supply them accordingly. Modem manufacturers suppose this sticks will be most of the time vy close to PCs, where power filtering or regulation are not a problem. But USB connectors fails: dirt, oxidation, fadigue etc. I had some problems with and things only became really stable when I converted my USBs in a “proprietary” solution (DB15 conn), where I send 12V trhu the USB cable and use a dedicated voltage regulator on a small PCB with a standard female USB connector to the modem on it.
-
May be this topic subject mix scripting + RouterOS on RBs + HW info. I was in doubt where create it so … my apologies.
