Re: [Emc-users] Serial Port access

2021-09-13 Thread John Dammeyer
> From: Gene Heskett [mailto:ghesk...@shentel.net] > On Monday 13 September 2021 18:11:44 John Dammeyer wrote: > > > Hi Gene, > > I was able to use your pyvcp information along with the web documents > > to get my own slider working. In the CAN message screen grab you can > > see id=218, dlc=4,

Re: [Emc-users] Serial Port access

2021-09-13 Thread Gene Heskett
On Monday 13 September 2021 18:11:44 John Dammeyer wrote: > Hi Gene, > I was able to use your pyvcp information along with the web documents > to get my own slider working. In the CAN message screen grab you can > see id=218, dlc=4, and the first two bytes representing 0x0032 in > Little Endian

Re: [Emc-users] Serial Port access

2021-09-13 Thread John Dammeyer
Hi Gene, I was able to use your pyvcp information along with the web documents to get my own slider working. In the CAN message screen grab you can see id=218, dlc=4, and the first two bytes representing 0x0032 in Little Endian format. That value in decimal is 50. Scale screen grab shows the

Re: [Emc-users] Serial Port access

2021-09-12 Thread John Dammeyer
ns.com] > Sent: September-10-21 10:11 AM > To: 'Enhanced Machine Controller (EMC)' > Subject: Re: [Emc-users] Serial Port access > > Hi Andy, > > The output below shows CANopen PDO message #2 (0x300) to ID 0x18, 1 byte, > alternating between 0x01 and 0x00 being issued once >

Re: [Emc-users] Serial Port access

2021-09-11 Thread Gene Heskett
On Saturday 11 September 2021 13:33:30 John Dammeyer wrote: > Hi Gene, > On Vancouver Island so other end of the country and about 4 days by > road if one is not driving 24/7. > > Thanks for the code fragment. Very helpful. > > I do have two buttons > > # Tag buttons > net

Re: [Emc-users] Serial Port access

2021-09-11 Thread John Dammeyer
gt; Subject: Re: [Emc-users] Serial Port access > > On Saturday 11 September 2021 05:02:47 John Dammeyer wrote: > > > I'm still waiting for mine to arrive. Latest is that it arrived at > > Canada Post in Toronto. I'm going to guess it's going via surface > > from the

Re: [Emc-users] Serial Port access

2021-09-11 Thread Gene Heskett
On Saturday 11 September 2021 05:02:47 John Dammeyer wrote: > Hi Gene, > Hi Gene, > > > I don't know much about the CAN bus, but this does sound like a > > howto to do a relay. > > I'm working on the input side of things next. > > > But I went a different path as I am using a peristaltic pump

Re: [Emc-users] Serial Port access

2021-09-11 Thread John Dammeyer
e method I would have used had it been available 2 years > ago, so thank you John. I believe you have added to linuxcnc's > capabilities. > > > > -Original Message- > > > From: John Dammeyer [mailto:jo...@autoartisans.com] > > > Sent: September-10

Re: [Emc-users] Serial Port access

2021-09-11 Thread Gene Heskett
2 years ago, so thank you John. I believe you have added to linuxcnc's capabilities. > > -Original Message- > > From: John Dammeyer [mailto:jo...@autoartisans.com] > > Sent: September-10-21 10:11 AM > > To: 'Enhanced Machine Controller (EMC)' > > Subject: Re: [E

Re: [Emc-users] Serial Port access

2021-09-10 Thread John Dammeyer
mmeyer [mailto:jo...@autoartisans.com] > Sent: September-10-21 10:11 AM > To: 'Enhanced Machine Controller (EMC)' > Subject: Re: [Emc-users] Serial Port access > > Hi Andy, > > The output below shows CANopen PDO message #2 (0x300) to ID 0x18, 1 byte, > alternating between 0x01 an

Re: [Emc-users] Serial Port access

2021-09-10 Thread John Dammeyer
Hi Andy, The output below shows CANopen PDO message #2 (0x300) to ID 0x18, 1 byte, alternating between 0x01 and 0x00 being issued once per second. pi@raspberrypi:~/projects/python $ python TestSerial.py Sent CAN message with relay value = t318101 Sent CAN message with relay value = t318100

Re: [Emc-users] Serial Port access

2021-09-09 Thread John Dammeyer
> From: andy pugh [mailto:bodge...@gmail.com] > > On Thu, 9 Sept 2021 at 05:31, John Dammeyer wrote: > > > I've been reading > > http://linuxcnc.org/docs/2.4/html/hal_comp.html > > For this application I think that a Pyhon userspace component using > Pyserial is probably the easier approach. >

Re: [Emc-users] Serial Port access

2021-09-09 Thread andy pugh
On Thu, 9 Sept 2021 at 05:31, John Dammeyer wrote: > I've been reading > http://linuxcnc.org/docs/2.4/html/hal_comp.html For this application I think that a Pyhon userspace component using Pyserial is probably the easier approach. http://linuxcnc.org/docs/2.8/html/hal/halmodule.html -- atp

Re: [Emc-users] Serial Port access

2021-09-08 Thread John Dammeyer
BTW, there's also this: https://forum.linuxcnc.org/forum/18-computer/22562-arduino-based-usb-pendant-for-linuxcnc > -Original Message- > From: John Dammeyer [mailto:jo...@autoartisans.com] > Sent: September-08-21 8:28 PM > To: Enhanced Machine Controller (EMC) > Subj

[Emc-users] Serial Port access

2021-09-08 Thread John Dammeyer
I'm starting the next phase of a small project. I just about have the power draw bar ready to mount.It's controlled by a small processor with two buttons for load and release which runs the air valves which move the pneumatic cylinder and spin butterfly impact wrench. To load/release

Re: [Emc-users] serial port question in testing iso

2019-06-04 Thread Gene Heskett
On Tuesday 04 June 2019 09:37:15 am Mark Wendt wrote: > On Tue, Jun 4, 2019 at 9:24 AM Gene Heskett wrote: > > === > > # restore sound at every terminal start since starting x shuts it > > off. # I think in starting tde, but tde denies it. But if I even > > want a # console bell

Re: [Emc-users] serial port question in testing iso

2019-06-04 Thread Mark Wendt
On Tue, Jun 4, 2019 at 9:24 AM Gene Heskett wrote: > > === > # restore sound at every terminal start since starting x shuts it off. > # I think in starting tde, but tde denies it. But if I even want a > # console bell for sound: > /usr/sbin/alsactl restore 2>1 >/dev/null > # now,

Re: [Emc-users] serial port question in testing iso

2019-06-04 Thread Gene Heskett
On Tuesday 04 June 2019 03:28:40 am andy pugh wrote: > On Tue, 4 Jun 2019 at 03:41, Gene Heskett wrote: > > screen? > > > > Not in this case although it cam mimic the screens the coco can do > > if you want it to. > > I am not sure I understand the answer. Meaning it can export the coco's

Re: [Emc-users] serial port question in testing iso

2019-06-04 Thread andy pugh
On Tue, 4 Jun 2019 at 03:41, Gene Heskett wrote: > screen? > > Not in this case although it cam mimic the screens the coco can do if you > want it to. I am not sure I understand the answer. Serial comms is a pretty fundamental thing. You should see a whole load of ports in /dev And screen

Re: [Emc-users] serial port question in testing iso

2019-06-03 Thread Chris Albertson
I see you used "lspci" and the port was not there. Try booting the OS that sees the port then go to /dev/serial/by-id and have a look.Ports there are names for their hardware locations While booted up on that system try lspci. On Mon, Jun 3, 2019 at 6:58 PM Gene Heskett wrote: > > On

Re: [Emc-users] serial port question in testing iso

2019-06-03 Thread Gene Heskett
On Monday 03 June 2019 07:34:36 pm Gregg Eshelman via Emc-users wrote: > A search for > de9 to db25 rs232 adapter > > Turns up many of them for cheap. A computer shop that's been around > long enough ought to have one or more laying around, might even give > it to you to avoid throwing it away. >

Re: [Emc-users] serial port question in testing iso

2019-06-03 Thread Gene Heskett
On Monday 03 June 2019 05:58:24 pm Chris Albertson wrote: > Here is a good serial port guide for Linux. Section 16 is > "troubleshooting". > THeir first step is to do what I suggested, check BIOS setting before > booting. > After that, they suggest scanning PCI bus > As in lspci? No serial

Re: [Emc-users] serial port question in testing iso

2019-06-03 Thread Gene Heskett
On Monday 03 June 2019 03:38:40 pm Andy Pugh wrote: > > On 3 Jun 2019, at 18:41, Gene Heskett wrote: > > > > s there any other way I can make the db9 port on this mobo work? > > screen? Not in this case although it cam mimic the screens the coco can do if you want it to. Basically its an

Re: [Emc-users] serial port question in testing iso

2019-06-03 Thread Gregg Eshelman via Emc-users
A search for de9 to db25 rs232 adapter Turns up many of them for cheap. A computer shop that's been around long enough ought to have one or more laying around, might even give it to you to avoid throwing it away. Irritating that companies for whom cables are their specialty are using the

Re: [Emc-users] serial port question in testing iso

2019-06-03 Thread Chris Albertson
Here is a good serial port guide for Linux. Section 16 is "troubleshooting". THeir first step is to do what I suggested, check BIOS setting before booting. After that, they suggest scanning PCI bus This is the best documentation of serial ports I've seen www.tldp.org/HOWTO/Serial-HOWTO.html

Re: [Emc-users] serial port question in testing iso

2019-06-03 Thread Andy Pugh
> On 3 Jun 2019, at 18:41, Gene Heskett wrote: > > s there any other way I can make the db9 port on this mobo work? screen? ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users

Re: [Emc-users] serial port question in testing iso

2019-06-03 Thread Gene Heskett
On Monday 03 June 2019 01:34:49 pm Chris Albertson wrote: > The best way to test serial ports under Linux (or any other OS) is to > make a loopback device.This is a fancy name for a short length of > wire that short the Rx and Tx pins. You should then be able to > read back every byte

Re: [Emc-users] serial port question in testing iso

2019-06-03 Thread Chris Albertson
The best way to test serial ports under Linux (or any other OS) is to make a loopback device.This is a fancy name for a short length of wire that short the Rx and Tx pins. You should then be able to read back every byte you send. It loopback fails then you know the promlem is at your end

Re: [Emc-users] serial port question in testing iso

2019-06-03 Thread Gene Heskett
On Monday 03 June 2019 01:02:23 pm Greg Bernard wrote: > Have you thouht of using a USB to serial adapter? > https://www.amazon.com/TRENDnet-Converter-Installation-Universal-TU-S9 >/dp/B0007T27H8 > Yes and no Greg. They are all db9's and this sniffer is db25. I have the fdti cables, but not a

Re: [Emc-users] serial port question in testing iso

2019-06-03 Thread Greg Bernard
Have you thouht of using a USB to serial adapter? https://www.amazon.com/TRENDnet-Converter-Installation-Universal-TU-S9/dp/B0007T27H8 On Mon, Jun 3, 2019 at 11:43 AM Gene Heskett wrote: > Greetings all; > > One of the things I occasionally do is run a couple programs to talkto a > trs-80

[Emc-users] serial port question in testing iso

2019-06-03 Thread Gene Heskett
Greetings all; One of the things I occasionally do is run a couple programs to talkto a trs-80 computer running in the basement, which has 3 serial ports on it, and the one that works with drivewire is the bitbanger, running at about 155 kilobaud. drivewire is written in java and apparently

[Emc-users] Serial port

2014-06-09 Thread Trần Ngọc Quân
Hello, Serial is slow, but it fast enough for on/off spindle, water pump; read from emergent stop button, limit switch etc. So can linuxcnc combinate lpt (and other ones) with com port? -- Trần Ngọc Quân. -- HPCC

Re: [Emc-users] Serial port

2014-06-09 Thread andy pugh
On 10 June 2014 01:48, Trần Ngọc Quân vnwild...@gmail.com wrote: So can linuxcnc combinate lpt (and other ones) with com port? You can certainly use the serial port status lines as extra IO for such uses: http://www.linuxcnc.org/docs/html/man/man9/serport.9.html -- atp If you can't fix it,

Re: [Emc-users] Serial port

2014-06-09 Thread Kirk Wallace
On 06/09/2014 05:48 PM, Trần Ngọc Quân wrote: Hello, Serial is slow, but it fast enough for on/off spindle, water pump; read from emergent stop button, limit switch etc. So can linuxcnc combinate lpt (and other ones) with com port? I would suggest using Modbus. Serial R232 to RS484/422

Re: [Emc-users] Serial port

2014-06-09 Thread Gregg Eshelman
On 6/9/2014 7:10 PM, Kirk Wallace wrote: On 06/09/2014 05:48 PM, Trần Ngọc Quân wrote: Hello, Serial is slow, but it fast enough for on/off spindle, water pump; read from emergent stop button, limit switch etc. So can linuxcnc combinate lpt (and other ones) with com port? I would suggest