for everyone's help with this!
-Original Message-
From: John Dammeyer
Sent: December 4, 2020 7:02 PM
To: 'Enhanced Machine Controller (EMC)'
Subject: Re: [Emc-users] USB - Serial question
I don't have an Arduino here that has the ATmega16U4 so I can't try this.
Perhaps someone else can?
Page 281
UDCON = UDCON & 0xFE;
The above compiles without error for an Arduino Leonardo. I'll try it in the
shop tomorrow.
Thanks!
-Original Message-
From: John Dammeyer
Sent: December 4, 2020 7:02 PM
To: 'Enhanced Machine Controller (EMC)'
Subject: Re: [Emc-users] USB - Serial questio
ware. Then logically plug the USB cable back in.
John Dammeyer
> -Original Message-
> From: John Dammeyer [mailto:jo...@autoartisans.com]
> Sent: December-04-20 10:22 AM
> To: 'Enhanced Machine Controller (EMC)'
> Subject: Re: [Emc-users] USB - Serial question
>
> Still require
to do that from the command line.
-Original Message-
From: ken.stra...@gmail.com [mailto:ken.stra...@gmail.com]
Sent: Saturday, 5 December 2020 2:45 AM
To: 'Enhanced Machine Controller (EMC)'
Subject: Re: [Emc-users] USB - Serial question
Your suggestion sounded great so I did a few
t; The
> problem is trying to talk before I'm really ready.
>
> -Original Message-
> From: Chris Albertson
> Sent: December 4, 2020 1:41 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] USB - Serial question
>
> So PP will try and &q
You are correct. I have a udev rule to connect to my particular VID/PID. The
problem is trying to talk before I'm really ready.
-Original Message-
From: Chris Albertson
Sent: December 4, 2020 1:41 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] USB - Serial question
: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] USB - Serial question
>
> With Arduino, the test is not to simply plug in the device. Look at
> File->Examples->USB and run the sketch.
>
> While the Arduino itself shows as a serial device, the example shows you
>
inuxCNC) rather than the micro?
-Original Message-
From: Martin Dobbins
Sent: December 4, 2020 1:02 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] USB - Serial question
Hi Ken,
PJRC's version of Arduino is somewhat different, I wonder if DTR is what you
ne
troller (EMC)
> Subject: Re: [Emc-users] USB - Serial question
>
> Hi Ken,
>
> PJRC's version of Arduino is somewhat different, I wonder if DTR is what you
> need? If you can read the serial.dtr as shown here, then
> I'm pretty sure you can hold DTR low until you are ready
Isn't DTR a signal controlled by the host (LinuxCNC) rather than the micro?
-Original Message-
From: Martin Dobbins
Sent: December 4, 2020 1:02 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] USB - Serial question
Hi Ken,
PJRC's version of Arduino is somewhat
Controller (EMC)
Subject: Re: [Emc-users] USB - Serial question
With Arduino, the test is not to simply plug in the device. Look at
File->Examples->USB and run the sketch.
While the Arduino itself shows as a serial device, the example shows you how
to enumerate some other device, like a mouse, ke
Hi Ken,
PJRC's version of Arduino is somewhat different, I wonder if DTR is what you
need? If you can read the serial.dtr as shown here, then I'm pretty sure you
can hold DTR low until you are ready to send/receive data:
https://www.pjrc.com/teensy/td_serial.html
Martin
With Arduino, the test is not to simply plug in the device. Look at
File->Examples->USB and run the sketch.
While the Arduino itself shows as a serial device, the example shows you
how to enumerate some other device, like a mouse, keyboard, or mass
storage. This would be done only AFTER the
0 11:57 AM
To: 'Enhanced Machine Controller (EMC)'
Subject: Re: [Emc-users] USB - Serial question
Glad you did the tests to figure that out. There is a ton of stuff going on
under the covers in the Arduino world which is why it's used by amateurs to do
thousands of different projects. But just as eas
is open source software so I'm sure that one can
disable/enable the on-chip USB but doing so is beyond my expertise.
-Original Message-
From: Chris Albertson
Sent: December 3, 2020 12:49 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] USB - Serial question
On Thu, Dec
is open source software so I'm sure that one can
disable/enable the on-chip USB but doing so is beyond my expertise.
-Original Message-
From: Chris Albertson
Sent: December 3, 2020 12:58 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] USB - Serial question
The problem
zation.
>
> -Original Message-
> From: Les Newell
> Sent: December 3, 2020 7:28 AM
> To: emc-users@lists.sourceforge.net
> Subject: Re: [Emc-users] USB - Serial question
>
> I'm a software guy so here are some possible software solutions.
> Why not wait for Pat
as USB built-in.
> -Original Message-
> From: Chris Albertson
> Sent: December 3, 2020 12:52 AM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] USB - Serial question
>
> Does it work that way?
>
> On Wed, Dec 2, 2020 at 8:12 PM wrote:
>
> > Tha
processing
-- moving steppers, actuating pneumatics, controlling pump, etc -- and I'll
probably extend it to handling initialization.
-Original Message-
From: Les Newell
Sent: December 3, 2020 7:28 AM
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] USB - Serial question
I'm
ticed as a new device.
until everything is
> ready to process commands. The relay in the USB cable suggested by
> John would do what you suggest.
>
> -Original Message-
> From: Chris Albertson
> Sent: December 2, 2020 10:33 PM
> To: Enhanced Machine Controller (EMC)
I'm a software guy so here are some possible software solutions.
Why not wait for PathPilot to send it's setup query then do your
initialization? You still have plenty of time to do your initialization
while the machine is being homed etc.
Another option is to regularly poll the serial buffer
is not present, but it'll pop up in USB enumeration as soon as the
line is released (1.5k pullup for normal operation).
>
> -Original Message-
> From: Chris Albertson
> Sent: December 2, 2020 10:33 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users]
a new device.
until everything is
> ready to process commands. The relay in the USB cable suggested by John
> would do what you suggest.
>
> -Original Message-
> From: Chris Albertson
> Sent: December 2, 2020 10:33 PM
> To: Enhanced Machine Controller (EMC)
> Subject:
by John
would do what you suggest.
-Original Message-
From: Chris Albertson
Sent: December 2, 2020 10:33 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] USB - Serial question
So PP does the scan of USB devices and does not see your device. It will not
see your device because
zing.
>
> Probably more explanation than you wanted!
>
> -Original Message-
> From: Chris Albertson
> Sent: December 2, 2020 6:20 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] USB - Serial question
>
> I think USB takes care of this for
ember-02-20 5:51 PM
> To: 'Enhanced Machine Controller (EMC)'
> Subject: Re: [Emc-users] USB - Serial question
>
> Yes, unplug/replug works. I suppose that the 4PST would work but it seems a
> little inelegant compared to a disable pin on the USB-Serial chip.
>
> I forget the
. Commands require an immediate OK_WORKING_ON_IT but there is no
COMMAND_COMPLETE.
-Original Message-
From: John Dammeyer
Sent: December 2, 2020 8:21 PM
To: 'Enhanced Machine Controller (EMC)'
Subject: Re: [Emc-users] USB - Serial question
So you do get the query again if you unplug
troller (EMC)'
> Subject: Re: [Emc-users] USB - Serial question
>
> Chris wrote: I think USB takes care of this for you. "set up" packets are
> sent by the host (the PC) and never by the device (mouse, disk, or whatever)
> The device never starts doing anything until afte
al Message-
From: Chris Albertson
Sent: December 2, 2020 6:20 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] USB - Serial question
I think USB takes care of this for you. "set up" packets are sent by the
host (the PC) and never by the device (mouse, disk, or whateve
I think USB takes care of this for you. "set up" packets are sent by the
host (the PC) and never by the device (mouse, disk, or whatever) The
device never starts doing anything until after it hears from the host. The
host (Linux) is constantly polling the USB port
So let's say the device was
> From: Chris Albertson [mailto:albertson.ch...@gmail.com]
> OK, then you likely don't need a FT232 chip. The microcontroller,
> whichever one you use, will likely have USB2 built-in. Or just make sure
> it does, so many chips have this.
> On Wed, Dec 2, 2020 at 12:00 PM wrote:
>
> > To
ible transmission speed increases with USB3 or even USB2 are irrelevant
> since the maximum data rate will be less than 100 bytes/sec.
>
> -Original Message-
> From: Chris Albertson
> Sent: December 2, 2020 12:41 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [E
Message-
From: Chris Albertson
Sent: December 2, 2020 12:41 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] USB - Serial question
As said, you can simply have your device hold the ft232 reset pin low until
it needs to be high but if you look at the Arduino UNO the way they did
As said, you can simply have your device hold the ft232 reset pin low
until it needs to be high but if you look at the Arduino UNO the way they
did their USB/Serial interface design was to use an ATmega8U2
microcontroller. Older Arduinos used the ft232 chip, then they switched to
the ATmega8U2
Hello Ken,
these usb to serial connections are are little weird. when you plug it
in the linux side sees the serial USB port, even if there's nothing on
the other end yet.
On the arduino side, if it is rs232, you could just set all handshake
signals low. I don't think you can "influence"
I'm looking for a USB <-> Serial chip (something similar to the FT232R or
CH340) that has an enable pin so it can be plugged into the computer's USB port
but not initiate the connection process until the enable pin is activated. One
possibility is to power up the widget, wait and then boot
36 matches
Mail list logo