Re: [Emc-users] USB - Serial question

2020-12-05 Thread ken.strauss
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

Re: [Emc-users] USB - Serial question

2020-12-04 Thread ken.strauss
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

Re: [Emc-users] USB - Serial question

2020-12-04 Thread John Dammeyer
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

Re: [Emc-users] USB - Serial question

2020-12-04 Thread Frank Tkalcevic
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

Re: [Emc-users] USB - Serial question

2020-12-04 Thread Chris Albertson
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

Re: [Emc-users] USB - Serial question

2020-12-04 Thread ken.strauss
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

Re: [Emc-users] USB - Serial question

2020-12-04 Thread Chris Albertson
: 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 >

Re: [Emc-users] USB - Serial question

2020-12-04 Thread Martin Dobbins
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

Re: [Emc-users] USB - Serial question

2020-12-04 Thread John Dammeyer
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

Re: [Emc-users] USB - Serial question

2020-12-04 Thread ken.strauss
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

Re: [Emc-users] USB - Serial question

2020-12-04 Thread ken.strauss
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

Re: [Emc-users] USB - Serial question

2020-12-04 Thread Martin Dobbins
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

Re: [Emc-users] USB - Serial question

2020-12-04 Thread Chris Albertson
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

Re: [Emc-users] USB - Serial question

2020-12-04 Thread ken.strauss
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

Re: [Emc-users] USB - Serial question

2020-12-04 Thread ken.strauss
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

Re: [Emc-users] USB - Serial question

2020-12-04 Thread ken.strauss
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

Re: [Emc-users] USB - Serial question

2020-12-03 Thread Chris Albertson
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

Re: [Emc-users] USB - Serial question

2020-12-03 Thread Chris Albertson
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

Re: [Emc-users] USB - Serial question

2020-12-03 Thread ken.strauss
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

Re: [Emc-users] USB - Serial question

2020-12-03 Thread ken.strauss
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)

Re: [Emc-users] USB - Serial question

2020-12-03 Thread Les Newell
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

Re: [Emc-users] USB - Serial question

2020-12-02 Thread Dr. Nikolaus Klepp
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]

Re: [Emc-users] USB - Serial question

2020-12-02 Thread Chris Albertson
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:

Re: [Emc-users] USB - Serial question

2020-12-02 Thread ken.strauss
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

Re: [Emc-users] USB - Serial question

2020-12-02 Thread Chris Albertson
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

Re: [Emc-users] USB - Serial question

2020-12-02 Thread John Dammeyer
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

Re: [Emc-users] USB - Serial question

2020-12-02 Thread ken.strauss
. 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

Re: [Emc-users] USB - Serial question

2020-12-02 Thread John Dammeyer
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

Re: [Emc-users] USB - Serial question

2020-12-02 Thread ken.strauss
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

Re: [Emc-users] USB - Serial question

2020-12-02 Thread Chris Albertson
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

Re: [Emc-users] USB - Serial question

2020-12-02 Thread John Dammeyer
> 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

Re: [Emc-users] USB - Serial question

2020-12-02 Thread Chris Albertson
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

Re: [Emc-users] USB - Serial question

2020-12-02 Thread ken.strauss
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

Re: [Emc-users] USB - Serial question

2020-12-02 Thread Chris Albertson
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

Re: [Emc-users] USB - Serial question

2020-12-01 Thread R C
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" 

[Emc-users] USB - Serial question

2020-12-01 Thread ken.strauss
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