[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[coldsync-hackers] Netsync still not working.



I've updated my CVS source and rebuilt and reinstalled coldsync.  I
have stopped and restarted inetd to make sure that it's not holding on
to the old coldsync.  My server is running FreeBSD 4.7-STABLE and the
client machine with the cradle is running Windows 98.

Here is my coldsync.conf:

listen serial "netsync-inetd" {
	protocol: net;
	device: stdin;
	noprompt;
}

listen net "netsync-standalone" {
}

listen serial "serial" {
	device: /dev/cuaa0;
	protocol: default;
	speed: 57600;
	transient;
}

Here is my palms file:

10R116I1GFPC-M|Jack Twilley|1001|jmt|Palm M505
L0JH15I1F508-F|Shannon White|17485|adaintum|Palm M505

Shortcut period 4 confirms my user ID values:

Jack Twilley
1001

Here is my inetd.conf line:

netsync	stream tcp nowait root /usr/local/bin/coldsync coldsync -md --listen netsync-inetd -l /var/log/netsync.log -dmain:5 -dsync:5 -dnet:5

Here are the appropriate references in my services file:

netsync-wakeup	14237/udp	# Palm network hotsync wakeup
netsync		14238/tcp	# Palm network hotsync data

The Palm M505 is configured with the following settings:

LANSync Preferences: LANSync
Primary PC Name: server.twilley.org
Primary PC Address: 10.74.84.1
Subnet Mask(optional): 255.255.255.0

Here is the debug output from "/usr/sbin/inetd -d" after a sync attempt:

ADD : netsync proto=tcp accept=1 max=0 user=root group=(null)class=daemon builtin=0x0 server=/usr/local/bin/coldsync policy=""
inetd: netsync/tcp: ipsec initialization failed; in entrust
inetd: netsync/tcp: ipsec initialization failed; out entrust
inetd: enabling netsync, fd 4
inetd: registered /usr/local/bin/coldsync on 4
inetd: someone wants netsync
inetd: accept, ctrl 6
inetd: + closing from 5
inetd: 8687 execl /usr/local/bin/coldsync
inetd: handling signal flag C
inetd: 8687 reaped, status 0x100

Here are the contents of /var/log/netsync.log after the same sync attempt:

Log started on Sun Dec 29 12:52:04 2002
Inside run_mode_Daemon()
Using port from config file.
Opening device [stdin]
Inside netsync_read()
netsync_read: Reading packet header
Got header: cmd 0x01, xid 0xff, len 0x00000016
netsync_read: Reading packet data
Inside netsync_write()
Sending NetSync header (6 bytes)
NET >>> 01 01 00 00 00 32                                 | .....2
Sending NetSync data (50 bytes)
NET >>> 12 01 00 00 00 00 00 00 00 20 00 00 00 24 ff ff   | ......... ...$..
NET >>> ff ff 3c 00 3c 00 00 00 00 00 00 00 00 00 c0 a8   | ..<.<...........
NET >>> 01 21 04 27 00 00 00 00 00 00 00 00 00 00 00 00   | .!.'............
NET >>> 00 00                                             | ..
Inside netsync_read()
netsync_read: Reading packet header
Error reading NetSync packet header.
read: Connection reset by peer
Error: Can't connect to Palm.
Error: Communication error.

Log closed on Sun Dec 29 12:52:05 2002

What am I doing wrong?

Jack.
-- 
Jack Twilley
jmt at twilley dot org
http colon slash slash www dot twilley dot org slash tilde jmt slash

Attachment: pgp00044.pgp
Description: PGP signature