Reply
 
Thread Tools Display Modes
  #1  
Old 04-06-2012, 08:00 PM
ron r ron r is offline
Junior Member
 
Join Date: Mar 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default serial permissions
Hello. I am trying to communicate with a serial device using a windows program running with wine. The program does not see the serial port(s). I believe it may be due to serial permissions not set (I know the hardware works because the program works with ubuntu and also with windows).
Does anyone know how to set serial permissions? The linux-type commands do not work - no surprise.
Thanks for any help.
Reply With Quote
  #2  
Old 04-07-2012, 12:53 AM
Ole Juul Ole Juul is offline
Senior Member
 
Join Date: Jan 2011
Location: Coalmont, BC, Canada
Posts: 284
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Isn't this the same issue as the last thread? I may not know what I'm talking about but you didn't answer the question there.
Quote:
The wine wiki suggests that "the serial port must be set up in win.ini". Did you do that?
Reply With Quote
  #3  
Old 04-07-2012, 02:03 AM
Ole Juul Ole Juul is offline
Senior Member
 
Join Date: Jan 2011
Location: Coalmont, BC, Canada
Posts: 284
Thanks: 0
Thanked 0 Times in 0 Posts
Default
I just realized you said the program works with Ubuntu, so I assume that means in wine. Perhaps the problem stems from different device naming in BSD. I had a quick look at WineHQ and it suggests making links.

So, whereas in Linux you might do "ln -s /dev/ttyS0 com1", perhaps that should be "/dev/cuad0" in PC-BSD. Or perhaps "/dev/cuau0". Just guessing.
Reply With Quote
  #4  
Old 04-07-2012, 03:59 AM
ron r ron r is offline
Junior Member
 
Join Date: Mar 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default thanks
Thank you, sir, for your replies. I started the new thread with a different approach to the same problem, thinking the last thread would be "dead", or not noticed anymore. I still have a bit to learn about forum procedures and practices.

Allow me to explain:
I was evaluating different operating systems out there.
The documentation that was suggested did not seem to apply to my situation.
The Wine Wiki referred to "/dev/ttyS*", which I now learn is not correct for PC-BSD. Using the command "ls -al /dev/ttyS*" produced the response "no match".
Frustrated, I moved on to other systems. I like the PC-BSD interface, so I continue to pursue trying to get it to work for my situation. Learning from other systems, I am trying the "serial permissions" idea, not knowing if it evens applies here.

I see that "ln -al /dev/cuau*" gives a good response, whereas any other letter combination gives "no match".
I tried "ln -s /dev/cuau0 com1" and got no error messages, but no effect either.
I tried "chmod a+rw /dev/cuau0" and saw the expected effect in the response to "ln -al /dev/cuau*", but it too did not get the program to communicate with the serial device.

The same program works (in varying degrees) with the same device on the same computer when using Knoppix, Ubuntu and Fedora. Fedora gave me the "permissions" problem which was fixed with the chmod command.

I continue to try to get PC-BSD to work with my situation. Thanks for your help.
Reply With Quote
  #5  
Old 04-07-2012, 04:17 AM
Ole Juul Ole Juul is offline
Senior Member
 
Join Date: Jan 2011
Location: Coalmont, BC, Canada
Posts: 284
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Originally Posted by ron r View Post
Thank you, sir, for your replies. I started the new thread with a different approach to the same problem, thinking the last thread would be "dead", or not noticed anymore. I still have a bit to learn about forum procedures and practices. ...

You're welcome. Sorry I'm not that useful either. From what you say, it does sound like permissions may indeed be a worthwhile issue to pursue.

Nothing wrong with starting a new thread if you think it is useful. If you did add to the old one, it would nevertheless be "bumped" to the top and thus noticed again. Anyway, what is acceptable varies from forum to forum. This one doesn't get a lot of traffic so often questions go unanswered. Hopefully that will change with time.

Cheers,
Ole
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:09 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.