wviewweather.com Forum Index wviewweather.com
wview and Weather Topics
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Periodioc Comm Errors

 
Post new topic   Reply to topic    wviewweather.com Forum Index -> Troubleshooting
View previous topic :: View next topic  
Author Message
kusznir



Joined: 19 Sep 2005
Posts: 11

PostPosted: Mon Sep 19, 2005 1:57 am    Post subject: Periodioc Comm Errors Reply with quote

Hello all:

I've been watching my syslog and discovered that I'm seeing serial communication errors periodically between wviewd and my VantagePro console. The errors are usually some form of this:

Sep 19 00:42:34 nexus wviewd[20220]: <1834323358> : wakeupConsole: Invalid data: 0D 0A
Sep 19 00:42:34 nexus wviewd[20220]: <1834323360> : daemonDumpAfterAckState: WAKEUP failed

They often occur in clusters (A few error reports within a min or two). Is this normal, or is there something wrong with my serial config?

(I'm using an Equinox serial-ethernet converter which requires propritary drivers. I've loaded the drivers, which creates local serial devices, which I've configured wview to use).

--Jim
Back to top
View user's profile Send private message AIM Address
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Mon Sep 19, 2005 5:54 am    Post subject: Reply with quote

As indicated in the User Manual Prerequisites section:
Quote:
# Serial/Ethernet/USB port - an available interface port is required to connect to the Vantage Pro/Pro2 console

* Serial - 19200, 8 bits, no parity, 1 stop bit, HW flow control.
* Ethernet - a terminal server or ethernet to serial server is required - set up as decribed above for the serial port and configured in transparent data mode (no control character processing) with no packet delimiter. wview allows you to specify the hostname and port of your serial server. The Neteon GW21E, Lantronix MSS1-T and Xyplex Maxserver 1600 have been confirmed to work with wview. See the Miscellaneous section for my configuration notes on the GW21E and the MSS1-T.


and in the Miscellaneous section:
Quote:
15.7 Ethernet Setup for the GW21E Serial Server

15.7.1 Configure your GW21E IP address as described in the GW21E Quickstart
Guide.

15.7.2 Telnet into the GW21E (admin,NULL)

15.7.3 Set Serial Server parameters and Packet Delimiter so that your config
looks like:

[snip]
root@dmzweb:/root/dev# telnet 10.10.10.22
Trying 10.10.10.22...
Connected to 10.10.10.22.
Escape character is '^]'.
ABLELink Ethernet-Serial Server
User name:admin
Password:

Login ok

0.Exit 1.Overview 2.Networking 3.Security 4.COM1

Input choice and enter(0~4): 4
4

COM0:
1. Link Mode (TCP Server/Virtual COM Disabled/Pair Connection Disabled/Filter disabled/3001 /Alive=10*10 sec)
2. COM Port (VP/RS-232/19200,None,8,1/RTS/CTS)
3. Keep Serial Buffer's Data While Connecting(Disabled)
4. Packet Delimiter (1 ms)
5. Accept Control Command from COM port (Disabled)

Input choice and enter(1~5):
[snip]

Remember to use "CTRL-]" to get to the telnet prompt and type "quit" to
exit - their utility does not have an exit path in the menu! I had to
quit and re-login multiple times while configuring it.

Given the above configuration, your wview ethernet configuration should
be:
Host: 10.10.10.22 (whatever the IP address is that you assigned it)
Port: 3001 (set in section 4 of the GW21E config utility)

15.8 Ethernet Setup for the Lantronix MSS1-T

15.8.1 Connect to the MSS1-T via the serial port - factory defaults are
9600, 8N1. Login as admin, then enter "set privileged" with password
"system".

15.8.2 Configure the MSS1-T so that your "show server" command displays:

Lantronix MSS1 Version V3.5/5(980529)

Type HELP at the 'Local_2> ' prompt for assistance.

Username> admin

Local_2> show server

MSS1 Version V3.5/5(980529) Uptime: 0:06:16
Hardware Addr: 00-80-a3-0f-f3-e2 Name/Nodenum: MSS_0FF3E2/ 0
Ident String: Micro Serial Server

Inactive Timer (min): 30 Serial Delay (msec): 10
Password Limit: 3 Session Limit: 4
Queue Limit: 32 Node/Host Limits: 50/20

LAT Circuit Timer (msec): 80 Keepalive Timer (sec): 20
Multicast Timer (sec): 30 Retrans Limit: 10

TCP/IP Address: 10.10.10.22 Subnet Mask: 255.255.255.0
Nameserver: (undefined) Backup Nameserver: (undefined)
TCP/IP Gateway: 10.10.10.1 Backup Gateway: (undefined)
Domain Name: (undefined) Daytime Queries: Enabled
TCP Keepalives: Enabled
DHCP Server: None Lease Time: 0:00

Load Address: 00-00-00-00-00-00 Prompt: Local_%n%P>

Characteristics:
Incoming Logins: Telnet (No Passwords Required)
LAT Groups: 0

Local_2>

The port to use on the MSS1-T is the raw mode port 3001.

Given the above configuration, your wview ethernet configuration should
be:
Host: 10.10.10.22 (whatever the IP address is that you assigned it)
Port: 3001 (not configurable)



I am not familiar with your ethernet serial server type, but as long as it can be configured in transparent data mode (no control character processing) with no packet delimiter, you should not use any external drivers. wview will access the serial server directly via ethernet.

Seeing any serial errors is in general not normal and should be fixed. Having serial-to-ethernet drivers between the wviewd daemon and the ethernet serial server is not a good idea - wviewd is very timing sensitive. Take the time to set up the serial side of the serial server properly and make sure it is in transparent mode on the ethernet side and you should have no problems accessing it from wview by selecting "ethernet" for the Physical Interface in the wviewconfig script setup. You will need to know the IP address and port number for the serial server when running wviewconfig.

Mark
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kusznir



Joined: 19 Sep 2005
Posts: 11

PostPosted: Mon Sep 19, 2005 10:38 am    Post subject: Reply with quote

Unfortunately, I cannot use "ethernet" mode on this serial port server...The equinox is a non-standard ethernet interface, and the only way it works is with its own drivers. This partular box is 8 serial ports with one IP on the ethernet side, and only listening on one port. All the port setup is configured by the drivers when something opens the /dev/blah port.

I had been using davis's software with it over the ethernet (and even tunnled through the internet through multiple carriers) and it works with only a couple download retry's when downloading large numbers of records.

I don't think I have any free phsical serial ports left on my box...I can try getting a usb serial adaptor, though...

--Jim
Back to top
View user's profile Send private message AIM Address
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Mon Sep 19, 2005 10:52 am    Post subject: Reply with quote

Be sure you you can't use it directly - there was one other report of wview not working using a third party driver for one of these ethernet serial servers. Again, wview is very timing sensitive. You are absolutely sure it doesn't listen on a different port for each of the serial ports? Of course it only has one IP, but the 3 serial servers I tested with listened on different ports for each serial channel and could be configured via a telnet session (usually on serial port 1) individually.

I would be very careful moving to USB-to-serial devices - a whole other set of headaches. Are you using a Mac? If so, I have tested successfully a USB-to-serial device containing the Prolific chipset PL-2303 and Mac driver - see the Mac OSX Quickstart Guide for details. If not a Mac, I would find a device with the CP2101 chipset (same that Davis uses in their USB data logger). There is native support in linux 2.6.12.1 and up kernels for the CP2101...

Mark
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    wviewweather.com Forum Index -> Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group