CHEAP Serial bus, control 200 devices, 50 meters

If a strict master / slave relation ship is OK ... why not.

Oh ... I just hit the wrong key. RS485 is the correct one.

8 bytes of data ... there is room for are 32 input and 32 output signals and this is more than requested.

Longer messages are handled by CANopen ...

No ... there is a real confusing set of incompatible layer 7 protocols used by the car industry.

Reply to
Armin Steinhoff
Loading thread data ...

If you hired the wrong programmer... If you separate the control processes and the user interface, there is not much which can go wrong. If you can tolerate 100ms response time, a professional PC running Windows will do fine for controlling processes.

This goes any control system. You'll need electromechanical fail safes for any critical system.

--
Reply to nico@nctdevpuntnl (punt=.)
Bedrijven en winkels vindt U op www.adresboekje.nl
Reply to
Nico Coesel

No, not UDP. You'll need something which is acknowledged. This gives you reliability and keeps the master waiting for the target to finish and acknowlegde the operation. This prevents overflowing the target's buffers.

--
Reply to nico@nctdevpuntnl (punt=.)
Bedrijven en winkels vindt U op www.adresboekje.nl
Reply to
Nico Coesel

But how long will the signal wires be?

Jerry

--
Engineering is the art of making what you want from things you can get.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Reply to
Jerry Avins

Lets see. 50m radius makes almost 10000m^2. You'd fit

100 devices in there with 10m distance each.

Rene

Reply to
Rene Tschaggelar

Why not acknowledge on the application level ? Just an Ack is boring. A real reply would lower the load of the bus.

Rene

Reply to
Rene Tschaggelar

DDJ didn't publish that? I now remember (I haven't even though of this in years!) that I wrote and DDJ published a semicoherent rant about the C language (I had the bad luck of learning C just before the ANSI standard came out), and once I saw where my published letter took most of a page, I wished I'd submitted it as a "guest editorial" or some such and gotten paid for it! About your code, there's a routine in the Apple ][ ROM (source listing in the "Red Book" included with early ]['s) to do the same thing with a 6502 (its branch and call instructions are almost identical to the HC11), and the code looks almost identical to yours. I'm not accusing you of plagiarism or any such, just pointing out that several people doing the most efficient implementation of a fairly simple task like this are likely to come up with the same solution.

-----

formatting link

Reply to
Ben Bradley

...

I strongly believe that the only way for most of us to become good writers is reading the works of good writers. In that sense, written programs are much like other literature. My assembly code style developed when I was writing code for 1802 (with no role model) and in the 6502, where I had the excellent monitor ROMs of the KIM-1 and the AIM-65 to serve as models of style and repositories of neat ideas. I read them to learn how to use their functions, but to do that, I needed to understand what the code did, and the details were enlightening.

I first encountered the "trick" of one function calling another just after it with no RETURN statement in order to repeat an action in the AIM-65 monitor. In outline, it looks like this:

DBLSP: CALL CRLF CRLF: RETURN

When DBLSP (doublespace) is called, CRLF (Carriage-Return/Line-Feed) executes twice, then returns to the original caller. You don't forget lines like that any sooner than you forget "Jenny kissed me when we met"* if you happen to come across it.

I guess that my point is that writing in the same style often creates similar works. (It's no wonder that some early Mozart sounds rather like Haydn.) There's no plagiarism, but no coincidence, either.

Jerry ____________________________________________

  • Jenny Kissed Me by Leigh Hunt

Jenny kissed me when we met, Jumping from the chair she sat in. Time, you thief! who love to get Sweets into your list, put that in. Say I'm weary, say I'm sad; Say that health and wealth have missed me; Say I'm growing old, but add- Jenny kissed me!

--
Engineering is the art of making what you want from things you can get.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Reply to
Jerry Avins

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.