Linux

This forum is dedicated to all issues and questions related to your individual setups and configurations
Post Reply
bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Linux

Post by bill516 »

Had to get a new flash drive for my linux setup on my notepad and I have got the Arduino software to run, I can upload and modify sketches but I cant get the linux multiwiiconf to display any comports. The board and sensors I'm using work OK in windows so I am assuming there is something I havn't installed in the linux, but what it is I'm clueless, anyone got any ideas.

User avatar
treym
Posts: 258
Joined: Sat Jul 21, 2012 12:28 am

Re: Linux

Post by treym »

your user have no acees to the devices , check your group (udev probably) ,

dmesg | grep usb
ls -l /dev

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Linux

Post by bill516 »

Stumped, been bashing keys for what seems like days but still cant access the com ports with multiwii conf. ls .dev/usb -l gives me two usb ports, ttyUSB0, ttyUSB1.
ttyUSB0 is crwxrwxrwx 1 root root 188
ttyUSB1 is crwxrwxrwx 1 root root 188

chris ables
Posts: 317
Joined: Wed Feb 08, 2012 8:42 pm
Location: United states

Re: Linux

Post by chris ables »

Don't know if this will help but maybe worth a shot ! http://ftdi-usb-ft245.sourceforge.net/ :D

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Linux

Post by bill516 »

Thanks chris but I'm using the usb connection on this board, I thought it would have been easier than the FTDI but so far its proving to be more difficult.

I have been searching tinternet on and off and I have managed to find my group listing and that is Root, tty and LPAdmin. What good that does me I dont know, it might if I knew more than a tiny bit of Linux.

chris ables
Posts: 317
Joined: Wed Feb 08, 2012 8:42 pm
Location: United states

Re: Linux

Post by chris ables »

Ok ! But i first hooked my quadrino up to my computer with it's usb connection on board and my computer done same thing until i installed an ftdi driver ! I don't know much about these drivers but thought i would let you know about mine ! :D

chris ables
Posts: 317
Joined: Wed Feb 08, 2012 8:42 pm
Location: United states

Re: Linux

Post by chris ables »

This is the one that i used and it works great ! http://www.ftdichip.com/Drivers/VCP.htm

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Linux

Post by bill516 »

Tried it with an Arduino pro mini and I can flash and load as well as see a com port in the Conf, thats without doing anything to it, it helps when the FTDI drivers are standard on the linux you use. I did try this machine when it had Linpus lite on it nows that was a nightmare.

I keep trying things and nothing improves although the last time I did it I looked what board and com port it was using and the board was right but the serial port is dev/ttyACM0 I was always looking at ttyUSB in linux. Changed the ttyACM0 to rwxrwxrwx but still cant see it in the Conf

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Linux

Post by bill516 »

A bit further forward as I came across an article on the web about symbolic linking. It had the line ln -s /dev/ttyACM0 /dev ttyS8 and I typed that in and what do you know MW conf could see the com port ttyS8 click on it and start there was a lovely trace scampering across the screen. After re-booting it all went to pot start MW conf and no com port to be seen, check in the terminal and the link is still there but not working. I deleted the link then re-type started MW conf and there was the com port again. So how do I get it to recognize the com port every time I re-start the plastic brain.

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Linux

Post by bill516 »

Another update but still not right. I found this site http://www.joakimlinde.se/microcontroll ... r/udev.php that has exactly what I want it to do but it doesnt. From what I can gather it is supposed to detect the Arduino then link the ttyACM0 to ttyS5 that should allow the MW conf to see the comm port. It doesnt do it on re-boot but I can manually link it using the ln -s from above its volatile and not there when I re-boot. I think something else is being written after the udev runs that is overwriting it and undoing the symlink. I set the file to rwx for all but after reboot if is back to what the default setting for that file is, other files I changed the settings on are what I changed them to.

I have even asked on the Puppy Linux forum but so far no answers to my problem, other than someone saying that sym linking the ttyACM0 to ttyS* sounds difficult.

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Linux

Post by bill516 »

Hold the front page I think I've cracked it. I put the link statement in to root start up folder rebooted and ran the MW conf, no comm port to be seen. Closed MW conf plugged in the Arduino mega re-started MW conf and there it was a lovely little comm port, now to see if it works from power off and in another usb port, but thats after I have some tea.

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Linux

Post by bill516 »

Well it looks looks like having tea spoiled it, it doesnt work although I had a shorcut on my desktop that would run the ln -s command and get it going so its a workaround of sorts. I think this is going to be one of those problems that when sorted will be an ohh is that all it was.

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Linux

Post by bill516 »

Dont know if I have solved the problem or what but I re-wrote the udev but placed commas between the id sections, and placed the ln -s command in the start up folder with a link to the desktop. Now when I re-boot it seems to make the symlink and when I plug in the usb, it sees the device and it appears in the MW conf. On the one occasion that it didnt run the symlink, I clicked on the desktop short cut and it make the link, I think I might have been a bit quick on starting the MW conf and it hadnt run the symlink yet. So to all intents and purposes I am calling it a win.

Post Reply