Go Back   Velocity Reviews > Newsgroups > Wireless Networking
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Wireless Networking - IrDa print server - howto?

 
Thread Tools Search this Thread
Old 06-20-2005, 06:31 PM   #1
Default IrDa print server - howto?


Hi all,

i'd like to implement an IrDa print server,
receiving printing requests from mobile phones or
notebooks via IR and redirecting them to a local
port or file on the PC / PDA, with Winsock-API
(WIN32 and/or WinCE).
My problem is that i cannot find a way to set the
device info (resp. printer hint bit) via setsockopt(),
so that IR-connected devices will accept my server as a
printer device.
Is there e.g. an undocumented OptionName for
WSHSetSocketInformation() to set the hint bits for the
local device? Or is it a general limitation of
current irda.sys / wshirda.dll that device hint bits
are always hard coded, so the only way is a complete
replacement of the irda protocol stack?

Thanks for replies,
Gilbert


Automatix
  Reply With Quote
Old 06-29-2005, 07:48 PM   #2
=?Utf-8?B?TWF6YWhpciBQb29uYXdhbGEgW01TRlRd?=
 
Posts: n/a
Default RE: IrDa print server - howto?
Problem Description:
===============
I'd like to implement an IRDA print server, receiving printing requests from
mobile phones or notebooks via IRDA and redirecting them to a localport or
file on the PC / PDA, with Winsock-API (WIN32 and/or WinCE).
My problem is that I cannot find a way to set the device info (esp. printer
hint bit) via setsockopt, so that IR-connected devices will accept my server
as aprinter device.

Is there e.g. an undocumented OptionName for WSHSetSocketInformation() to
set the hint bits for the local device? Or is it a general limitation of
current irda.sys / wshirda.dll that device hint bits are always hard coded,
so the only way is a complete replacement of the IRDA protocol stack?

Answers:
=======
If the OS is some flavor of Win CE then the following answer will not apply.

If you are using Win 2000 and later OS then here is the answer:

Windows Desktop OS does not have an API to change the hint bits. Hints bits
are just that, hints, and don't really tell you if a service is available so
our recommended procedure is to query the IAS database for the service.

We do have an undocumented and unsupported way of setting the hint bits via
the registry.

HKLM\System\CurrentControlSet\Services\irda\pamame ters\HINTCHARSET=x

where x is a DWORD with the low order byte equal to character set (0x00),
next byte is last hint byte.

This is the default:

#define IRLAP_DEFAULT_HINTCHARSET 0x842500 // computer, IrCOMM, Obex,
and telephony

So you will want to add HINTCHARSET=0x8C2500 for the printer.


Byte 1 Byte 2

Bit Function Bit Function

0 PnP Compatible 8 Telephony

1 PDA/Palmtop 9 File Server

2 Computer 10 rsvd

3 Printer 11 rsvd

4 Modem 12 rsvd

5 Fax 13 rsvd

6 LAN Access 14 rsvd

7 Extension 15 Extension


Please keep in mind that this registry key and the values are not supported
and may change from one OS to another or from one service pack to another.


thanks,
Mazahir Poonawala
Microsoft Developers Support

"Automatix" wrote:

> Hi all,
>
> i'd like to implement an IrDa print server,
> receiving printing requests from mobile phones or
> notebooks via IR and redirecting them to a local
> port or file on the PC / PDA, with Winsock-API
> (WIN32 and/or WinCE).
> My problem is that i cannot find a way to set the
> device info (resp. printer hint bit) via setsockopt(),
> so that IR-connected devices will accept my server as a
> printer device.
> Is there e.g. an undocumented OptionName for
> WSHSetSocketInformation() to set the hint bits for the
> local device? Or is it a general limitation of
> current irda.sys / wshirda.dll that device hint bits
> are always hard coded, so the only way is a complete
> replacement of the irda protocol stack?
>
> Thanks for replies,
> Gilbert
>



=?Utf-8?B?TWF6YWhpciBQb29uYXdhbGEgW01TRlRd?=
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help configuring DP-311P Print Server with Verizon Wireless Router Surek Hardware 0 04-07-2009 12:23 AM
SQL Server 2008 delayed into Q3 2008 darrilgibson@cox.net MCITP 0 01-27-2008 10:26 PM
MCITP SQL Server 2005 or SQL Server 2008 Darrilgibson@gmail.com MCITP 0 12-19-2007 01:56 PM
Print server cannot be detected oldfolks1 General Help Related Topics 0 10-25-2006 07:08 AM
Re: Need Ideas For A New Server, Long Post Gareth Church A+ Certification 2 07-27-2003 12:46 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46