Often, the reason why /var/lib/dpkg/lock cannot be locked is that an automatic system update runs in the background, but in your case it is specifically complaining about a read-only filesystem. Share improve this answer. ArduCAM is a startup company dedicated to open source hardware and software, designed and manufacured in China specifically for Arduino and Raspberry Pi camera solutions. We also offer customized turnkey design and manufacturing solution services for customers who want their products to be unique.
I bought an Arduino Uno recently. After getting the necessary cables, I decided to upload an example to the chip.
Instead of seeing that Blink, I received an error like processing.app.SerialException: Serial port 'COM1' not found. Did you select the right one from the Tools > Serial Port menu?
Yes, I tried that. But even Serial Port Monitor doesn't seem opening. Then again, I get some exception that isn't worth mentioning.
After I found out that my Serial COM ports don't work (via Portmon.exe), and figuring out that I may even don't have any (there is no COM port in Device Manager), I also tried to download a driver for COM port, but it has also failed.
Some say that it's because of my Acer Aspire 5742's motherboard. Some say that the reason is Windows 7.
Long story short, I'd really appreciate if someone can help me with my COM port problem and mend my broken dreams.
6 Answers
Installing Drivers for Arduino in Windows 8 / 7.
( I tried it for Uno r3, but i believe it will work for all Arduino Boards )
Plugin your Arduino Board
Go to Control Panel --->System and Security --->System ---> On the left pane Device Manger
Expand Other Devices.
Under Other Devices you will notice a icon with a small yellow error graphic. (Unplug all your other devices attached to any Serial Port)
Right Click on that device --->Update Driver Software
Select Browse my computer for Driver Software
Click on Browse --->Browse for the folder of Arduino Environment which you have downloaded from Arduino website. If not downloaded then http://arduino.cc/en/Main/Software
After Browsing mark include subfolder.
Click next ---> Your driver will be installed.
Collapse Other Devices --->Expand Port ( its in device manager only under other devices )
You will see Arduino Written ---> Look for its COM PORT (close device manager)
Go to Arduino Environment --->Tools --->Serial Port ---> Select the COM PORT as mentioned in PORT in device manager. (If you are using any other Arduino Board instead of UNO then select the same in boards )
Upload your killer programmes and see them work . . .
I hope this helps. . .
Welcome
Did you install the drivers? See the Arduino installation instructions under #4. I don't know that machine but I doubt it doesn't have any COM ports.
I've had my drivers installed and the Arduino connected through an unpowered usb hub.Moving it to an USB port of my computer made it work.
First: Sorry for my poor english (feel free to correct me).Abstract: Steps of How to resolve 'Serial port 'COM1' not found' in fedora 17.
Today install the packages for Arduino in Fedora 17.(yum install arduino) and i has the same problem: i decided to upload an example to the chip. and got the same error 'Serial port 'COM1' not found'.
In this case when i run Arduino programm, some banner appears which warns me that my user is not in 'dialout' and 'lock' group.¿Do you want add your user in this groups? I click in add button, but for some reason the program fail and not say nothing.
Step1: recognize the arduino deviceunplug your arduino and list /dev files:
plug your arduino and go and list /dev files
find the new file (device) that was not before pluggin for example:
ttyACM0 or ttyUSB1
Read this properties:
the first c mean that arduino is a character device.
user owner: root
group owner: dialout
mayor number: 166
minor number: 0
Step2: set your user as group owner.
If you do:
And you are not in 'dialout' and/or 'lock' group.Add yourself in this groups run as root:
restart the pc.and set /dev/ as your serial port before upload.
I hope be useful.Francisco.Bye.
unplug not necessary,just uninstall your port,restart and install driver again.you will see arduino COM port under the LPT & PORT section.
This fix / solution worked for me:Device Manager --> Ports --> right click on Arduino Uno --> Update Driver Software --> Search automatically for updated driver software
Not the answer you're looking for? Browse other questions tagged serial-portarduino or ask your own question.
I'm using the Arduino IDE in Ubuntu, and am having issues with the serial port. It has worked in the past, but for reasons that may be unnecesary, I felt the need to change the ownership of some of the files from root ownership to my users ownership.
This made the IDE work correctly, but I lost the ability to use the correct serial port. In the dev folder, the port I need is listed as permission 166. Someone (who is no longer in the area to help me) swapped the permissions to 666, which made it all work gloriously.
However, it reverted back as soon as I restarted my computer, and if I now try to use the command:
nothing happens. No error messages, but no permission change either.
How can I change it, and how can I get it to change permanently.
I apologize if this question is overly simplistic or unclear, I'm an ubuntu noob, and I wouldn't begrudge feedback!
5 Answers
The issue with the permissions for /dev/ttyACM0
can be permanantly solved by adding yourself to the dialout
group. You will have to logout and then log back in before the group change is recognized.
You can do this with sudo usermod -a -G dialout $USER
I couldn't get Rinzwind's suggestion to work, because it complained that the user account already exists. Instead, I used this command to add an existing user (terrik
) to an existing group (dialout
), as described on the Ubuntu Help Wiki.
Also useful is this command for listing your current groups, although as Rinzwind says, you have to log out and log in before the serial port starts letting you in.
I couldn't get Terrik's answer working, but I could if I made this slight adjustment to the path for ttyACM0
.
Would post as a comment but I don't have the privileges for that yet...
Another possibility is to make a rules file in /etc/udev/rules.d/
directory. I had similar problem and I have created 50-myusb.rules
file in the above directory with this content:
Note that this will give any device connected to ttyACM socket read/write permissions. If you need only specific device to get read/write permissions you must also check idVendor
and idProduct
. You can find those by running lsusb
command twice, once without your device connected and once when it is connected, then observe the additional line in the output. There you will see something like Bus 003 Device 005: ID ffff:0005
. In this case idVendor = ffff
and idProduct = 0005
. Yours will be different. Than you modify the rules file to:
Now only this device gets the permissions. Read this to know more about writing udev rules.
Try going into System / Users and Groups and checkeing the box on your username in the TTY Group.
protected by Community♦Jan 19 '17 at 13:16
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?