From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,79ea565763c599df X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-20 23:34:10 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!newsfeed.hanau.net!newsfeed.vmunix.org!news2.euro.net!news2.euro.net!transit.news.xs4all.nl!not-for-mail From: "Rob Veenker" Newsgroups: comp.lang.ada Subject: Re: PDA Ada Date: Mon, 21 Oct 2002 08:33:01 +0200 Organization: XS4ALL Internet BV Message-ID: References: <3DA4E4A8.5C1DEAE0@adaworks.com> <3da60ff4_1@news.tm.net.my> <3da62ce4$0$1428$272ea4a1@news.execpc.com> NNTP-Posting-Host: a80-127-233-198.dial.xs4all.nl X-Trace: news1.xs4all.nl 1035182047 2692 80.127.233.198 (21 Oct 2002 06:34:07 GMT) X-Complaints-To: abuse@xs4all.nl NNTP-Posting-Date: 21 Oct 2002 06:34:07 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:29969 Date: 2002-10-21T06:34:07+00:00 List-Id: "Dr. Michael Paus" wrote in message news:aoovst$pf9$1@news.online.de... > Rob Veenker wrote: > > The radio concerned is of the PR4G family (aka FM9000) by thales. It uses a > > protocol called SYCOMORE, used for remote control of the radio itself. This > > protocol however also allows (limited) data communication. > > On the iPAQ a SYCOMORE protocol stack written in Ada was implemented using > > JGNAT. > > To allow messaging, we also wrote message acknowlegdement, dispatching and > > marshalling functionality (all in Ada as well). The result is a > > communication 'jar' (Java archive) that is used by a Java GUI. > > I was just wondering how you implemented the messaging in Ada so that it > can be compiled by JGNAT. The message standards I know (e.g. Link 16 J-Messages) > are heavily bit oriented and people tend to implement this via Ada records > with lots of representation clauses. But as far as I know JGNAT does not > support representation clauses (correct me if I am wrong). So how did you > do that? > > Michael > Most of the low-level stuff is done using byte arrays and logical AND's and OR's :-) The records are really not that complicated but I admit that representation clauses would make code better readable and maintainable. At least Ada does have hexadecimal notation and bitwise operations. Rob