Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #541335

Re: Video data compression for serial link

Newsgroups sci.electronics.design
Subject Re: Video data compression for serial link
References <XVmxE.157951$bA.69332@fx26.iad> <qa7hca$1brk$1@gioia.aioe.org> <gk1kpf-pk6.ln1@coop.radagast.org> <KcJxE.768986$Z%2.2694@fx48.iad>
From dplatt@coop.radagast.org (Dave Platt)
Message-ID <1q7npf-gch.ln1@coop.radagast.org> (permalink)
Date 2019-04-30 18:02 -0700

Show all headers | View raw


In article <KcJxE.768986$Z%2.2694@fx48.iad>, bitrex  <user@example.net> wrote:


>Yes, the device we're using is ACM. on linux the uP's port is accessed 
>thru /dev/ttyACM0. On a Mac its identifier is some bizarre gibberish but 
>works the same.
>
>On the API side of things however there does seem to be a concept of 
>'baud rate' as one still has to define a link speed in software prior to 
>transmitting or receiving data.

I sent back and re-checked this, and you're right - that sort of
negotiation is supported, although not mandatory.

The endpoint is what's known as a CDC (Communications Device Class).
This class has commands defined which allow the host to query, and
set, the line coding (bits per character, stop bits, baud rate) and
the hardware handshaking.  In effect, you _can_ do to a full-featured
CDC, what you can do to a normal host-attached serial port.

I recall now that I have a small USB-attached faxmodem at home which
works this way.

You could, if you wish, actually implement an RS-232 serial port via
such a CDC endpoint, with full hardware handshaking.  In effect, this
class is capable of being a standards-conforming equivalent to the
sorts of proprietary USB implementations that FTDI and Prologix and
etc. do in their serial-to-USB converters.

It's also possible to implement a CDC which does not implement these
line-related commands at all - they're optional.  You'd do this if you
want a CDC which behaves very much like a speed-independent,
hardware-independent serial port... that is, you can send a string of
bytes to it, read bytes back, operate in full or half duplex, etc.,
but without having to worry about the concept of baud rate.

You might, for example, implement a speed-less CDC inside a
microcontroller, creating a "console" or "terminal" interface.  This
would be more efficient and reliable, in some ways, than using the
micro's own RX and TX serial port pins, because the traffic between
host and micro would be carried directly in USB "URBs" as sequences of
bytes with full flow control.  There would never be a need to do
RS-232-serial-like conversion between bytes, and individual bits
flowing over a single serial line.  You could read or write hundreds
of bytes per operation, rather than having to take individual
interrupts every character or every few characters.


Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Video data compression for serial link bitrex <user@example.net> - 2019-04-28 15:11 -0400
  Re: Video data compression for serial link whit3rd <whit3rd@gmail.com> - 2019-04-28 13:12 -0700
  Re: Video data compression for serial link Hul Tytus <ht@panix.com> - 2019-04-28 20:25 +0000
    Re: Video data compression for serial link bitrex <user@example.net> - 2019-04-28 16:31 -0400
      Re: Video data compression for serial link Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2019-04-29 14:16 +0300
  Re: Video data compression for serial link gnuarm.deletethisbit@gmail.com - 2019-04-29 04:10 -0700
    Re: Video data compression for serial link bitrex <user@example.net> - 2019-04-29 13:04 -0400
      Re: Video data compression for serial link Joe Chisolm <jchisolm6@earthlink.net> - 2019-04-29 13:20 -0500
      Re: Video data compression for serial link dplatt@coop.radagast.org (Dave Platt) - 2019-04-29 11:21 -0700
        Re: Video data compression for serial link DecadentLinuxUserNumeroUno@decadence.org - 2019-04-29 18:56 +0000
          Re: Video data compression for serial link DecadentLinuxUserNumeroUno@decadence.org - 2019-04-29 19:13 +0000
          Re: Video data compression for serial link Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2019-04-29 22:41 +0300
            Re: Video data compression for serial link DecadentLinuxUserNumeroUno@decadence.org - 2019-04-30 00:53 +0000
              Re: Video data compression for serial link Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2019-04-30 10:24 +0300
                Re: Video data compression for serial link DecadentLinuxUserNumeroUno@decadence.org - 2019-04-30 09:59 +0000
                Re: Video data compression for serial link Rick C <gnuarm.deletethisbit@gmail.com> - 2019-05-08 17:59 -0700
                Re: Video data compression for serial link dplatt@coop.radagast.org (Dave Platt) - 2019-05-09 10:42 -0700
                Re: Video data compression for serial link upsidedown@downunder.com - 2019-05-09 06:56 +0300
          Re: Video data compression for serial link dplatt@coop.radagast.org (Dave Platt) - 2019-04-29 12:58 -0700
            Re: Video data compression for serial link bitrex <user@example.net> - 2019-04-29 16:33 -0400
              Re: Video data compression for serial link dplatt@coop.radagast.org (Dave Platt) - 2019-04-30 18:02 -0700
                Re: Video data compression for serial link bitrex <user@example.net> - 2019-04-30 21:13 -0400
                Re: Video data compression for serial link Lasse Langwadt Christensen <langwadt@fonz.dk> - 2019-04-30 18:32 -0700
            Re: Video data compression for serial link DecadentLinuxUserNumeroUno@decadence.org - 2019-04-30 00:59 +0000
              Re: Video data compression for serial link Lasse Langwadt Christensen <langwadt@fonz.dk> - 2019-04-29 18:27 -0700
      Re: Video data compression for serial link Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2019-04-30 10:22 +0100
        Re: Video data compression for serial link bitrex <user@example.net> - 2019-04-30 12:20 -0400
        Re: Video data compression for serial link upsidedown@downunder.com - 2019-04-30 20:19 +0300
          Re: Video data compression for serial link DecadentLinuxUserNumeroUno@decadence.org - 2019-04-30 22:04 +0000
            Re: Video data compression for serial link whit3rd <whit3rd@gmail.com> - 2019-04-30 16:30 -0700
              Re: Video data compression for serial link Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2019-05-01 08:49 +0100
                Re: Video data compression for serial link bitrex <user@example.net> - 2019-05-01 10:28 -0400
  Re: Video data compression for serial link upsidedown@downunder.com - 2019-04-30 13:50 +0300
  Re: Video data compression for serial link david eather <eatDELETEher@tpg.com.au> - 2019-05-01 13:45 +1000
    Re: Video data compression for serial link bitrex <user@example.net> - 2019-05-08 16:57 -0400
      Re: Video data compression for serial link Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2019-05-08 22:22 +0100
        Re: Video data compression for serial link bitrex <user@example.net> - 2019-05-08 22:09 -0400
          Re: Video data compression for serial link bitrex <user@example.net> - 2019-05-08 22:11 -0400
          Re: Video data compression for serial link Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2019-05-09 08:44 +0100
            Re: Video data compression for serial link bitrex <user@example.net> - 2019-05-09 10:41 -0400
            Re: Video data compression for serial link bitrex <user@example.net> - 2019-05-09 10:52 -0400
        Re: Video data compression for serial link david eather <eatDELETEher@tpg.com.au> - 2019-05-10 14:30 +1000
          Re: Video data compression for serial link jrwalliker@gmail.com - 2019-05-10 04:30 -0700
            Re: Video data compression for serial link Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2019-05-14 11:17 +0100
              Re: Video data compression for serial link upsidedown@downunder.com - 2019-05-14 14:51 +0300
                Re: Video data compression for serial link Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2019-05-14 13:45 +0100

csiph-web