OESF Portables Forum

General Forums => General Discussion => Topic started by: suruaZ on May 28, 2004, 12:11:29 am

Title: Zaurus aka IrDA sniffer
Post by: suruaZ on May 28, 2004, 12:11:29 am
Could I use Zaurus for IrDA sniffing? I need to debug infra red communications between cell phone and Psion.
I tried tcpdump with -i irda0 without luck. Any ideas?

Thanks,
suruaZ
Title: Zaurus aka IrDA sniffer
Post by: RichS on May 28, 2004, 11:03:20 am
you could try qmode2, which need lirc to work. It works great on my 5600 but whether or not it will do what you wnat, I don\'t know?
Title: Zaurus aka IrDA sniffer
Post by: suruaZ on May 28, 2004, 11:17:50 am
Not exactly what I need. It\'s \"Graphical IR signal tracer\" but I need to see what data passing through IR to analyze what\'s going on.

suruaZ
Title: Zaurus aka IrDA sniffer
Post by: datajerk on May 28, 2004, 02:01:43 pm
IrDA device should be a serial device.  Try kermit and set line /dev/ircomm with a BPS rate that matches the other 2 devices.
Title: Zaurus aka IrDA sniffer
Post by: RichS on May 28, 2004, 03:24:55 pm
if you install lirc , try running mode2 from the command line. Does that do what you want?
Title: Zaurus aka IrDA sniffer
Post by: suruaZ on May 29, 2004, 01:02:26 am
Quote
if you install lirc , try running mode2 from the command line. Does that do what you want?


Closer but still not exacltly what I need. I got live pulse/space values. But how to convert this in to read able form? I need to see this data flow in hex or ascii to analyze IrDA frames.

Thanks,
suruaZ
Title: Zaurus aka IrDA sniffer
Post by: RichS on May 29, 2004, 02:00:18 am
You\'d have to talk to someone who has coded for a keyboard. You need a traslation program and I don\'t know of any... Would be interesting and I think you\'d have to settle for hex. You have to remember that irda is not ascii or hex in nature. It\'s simply a series of pulses. It\'s the software that has to turn the pulses into a human or machine readable format...

Good luck and let us know if you come up with anything...
Title: Zaurus aka IrDA sniffer
Post by: cowcow on May 29, 2004, 12:45:44 pm
Tried sersniff? Let me know how it goes too.. I would like to reverse engineer my Samsung E700A too, as it does not seems to support OBEX, and hence cannot easily transfer photo to my Z



http://www.earth.li/projectpurple/progs/sersniff.html (http://www.earth.li/projectpurple/progs/sersniff.html)

sersniff


sersniff is a simple program to tunnel/sniff between 2 serial ports. The current version is 0.0.4


Download sersniff

Source tarball (16kb)

Description


 This program was written to aid me with the decoding of the protocol used by the Nokia 9000i Communicator to talk to the NServer software Nokia provides, which only runs under Windows. Having hastily thrown together the code to do what I needed it occured to me that others may have a use for something similiar and that having a skeleton available may help.


This version adds the ability to change the ports to use and the baud rate to use. It also has support for sniffing a TCP connection or between a serial port and a TCP port.
Title: Zaurus aka IrDA sniffer
Post by: suruaZ on May 29, 2004, 02:21:02 pm
Quote
Tried sersniff? Let me know how it goes too..  
...
Source tarball (16kb)  
...


I have no facilities set to compile it in Zaurus ipk.

suruaZ
Title: Zaurus aka IrDA sniffer
Post by: locutus on May 29, 2004, 07:57:09 pm
Quote
Quote
Tried sersniff? Let me know how it goes too..  
...
Source tarball (16kb)  
...


I have no facilities set to compile it in Zaurus ipk.

suruaZ


Sure you do. Go get zDemoLinux CD and do it from there( hint, no need to install anything ). A search should get you to it.
Title: Zaurus aka IrDA sniffer
Post by: datajerk on May 29, 2004, 09:34:57 pm
I just built and uploaded it to http://sense.net/zc/files (http://sense.net/zc/files), let me know if it works.
Title: Zaurus aka IrDA sniffer
Post by: datajerk on May 29, 2004, 09:37:40 pm
it = sersniff
Title: Zaurus aka IrDA sniffer
Post by: suruaZ on May 30, 2004, 12:37:30 am
Quote
Sure you do. Go get zDemoLinux CD and do it from there( hint, no need to install anything ).

Yes I know. It\'s cool project. But I\'m on 33.6 dialup.
Quote
I just built and uploaded it to http://sense.net/zc/files (http://sense.net/zc/files), let me know if it works.

\"The requested URL /zc/files, was not found on this server.\"

suruaZ
Title: Zaurus aka IrDA sniffer
Post by: Stubear on May 30, 2004, 12:52:52 am
Quote
Quote
I just built and uploaded it to http://sense.net/zc/files (http://sense.net/zc/files), let me know if it works.

\"The requested URL /zc/files, was not found on this server.\"

suruaZ


Did you think to try removing the comma?

Stu
Title: Zaurus aka IrDA sniffer
Post by: suruaZ on May 30, 2004, 04:52:11 am
Quote
Did you think to try removing the comma?


Oh yes, sorry  :wink:

suruaZ
Title: Zaurus aka IrDA sniffer
Post by: suruaZ on May 30, 2004, 10:12:17 am
Quote
I just built and uploaded it to http://sense.net/zc/files (http://sense.net/zc/files), let me know if it works.

Thanks datajerk. It works. At least I\'m able to run the program, to see the help. Unfortunately I was not able yet to find the way how to sniff ircomm with it.
I tried
#sersniff -i /dev/ircomm -o /dev/tty0 -b 115200 -s
and some other command lines without getting of any output in the terminal screen or file.
Did someone had more luck with sersniff to sniff ircomm?

suruaZ
Title: Zaurus aka IrDA sniffer
Post by: datajerk on May 30, 2004, 05:47:52 pm
I believe that ircomm is disabled by default.  Try setting to automatic in the beam receive app.  Just a guess.  I will try to test later.
Title: Zaurus aka IrDA sniffer
Post by: ciro on May 31, 2004, 08:15:17 am
I guess you want the irdadump utility (it\'s part of irda-utils)

NAME
       irdadump -- monitors the IrDA traffic on one ore more links.


SYNOPSIS
       irdadump [-i device]  [-d]  [-l]  [-s n]  [-x]

OPTIONS
       -i device N.N.

       -l set line buffering on output file.

       -d  prints  the  time  difference  between the current and the previous
       frame.

       -s n Set snaplen for -x.

       -x dump frame.
Title: Zaurus aka IrDA sniffer
Post by: suruaZ on May 31, 2004, 08:29:35 am
Quote
I guess you want the irdadump utility (it\'s part of irda-utils)


Have you seen it ported for Zaurus somewhere?

suruaZ
Title: Zaurus aka IrDA sniffer
Post by: ciro on May 31, 2004, 08:47:39 am
Get some old irda-tools package from debian/arm. I hope it will be compatible with your libc. Though, it\'s not hard to compile.