All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Kreischer <3kreisch@informatik.uni-hamburg.de>
To: linux-serial@vger.kernel.org
Subject: Initialization Packet in Serial Communication?!
Date: Thu, 22 May 2008 17:01:06 +0200	[thread overview]
Message-ID: <48358AB2.2070602@informatik.uni-hamburg.de> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hey guys,

we are trying to make a small embedded sensor device (Crossbow's TelosB mote)[1] talk to a SmartCard reader
via a serial connection.
To do so, we checked which packets are being sent by a open source linux driver to the reader and successfully
replicated the behaviour manually with cutecom[2].
We then implemented a stripped down version of the driver on the mote, but when we attach the reader to it, it
won't answer to the commands sent by the mote.

We recognized a kind of initialization packet received by cutecom and even cat everytime we open a connection:
	00 00 80 00 00 00 80 00 80 80 80 80 80 80 80 80 80 80 80
        80 00 80 80 80 00 00 80 00 00 00 00 80 00 00 80 00 00

We don't seem to receive that packet when connecting the reader to the mote, though.
Connecting the mote via a null modem cable to the PC and imitating the reader's responses with cutecom does
work, so the driver on the mote is ok.

We have already debugged the 8250.c serial kernel driver with printk()s before every outb() and inb() to the
UART's registers and started writing a miniature user space driver to find out what causes the packet, but we
can't exactly replicate the behaviour manually, yet.

The question is: Does anybody of you know what that packet is about, and what triggers it?

Thanks for your help
Daniel



[1] http://www.xbow.com/Products/Product_pdf_files/Wireless_pdf/TelosB_Datasheet.pdf
[2] http://cutecom.sourceforge.net/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIVAwUBSDWKok5eU1rRPXMNAQjXJw//fqsHKntQv9aVyHUF5WSuyE3ZhLHhT6qK
NoOVSJRqFr7iml7sQV/dvLJt3ZWlfWGlhV+N2i3Gg8zGVMrqtwdjV+CwE9tfTRUR
d6EmU17VIAb6Qa0WhSlIb6Ttns6kZwRihSVBK9CoiqAWp9J/dg1RH3Bvc9ZBJ9u2
WEtarWa6PA0zlb9VQ67sgcv640fpGGR910K5EDNEW2TXz2Mm+xXEId5cI0eWlUle
iURG13U9gzjKB2cAPXzTTLy+y+FoLeUHo7N1tUPzQXLkhSzEMWk7uD+4zTeKALC0
pJznBR7lF5lNk+XQLXJq4vHUETwLgs0wR5mptPBIuH/tGWyRrwtrbxp9c52fEbqh
3WZio5w9PdhsZTvDo1Q0zy3QDc/bPIrF2+6cJg+Q/dCjS2grKr5FtYuj9jyd61QU
2Bzvp5Ll1jPX3j1LAIYUKf/Vod9cyGMJPIm/qBdeAl/I/EugS7OolcLVbOnz5g/m
lfMeYj3IBG4UeU0IJ1Quv3l4T+FZTz4yFHS/d/e/y9GpTTSiaT6h3taamJWaAvqS
4EyJx6ekLQBzgqTwGbhAPZMuDRUGJsbdQO3dbdNsOEvpGPyN7XL2vvRpISQyYOC9
zGkyURDHFJPaObX/rVUZLk3PeYaKiJX5xc+PB+m6zyHH8e4B1GLrUylaRp/27DO+
6HahuHOW2jo=
=3lL/
-----END PGP SIGNATURE-----

             reply	other threads:[~2008-05-22 15:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-22 15:01 Daniel Kreischer [this message]
2008-05-22 21:27 ` Initialization Packet in Serial Communication?! Paul Fulghum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48358AB2.2070602@informatik.uni-hamburg.de \
    --to=3kreisch@informatik.uni-hamburg.de \
    --cc=linux-serial@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.