Re: [NTLK] About Nitro and NewTen

From: Victor Rehorst (victor_at_newtontalk.net)
Date: Wed Feb 26 2003 - 08:44:02 PST


Quoting Eckhart Köppen <eck1001_at_gmx.net>:

> On Wednesday, February 26, 2003, at 12:39 , Damien Batstone wrote:
>
> > I think you would need to patch the dock package to use the IrDA port
> > through serial, and then use a virtual IRCOMM port on the PC/Mac.
>
> Yes, that might work indeed. But two things make this difficult:
> patching the Dock application is not that easy (it's in ROM), and I'm
> not sure how the MNP compression play with all this. As far as I see,
> the default serial Dock connection is using MNP compression, and the MNP
> compression is implemented on top of the regular serial connection. So
> if you would simply replace this with the IrCOMM layer, the deskop side
> would get confused because the data is not MNP compressed anymore. But
> if you'd then disable MNP in NewTen/UnixNPI, it might work.

Someone please be my guest, the UnixNPI source is GPL'd:

http://unixnpi.sf.net/

> Patching can probably be avoided by modifying the Serial57600.pkg which
> is part of UnixNPI to use not the mnps service, but the ircm service.

Eck, the fastserial source code (it was exported from NewtDevEnv 3.4) has this
function:
FastSerial._package.partData.openOptions
func()
begin
        return [{label: "mnps", type: 'service, opCode: 512},
{label: "siop", type: 'option, opCode: 256, data: {arglist: [0, 0, 8, kSpeed],
typeList: [10, 1, 2, 1, 1]}},
{label: "mnpn", type: 'option, opCode: 256, data: {arglist: [57600], typeList:
[10, 1]}},
{label: "mnpc", type: 'option, opCode: 512, data: {arglist: [11], typeList:
[10, 1]}},
{label: "mnpa", type: 'option, opCode: 512, data: {arglist: [true], typeList:
[10, 5]}},
{label: "eter", type: 'option, opCode: 256, data: {arglist: [kSpeed],
typeList: [10, 1]}}];
end

kSpeed is the serial speed. Looks to me like this function is specifying all
of the layers of the connection... if the mnpn, mnpc, and mnpa options were
removed (and possibly replaced) and the mnps replaced with ircm as you
mentioned, do you think this would initiate a valid non-MNP compressed IrCOMM
serial connection from the dock?

BTW: the full source of fastserial is in the UnixNPI tar file.

-- 
Victor Rehorst - victor_at_newtontalk.net - chuma_at_chuma.org
NewtonTalk list administrator - http://www.newtontalk.net
Will the last person to leave the platform please turn off the backlight?
-- 
This is the NewtonTalk list - http://www.newtontalk.net/ for all inquiries
List FAQ/Etiquette/Terms: http://www.newtontalk.net/faq.html
Official Newton FAQ: http://www.chuma.org/newton/faq/


This archive was generated by hypermail 2.1.5 : Wed Feb 26 2003 - 09:00:00 PST