"Patrick Shirkey" <[EMAIL PROTECTED]> writes:

> On 9:30:45 am 09/25/07 Scott Gifford 
>> 
>> I did some similar work, with about 20 devices.  I used these patches
>> to the startup scripts to get the devices to come up automatically,
>> which I found essential to everything working smoothly:
>>
>>     http://whereabouts.eecs.umich.edu/wiki/lib/exe/fetch.php?id=wherea
>> bouts_pda_setup&cache=cache&media=synce-serial-0.9.1-sg.tar.gz
>>
>> They will only work with 128 devices right now, but some simple fixes
>> to IP address calculations should fix that.
>>
>
> Hi Scott,
>
> I have been looking at the code and I cannot see any specific differences
> relating to multiple devices. Can you give me a bit of background on what
> you had to modify please?

Hi Patrick,

Yes, I'd be happy to try to help.  Unfortunately I no longer have
access to the 20 devices, so I can't test much.

Here is my original post about the patches:

    http://www.nabble.com/Patch-to-synce-serial-scripts-t2626112.html

I rewrote nearly all of the serial script code (there wasn't that much
of it).  The fixes aren't specific to multiple devices, but they
expand the scripts to be much more flexible, and multiple devices
falls out of that naturally.

The current scripts (at least the 0.10.0 ones) require that you
configure the device with synce-serial-config, then plug it in and run
synce-serial-start.  Obviously you don't want to do that individually
for every device, and anyways it only supports one device at a time,
since running synce-serial-config overwrites the previous
configuration file.

My modifications make the scripts configurable from environment
variables and the command-line, with ip addresses assigned
automatically based on the device name, instead of running
synce-serial-config.  Then the hotplug/udev scripts can just set the
right environment variables and run synce-serial-start-device to bring
it up, and synce-serial-abort-device to bring it down.

I would love to see these changes incorporated into the main
distribution, but so far haven't seen much interest.  If there was a
chance of this happening, I'd be happy to help get things integrated
with the latest SVN trunk, and test with the 1 device I have at least.

Also: I wasn't able to find the serial scripts on the SVN trunk (I
found the 0.10.0 ones).  Maybe some of these issues have been
addressed.  Did you manage to find these?

----Scott.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synce-devel

Reply via email to