List Info

Thread: Réf. : Re: bluez : new blu




Réf. : Re: bluez : new blu
user name
2006-09-15 17:08:16

 Thx to answer me so fast, sorry that in the precedent patch i forget to clean fakehid.c. This is done in this patch. As, I have see in the cvs you should have a J3 Keyboard too...
About my Nokia, I know the applet but i don't have take the time to analyse source codes.

 Gonna retry to suscribe list with webform at home.



  -  -  -  -  -  -  -
Cordialement,
Jean-Jacques.



Marcel Holtmann <marcelholtmann.org>

15/09/2006 18:34
Remis le : 15/09/2006 18:33

       
        Pour :        Jean-Jacques BRUCKER <jean-jacques.bruckersagem.com&gt;
        cc :        bluez-devellists.sourceforge.net
        Objet :        Re: bluez : new bluetooth keyboard supported by hidd.



Hi Jean-Jacques,

> I have recently bought a bluetooth "Smart Keyboard&quot; for my Nokia 770.
> But this keyboard, doesn't have a sdp server and was not supported by
> bluez-tools.
>
> (Here are the caracteristics of my keyboard:  
>;         bd addr : 00:0A:3A:2E:7B:AC
>;         name : KEYBOARD
&gt;         CoD (Class of Device/Service) : 0x001f00
&gt; )
>
> So i have make some change in your source code to support him.
> Here is my patch and the patched tar.gz (with my makefiles, and i have
> verify that files wasn't modified recently on CVS).
>
> As you will see i have created a new file devices.h and i have
> suggested an architecture to manage different peripherals.

I have put a file fakehid.txt in the CVS with the characteristics of
this keyboard and also the presenter device.

&gt; As I work for Sagem Communication, this keyboard now will work on our
> Sagem Linux phone (in developpement).

Make sure to send me one for testing ;)

> (I Gonna make it work now on my Nokia 770, but I don't know how to do
> it yet, as it use dbus... and i am asking me if that was really
>; necessary, and if hidd is used on the Nokia 770...).

The Nokia 770 has no supported HID support. However you can install an
applet that gives you keyboard support. This however runs hidd and so it
should not be a big problem to integrate it.

> I notice the hidd deamon may need some minor improvement now, like
> forking and doing a "search device&quot; on a signal event. Or reading a
> configuration file that contains knows devices and connect them on
> other signal... (or using dbus... ?). (just thinking... trying to
> share ideas...).

The hidd needs D-Bus support and a small redesign. However at the moment
we are just finishing the D-Bus support in hcid and its sdpd integration
and so it might take some time before we start looking at hidd. However
feel free to propose something.

> PS: I don't have a "secure" mail server to suscribe myself to
> bluez-devel mail list. So could you please add one of my email to the
> bluez-devel mail list ?
> (personnal email: jjbruckerfree.fr, professionnal email:
>; jean-jacques.bruckersagem.com, should be the one in sender field of

> this email).

No idea what this means. Nobody needs a secure mail server to subscribe
to bluez-devel. Simply use the webform to subscribe.

> PS2: Any comments about my patche are welcome...

It needs a little bit nicer and cleaner integration work, but it seem a
good step forward to make this keyboard work under Linux.

Regards

Marcel






" Ce courriel et les documents qui y sont attaches peuvent contenir des informations confidentielles. Si vous n'etes pas le destinataire escompte, merci d'en informer l'expediteur immédiatement et de detruire ce courriel ainsi que tous les documents attaches de votre systeme informatique. Toute divulgation, distribution ou copie du présent courriel et des documents attaches sans autorisation prealable de son emetteur est interdite."

" This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, please advise the sender immediately and delete this e-mail and all attached documents from your computer system. Any unauthorised disclosure, distribution or copying hereof is prohibited."
Problem compiling u32 patch on Redhat
user name
2006-09-15 19:54:09
I posted this problem on the user list but didn't receive
any response.
I would appreciate if any expert can help me out.
I am trying to apply u32 patch to the Redhat enterprise
edition 4 which
is using 2.6.9 kernel. I am getting the following compile
error.

net/ipv4/netfilter/ipt_u32.c:127: warning: "struct
xt_match" declared
inside parameter list
net/ipv4/netfilter/ipt_u32.c:127: warning: its scope is only
this
definition or declaration, which is probably not what you
want
net/ipv4/netfilter/ipt_u32.c:210: warning: "struct
xt_match" declared
inside parameter list
net/ipv4/netfilter/ipt_u32.c:219: warning: initialization
from
incompatible pointer type
net/ipv4/netfilter/ipt_u32.c:220: error: unknown field
`matchsize'
specified in initializer
net/ipv4/netfilter/ipt_u32.c:220: warning: initialization
makes pointer
from integer without a cast
net/ipv4/netfilter/ipt_u32.c:221: warning: initialization
from
incompatible pointer type
make[3]: *** [net/ipv4/netfilter/ipt_u32.o] Error 1
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2

 I
I looked in the ipt_u32.c and found the matchsize variable:

static struct ipt_match u32_match = {
        .name           = "u32",
        .match          = &match,
        .matchsize      = sizeof(struct ipt_u32),
        .checkentry     = &checkentry,
        .me             = THIS_MODULE
};

But in the ip_tables.h this varibale doesn't exists:

struct ipt_match
{
        struct list_head list;

        const char name[IPT_FUNCTION_MAXNAMELEN];

        /* Return true or false: return FALSE and set
*hotdrop = 1 to
           force immediate packet drop. */
        /* Arguments changed since 2.4, as this must now
handle
           non-linear skbs, using skb_copy_bits and
           skb_ip_make_writable. */
        int (*match)(const struct sk_buff *skb,
                     const struct net_device *in,
                     const struct net_device *out,
                     const void *matchinfo,
                     int offset,
                     int *hotdrop);

        /* Called when user tries to insert an entry of this
type. */
        /* Should return true or false. */
        int (*checkentry)(const char *tablename,
                          const struct ipt_ip *ip,
                          void *matchinfo,
                          unsigned int matchinfosize,
                          unsigned int hook_mask);

        /* Called when entry of this type deleted. */
        void (*destroy)(void *matchinfo, unsigned int
matchinfosize);

        /* Set this to THIS_MODULE. */
        struct module *me;
};

Could you please guide me how can I fix this problem. I
tried to fix
this compile problem by commenting out the line ipt_u32.c
which
references matchsize variable. After that I was able to
compile the
kernel but when I tried to run iptables command,
I got "Invalid argumment" error. Here is the
command I used.

iptables -A OUTPUT -m u32 --u32
"2&0xffff=0x2:0x0100" -j DROP
iptables: Invalid argument

I am not sure if I am seen this error because I commented
out the line
in ipt_u32.c? I appreciate if you point me to the right
direction. Is
u32 module is ported to linux 2.6 kernel?
Thanks.

Mohammad







[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )