I am using raspberry pi 3 B+ with latest raspbian stretch. I am trying to interface GPS module Neo 6m V2 with raspberry pi.Connected my raspberry pi with gps module using female to female jumper wires.
VCC to Pin 1, which is 3.3v
TX to Pin 10, which is RX (GPIO15)
RX to Pin 8, Which is TX (GPIO14)
Gnd to Pin 6, which is Gnd
I followed below steps to configure : ---
edit sudo nano /boot/config.txt , at the bottom of above files added two lines
enable_uart=1
dtoverlay=pi3-miniuart-bt
sudo rebbot
stop serial ttyS0 using command
sudo systemctl stop serial-getty#ttyS0.service
disable serial ttyS0 using command
sudo systemctl disable serial-getty#ttyS0.service
sudo reboot
enable ttyAMA0 using command
sudo systemctl enable serial-getty#ttyAMA0.service
verify it using ls -l /dev ,it gives
lrwxrwxrwx 1 root root 7 Sep 6 15:18 serial0 -> ttyAMA0
lrwxrwxrwx 1 root root 5 Sep 6 15:18 serial1 -> ttyS0
install minicom package using sudo apt-get install minicom
but when I am checking it using
sudo minicom -D/dev/ttyAMA0 -b4800
it freezes , nothing showing me on terminal.as shown below
enter image description here
Even sudo cat /etc/ttyAMA0 ,also not showing anything.
Please help to solve this .as I am trying this project first time,I dont know much about this.
So what's wrong with freeze terminal problem??
how can I find out ,that my gps module is working or not?when I power on raspberry pi , gps module's red light gets on.
Maybe read page 11 of the datasheet https://www.u-blox.com/sites/default/files/products/documents/NEO-6_DataSheet_%28GPS.G6-HW-09005%29.pdf on the configuration of the UART with pins CFG_COM0 and CFG_COM1 ( you change the baud rate by this and i do not know how you configured the module ... )
In https://www.raspberrypi.org/forums/viewtopic.php?t=84610 is more information especially NMEA commands and also a similar problem ...
Related
I accidentally removed /dev/sda1 and now my usb stick doesn't connect to my laptop.
I've already tried to make a new /dev/sda1 but it doesnt work.
Now i'm using the testdisk command to repair it, hope it works...
You can use mknod command to recreate the missing device. See the major number of your sda disk:
$ ls -l /dev/sda
brw-rw---- 1 root disk 8, 0 Dec 11 11:21 /dev/sda
^
|
This is the number you are looking at
Now you can create a device for the first partition on this device, it will have the same major number and the minor number of 1:
$ sudo mknod /dev/sda1 b 8 1
The first parameter is the name of the device, the second 'b' means it's a block device, the last two parameters are the major and the minor numbers of the new device.
I am trying to setup a wifihotpot on my laptop in ubuntu 18 running as a Windows Subsystem for Linux (WSL). (Terminal only)
Following basic tutorials I wanted to run the following command:
~$ nmcli device wifi hotspot con-name my-hotspot ssid my-hotspot band bg password 123456
Error: Could not create NMClient object: Could not connect: No such file or directory.
Trying to start the networkmanager also fails:
~$ sudo service network-manager start
* Starting network connection manager NetworkManager [ OK ]
~$ sudo service network-manager status
* NetworkManager is not running
I tried the networkManager after installing network-manager:
sudo add-apt-repository ppa:nilarimogard/webupd8
Is there another way to create a wifi hotspot from Ubuntu running as a WSL? Or does it not have the right access to the windows host to pull it off?
at this time, I don't believe it is possible according to https://github.com/microsoft/WSL/issues/2438. They designed WSL to ignore calls to set interface properties. So nmcli and other commands that changes interface properties are not working, they marked it as a bug and will fix it in the future.
"WSL currently ignores the call (which was intentional at the time of the design) to set interface properties" - sunilmut
I hope to help in some way :)
I've connected an adafruit ultimate gps v3 to a raspberry pi using a USB adaptor. The gps unit seems to have a fix because the led (on the gps unit) blinks at a slow rate (may be every 10 s). If I do sudo cat /dev/ttyUSB0 I get NMEA data with location.
But when I install the gpsd, meaning:
sudo apt-get install gpsd gpsd-clients python-gps
sudo gpsd /dev/ttyUSB0 -F /var/run/gpsd.sock
and run the daemon (cgps -s), it says no fix found and GPS times out. I tried to kill gpsd and run it again:
sudo killall gpsd
sudo gpsd /dev/ttyUSB0 -F /var/run/gpsd.sock
but that didn't help. Do you have any idea why is that?
sudo nano /etc/default/gpsd
change it to look like this
START_DAEMON="true"
GPSD_OPTIONS="/dev/ttyUSB0"
DEVICES=""
USBAUTO="true"
GPSD_SOCKET="/var/run/gpsd.sock"
then reboot. CGPS should work then.
I'm developing an application from my PC (Ubuntu 14.04) to Raspberry pi 2. I'm trying to use GStreamer-1.0 because it has hardware acceleration support for Raspberry Pi. Shortly brief about application; getting frames from an IP camera and save them with 1 FPS to somewhere on the file system. I can save images from command line with;
gst-launcg-1.0 rtspsrc location="" ! rtph264depay ! h264parse ! omxh264dec ! videorate ! video/x-raw,framerate=1/ ! jpegenc ! multifilesink location=/somewhere/to/save/images/and/save/type
but I want to do this with C++ code and I'll use these images to do some processings. I've installed gstreamer, gst-plugins-base, gst-plugins-good, gst-plugins-ugly, gst-plugins-bad, gst-libav, gst-omx to Raspberry Pi and Installed gstreamer (and requirements, zlib, glib and libffi) to Ubuntu for cross development. I want to create a pipeline for this process but when I want to create "jpegenc" element it is giving me error which is not about gstreamer;
Wrong JPEG library version: library is 62, caller expects 80
But I didn't understand anything because my apps ldd output has no dependency about libjpeg.so.62;
libjpeg.so.8 => /usr/lib/arm-linux-gnueabihf/libjpeg.so.8 (0x74b51000)
I had have not libjpeg62 at both of my systems. But I've installed libjpeg62 (I wanted libjpeg62-dev but sudo apt-get install libjpeg62-dev wanted to remove some packages which are necessary to me then I decline it) and linked libjpeg.so with (RPi);
sudo rm /usr/lib/arm-linux-gnueabihf/libjpeg.so
sudo ln -s /usr/lib/arm-linux-gnueabihf/libjpeg.so.62 /usr/lib/arm-linux-gnueabihf/libjpeg.so
But nothing changed. I've looked this question but I'm not compiling it from R-Pi and it didn't affect anything,
uninstalled all the jpeg versions (both 62 and 80), and reinstalled jpeg8 by using
sudo apt-get install libjpeg8
I'm running ubuntu 10.04 and kernal 2.6.32-28-server.
There are 4 usb hubs connected to the server with 4 usb ports each. On boot only two or three of them get mounted. If I plug them in after boot then all are mounted just fine. On a different server with a more powerful power supply the usb hubs mount just fine on boot so this makes me think that there isn't enough power getting to the hubs on boot. I don't have the luxury of being able to replug them in every time so I have to figure out a way to get the usb hubs remounted programmatically sometime after boot.
So far I have tried other suggestions like.
Removing and reloading usb_storage:
sudo modprobe -w -r usb_storage; sudo modprobe usb_storage
I've also tried:
sudo modprobe -vr ehci_hcd
sudo modprobe -v ehci_hcd
But this just results in:
FATAL: Module ehci_hcd is builtin
Getting really desperate I copied some of the files in /sys/devices after successfully mounting by plugging the hubs in after boot into a separate folder. After rebooting the system I tried to copy those files back into /sys/devices but even as root I couldn't copy them.