[chbot] HEX and ANSII ATMEGA and Delphi

Stuart Brown stuartbrown2 at gmail.com
Sun Oct 25 02:57:26 GMT 2020


Wallace

Have you considered Google Protocol buffers? They use an efficient 'on the
wire' protocol, are very easy to work with and there are libraries you can
use:

   - For Pascal - https://github.com/lalexs75/protobuf-fpc
   - For C - https://github.com/nanopb/nanopb

I used protocol buffers very successfully to send data between 2 micros,
the best part of it all was how easy it is to expand a message while
maintaining backward compatibility.

I also used a version of SLIP encoding in another project, also very easy
to use and low overhead -> https://tools.ietf.org/html/rfc1055

Stuart


On Sat, 24 Oct 2020 at 09:06, Marshland Engineering <
marshland at marshland.co.nz> wrote:

> I'm a bit stuck here. I want to send hex data from an Atmega to my PC. I
> have
> a com port component for Delphi which receives Ansii fine. I can see the
> comport RX signal flicking ie receiving data in hex format, but I don't
> know
> how to convert it into something I can use/display.
>
> Currently I have been using the c itoa function, but I have sign issues
> and it
> takes longer to send 65000 than FF so was hoping to go the hex route.
>
> I presume all higher level programs will have similar issues.
>
> Thanks Wallace.
>
>
>
> --
> Thanking you
> Wallace Weideman
> Marshland Engineering
> 704 Marshland Road
> Styx
> Christchurch
> 03 3237449
> www.marshland.co.nz
>
>
>
> On 24/10/2020 at 12:00 a.m., chchrobotics-request at lists.ourshack.com
> wrote:
> >Send Chchrobotics mailing list submissions to
> >       chchrobotics at lists.ourshack.com
> >
> >To subscribe or unsubscribe via the World Wide Web, visit
> >       https://lists.ourshack.com/mailman/listinfo/chchrobotics
> >or, via email, send a message with subject or body 'help' to
> >       chchrobotics-request at lists.ourshack.com
> >
> >You can reach the person managing the list at
> >       chchrobotics-owner at lists.ourshack.com
> >
> >When replying, please edit your Subject line so it is more specific
> >than "Re: Contents of Chchrobotics digest..."
> >
> >
> >Today's Topics:
> >
> >   1. Re: PCBs update (David Closey)
> >
> >
> >----------------------------------------------------------------------
> >
> >Message: 1
> >Date: Fri, 23 Oct 2020 19:02:30 +1300
> >From: David Closey <david.closey at gmail.com>
> >To: Christchurch Robotics <chchrobotics at lists.ourshack.com>
> >Subject: Re: [chbot] PCBs update
> >Message-ID: <151DEB16-9F33-4DE0-9C20-A95CFD809FE5 at gmail.com>
> >Content-Type: text/plain; charset=utf-8
> >
> >Russell
> >
> >What a Fantastic method
> >Sorry I also missed the talks this month
> >I have played with all sorts of methods over the years including dry film
> of
> late
> >
> >Although commercial PCB’s are quite affordable now
> >It is very satisfying to be able to knock up a prototype from idea to
> board
> in a weekend
> >I’m definitely going to try the method you describe
> >
> >What is the source of the photo resist ??
> >I had a quick google "PER-20” but nothing popped up
> >
> >
> >David Closey
> >
> >
> >
> >
> >> On 22/10/2020, at 17:43, Volker Kuhlmann <list57 at top.geek.nz> wrote:
> >>
> >> On Thu 22 Oct 2020 08:57:56 NZDT +1300, Russell & Heather Phillips
> wrote:
> >>
> >> [...]
> >>
> >> That sounds all very interesting. Sorry I missed the talk.
> >>
> >> Would you be able to give some dimensions of details that can be
> >> achieved with this method?
> >>
> >> It looks very similar to what we did in the
> >> 1980s at home, although without machinery like lathes. We dropped
> >> iron(III)chloride for etching in favour of sodiumhydroxide (I think, not
> >> totally sure any more now). It's also possible we added a little
> >> hydrochloric acid. It was less of a mess than ironchloride and perhaps a
> >> little safer.
> >>
> >> Recently I heard some artists warn that etching metal with those kind of
> >> chemicals does eventually erode your teeth. That might be plausible when
> >> breathing the vapours and having a dry mouth, so ventilation and
> >> drinking (not the etching solution) might be wise.
> >>
> >> Volker
> >>
> >> --
> >> Volker Kuhlmann
> >> http://volker.top.geek.nz/   Please do not CC list postings to me.
> >>
> >> _______________________________________________
> >> Chchrobotics mailing list Chchrobotics at lists.ourshack.com
> >> https://lists.ourshack.com/mailman/listinfo/chchrobotics
> >> Mail Archives: http://lists.ourshack.com/pipermail/chchrobotics/
> >> Meetings usually 3rd Monday each month. See http://kiwibots.org for
> venue,
> directions and dates.
> >> When replying, please edit your Subject line to reflect new subjects.
> >
> >
> >
> >
> >------------------------------
> >
> >Subject: Digest Footer
> >
> >_______________________________________________
> >Chchrobotics mailing list
> >Chchrobotics at lists.ourshack.com
> >https://lists.ourshack.com/mailman/listinfo/chchrobotics
> >Mail Archives: http://lists.ourshack.com/pipermail/chchrobotics/
> >Meetings usually 3rd Monday each month. See http://kiwibots.org for
> venue,
> directions and dates.
> >Please edit your Subject line to reflect new subjects.
> >
> >------------------------------
> >
> >End of Chchrobotics Digest, Vol 157, Issue 18
> >*********************************************
>
>
> _______________________________________________
> Chchrobotics mailing list Chchrobotics at lists.ourshack.com
> https://lists.ourshack.com/mailman/listinfo/chchrobotics
> Mail Archives: http://lists.ourshack.com/pipermail/chchrobotics/
> Meetings usually 3rd Monday each month. See http://kiwibots.org for
> venue, directions and dates.
> When replying, please edit your Subject line to reflect new subjects.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ourshack.com/pipermail/chchrobotics/attachments/20201025/f90fe613/attachment.html>


More information about the Chchrobotics mailing list