RS232 connection

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Giorgio
Level 2
Level 2
Posts: 17
Joined: Sat Mar 01, 2008 2:00 pm

RS232 connection

Post by Giorgio »

I installed Board Master a software that control a CNC machine to produce PCB (Printed Circuit Board).
The software install flawlessly but to check if it works I need RS232 working to control CNC machine.
I tried to set connection parameters in Board Master choosing COM1 (the only available) but CNC machine don't move and software keep asking for switching machine on.
Of course software and CNC works in Windows XP.

1) is RS232 working on Wine ?

2) if yes how can I check it ?
Martin Gregorie

RS232 connection

Post by Martin Gregorie »

On Tue, 2010-05-25 at 12:16 -0500, Giorgio wrote:
I installed Board Master a software that control a CNC machine to produce PCB (Printed Circuit Board).
The software install flawlessly but to check if it works I need RS232 working to control CNC machine.
I tried to set connection parameters in Board Master choosing COM1 (the only available) but CNC machine don't move and software keep asking for switching machine on.
Of course software and CNC works in Windows XP.

1) is RS232 working on Wine ?
It works for me, both on COM1 and COM2 and a 6 serial port PCI card.
2) if yes how can I check it ?
There about three possibilities:

- use a break-out box to see the levels of the serial port pins
and whether they change as expected when its in the cable between
the PC and the CNC machine.

- beg, borrow or steal a datascope and use it as above. This will let
you see the text of the messages.

- get hold of a null-modem cable (Tx and Rx lines are crossed in a null
modem cable) and use it to connect the port you're driving with Wine
to a spare port on the same or another machine. Then you can use any
serial comms program to see what is sent. Good Linux programs to use
would be minicom or Kermit - the minicom package should be part of
your distro but kermit probably isn't - get it from
http://www.columbia.edu/kermit/ck80.html


Martin
Giorgio
Level 2
Level 2
Posts: 17
Joined: Sat Mar 01, 2008 2:00 pm

Post by Giorgio »

Thank you very much for your detailed and complete answer.
I forgot an important detail: the system is dual boot, Windows XP and Mandriva 2010.0. Using Windows on the same pc CNC and software works. So probably RS232 hardware works. Anyway I'll try to get a null modem or a datascope to check.
Waiting for signal check is there any setting I need to have RS232 working ?
Or a software check for RS232 in Wine?
Is there anything like a terminal in Wine ?
Till now I just installed Wine and then the software.
Martin Gregorie

RS232 connection

Post by Martin Gregorie »

On Wed, 2010-05-26 at 09:48 -0500, Giorgio wrote:
Thank you very much for your detailed and complete answer.
I forgot an important detail: the system is dual boot, Windows XP and Mandriva 2010.0. Using Windows on the same pc CNC and software works. So probably RS232 hardware works. Anyway I'll try to get a null modem or a datascope to check.
Waiting for signal check is there any setting I need to have RS232 working ?
Or a software check for RS232 in Wine?
Is there anything like a terminal in Wine ?
There is a Windows version of Kermit but its not free. There was also a
DOS version called MSkermit. You could look for those on the main Kermit
site.

Writing programs that use serial comms under Windows or DOS is a
nightmare because neither OS provides a serial comms API. As a result
everybody rolls their own hardware drivers or buys in 3rd party serial
comms libraries. Some of these approaches work better than others. It
would not be surprising if some of them are incompatible with Wine.


Martin
Giorgio
Level 2
Level 2
Posts: 17
Joined: Sat Mar 01, 2008 2:00 pm

Post by Giorgio »

Thanks again.
I ask to the CNC firm about some simple command to check RS232 communication.

In Windows I use an USB-serial adapter. Do you think that it could works in Wine too?
Some time ago I tried to use a Windows sw to program microcontrollers and it needed USB. At that time USB don't worked in Wine.
Do USB works in Wine now ?
Do you think possible using USB-serial adapter in Wine ?
Martin Gregorie

RS232 connection

Post by Martin Gregorie »

On Wed, 2010-05-26 at 12:07 -0500, Giorgio wrote:
Thanks again.
I ask to the CNC firm about some simple command to check RS232 communication.
Good idea. It may have some sort of debugging display that can show
serial message traffic.
In Windows I use an USB-serial adapter. Do you think that it could works in Wine too?
Some USB-serial adapters might work. Mine, a pfranc one, doesn't.


Martin
Giorgio
Level 2
Level 2
Posts: 17
Joined: Sat Mar 01, 2008 2:00 pm

Post by Giorgio »

I'll try to debug RS232 and if I will have no result I'll try with USB-serial adapter and I'll open a new topic.
James McKenzie

RS232 connection

Post by James McKenzie »

andy88 wrote:
usb serial connetor should work
-----
cnc machinery (http://www.cnccuttingmachinery.com/)
There is a bug report for broken USB Serial devices in Wine's Bugzilla.

Looks like this maybe broken.

I have no Serial<->USB device to test with to confirm.

James McKenzie
Martin Gregorie

RS232 connection

Post by Martin Gregorie »

On Mon, 2010-06-14 at 20:20 -0700, James McKenzie wrote:
andy88 wrote:
usb serial connetor should work
-----
cnc machinery (http://www.cnccuttingmachinery.com/)
There is a bug report for broken USB Serial devices in Wine's Bugzilla.

Looks like this maybe broken.

I have no Serial<->USB device to test with to confirm.
Stick a PCI serial adapter card in the back and use that. They're not
hard to find, though prices have jumped over the last year, and and 2
port PCI cards are in the same price bracket as single port USB-serial
adapters.

My experience is that Wine couldn't find my USB-serial adapter no matter
what I tried, but it worked right away on a 6 serial port PCI card.


Martin
Locked