Go to advanced search

by Bosse_B
Wed Oct 21, 2020 3:52 pm
Forum: General discussion
Topic: 4G broadband dongle attached ti RPi4 - how to enable network
Replies: 11
Views: 439

Re: 4G broadband dongle attached ti RPi4 - how to enable network

I am back at this now but with an older Huawei 4G modem E3276. I don't know if it has been mentioned but one IMPORTANT thing about picocom: How to exit picocom? I have googled and found a page where they suggested Ctrl-A X, but that does not work. In the end I unplugged the modem from the RPi USB an...
by Bosse_B
Wed Oct 21, 2020 9:05 am
Forum: Raspberry Pi OS
Topic: Scripting problem extracting IP address
Replies: 27
Views: 2143

Re: Scripting problem extracting IP address

OK, fair enough! :D :P
by Bosse_B
Wed Oct 21, 2020 5:54 am
Forum: Raspberry Pi OS
Topic: Scripting problem extracting IP address
Replies: 27
Views: 2143

Re: Scripting problem extracting IP address

Did you notice the date of the post you commented?
It is from June 2018 - 2 years 4 months ago....
by Bosse_B
Mon Oct 19, 2020 4:51 pm
Forum: General discussion
Topic: Any way to reach an RPi sitting behind an ISP NAT router?
Replies: 11
Views: 313

Re: Any way to reach an RPi sitting behivd an ISP NAT router?

You could try a reverse vpn tunnel. I managed to do this in a case where my isp didn't have a public ip for my rpi. Can't remember the guide I used but it is possible. Basically the raspberry initiates a vpn connection to your computer instead of the other way around. I helped a friend of mine set ...
by Bosse_B
Sun Oct 18, 2020 8:08 pm
Forum: General discussion
Topic: Any way to reach an RPi sitting behind an ISP NAT router?
Replies: 11
Views: 313

Re: Any way to reach an RPi sitting behind an ISP NAT router?

That might be possible for the desktop, but I have services on the RPi, which I want to be reachable from outside the internal network. For example I have written a system that manages external equipment attached to the RPi and it uses a client interface over TCP/IP sockets that I have also written....
by Bosse_B
Sun Oct 18, 2020 7:41 pm
Forum: General discussion
Topic: Any way to reach an RPi sitting behind an ISP NAT router?
Replies: 11
Views: 313

Any way to reach an RPi sitting behind an ISP NAT router?

I have an RPi unit located in my vacation home with a mobile broadband router as Internet connection. This RPi is managing a small monitoring system for temperatures etc in the house as well as intrusion detection. I have set up the router with port forward of the SSH port to the RPi and it has work...
by Bosse_B
Sat Oct 10, 2020 12:43 pm
Forum: General discussion
Topic: Problem using serial port /dev/ttyAMA0
Replies: 13
Views: 375

Re: Problem using serial port /dev/ttyAMA0

It's really just use raspi-config to set it up. I have 2 RPi units for this project: - One is my development device, an RPi4B in my office - The other is an RPi3B hooked up to the prototype test equipment at a remote location Now after the exercise above I have checked the state of the remote devic...
by Bosse_B
Sat Oct 10, 2020 8:40 am
Forum: General discussion
Topic: Problem using serial port /dev/ttyAMA0
Replies: 13
Views: 375

Solved: Problem using serial port /dev/ttyAMA0

Yes, I definitely did not know all the things you need to do in order to get the serial port working!
Needs to go into a setup document for the project.
:D
by Bosse_B
Fri Oct 09, 2020 8:37 pm
Forum: General discussion
Topic: Problem using serial port /dev/ttyAMA0
Replies: 13
Views: 375

Re: Problem using serial port /dev/ttyAMA0

if you unplug the adapter on the gpio header, and scope the tx pin again, does it give different results? maybe the rx and tx are swapped, and you have 2 tx's fighting over the line? :shock: :oops: :oops: :oops: After some work on re-configuring the RPi4 by editing the config.txt file and shutting ...
by Bosse_B
Fri Oct 09, 2020 2:29 pm
Forum: General discussion
Topic: Problem using serial port /dev/ttyAMA0
Replies: 13
Views: 375

Re: Problem using serial port /dev/ttyAMA0

I can't do the pin shorting because there is a board plugged into the header already. It carries the digital to RS232 converter plus all the relays and stuff. What happens when I try minicom: $ minicom -D /dev/ttyS0 -bash: minicom: command not found Seems like this is (no longer) part of PiOS... EDI...
by Bosse_B
Fri Oct 09, 2020 12:05 pm
Forum: General discussion
Topic: Problem using serial port /dev/ttyAMA0
Replies: 13
Views: 375

Re: Problem using serial port /dev/ttyAMA0

Now I have done all of this and used /dev/serial0 as the port and yet it does not work... Must get down to low-level debugging with an oscilloscope next... Is there some simple way to circumvent software and just from the command prompt make the serial port send out some text? I have never done that...
by Bosse_B
Fri Oct 09, 2020 8:41 am
Forum: General discussion
Topic: Problem using serial port /dev/ttyAMA0
Replies: 13
Views: 375

Re: Problem using serial port /dev/ttyAMA0

did you set enable_uart=1 in config.txt? No it was not set.. did you read http://raspberrypi.org/documentation/configuration/uart.md ? I was not aware of this document... I have now looked at it and I must say I am a bit confused still. Seems like bluetooth is involved too (I never use BT), could t...
by Bosse_B
Fri Oct 09, 2020 7:55 am
Forum: General discussion
Topic: Problem using serial port /dev/ttyAMA0
Replies: 13
Views: 375

Problem using serial port /dev/ttyAMA0

I have an application that uses serial communications and it can be configured to use 5 different ports. 4 of these are USB serial adapters connected to one of the 4 USB sockets on the RPi4. I have added rules on my RPi4 to make the serial ports available with device names associated to the USB sock...
by Bosse_B
Mon Oct 05, 2020 5:23 am
Forum: General discussion
Topic: Backup SD card to .IMG file
Replies: 25
Views: 1804

Re: Backup SD card to .IMG file

It turns out that imgclone has a command line argument setting the source disk too...

Code: Select all

sudo imgclone -s /dev/sda -d /mnt/ext/<path to>/mybackup.img
So the tool I have used successfully before seems to be able to do also this.
by Bosse_B
Sun Oct 04, 2020 3:33 pm
Forum: General discussion
Topic: Imaging an RPi SDcard on another RPi, how?
Replies: 17
Views: 525

Re: Imaging an RPi SDcard on another RPi, how?

PERFECT!
Had I know this yesterday I could have saved myself a good bit of trouble...
I have now added this to my evolving documentation on how to do stuff in Linux on an RPi!
Thanks for pointing it out! :) :D
by Bosse_B
Sun Oct 04, 2020 9:40 am
Forum: Advanced users
Topic: Image File Utilities
Replies: 314
Views: 40089

Re: Image File Utilities

I wonder if these utilities work also on Ubuntu? I have a massive img file created on an RPi3 by using dd towards an NFS share on Ubuntu Server 18. I want to shrink the image down to allow writing to a smaller sd card. So in order to use the higher power of the Ubuntu system it would be good if I co...
by Bosse_B
Sun Oct 04, 2020 8:01 am
Forum: General discussion
Topic: Imaging an RPi SDcard on another RPi, how?
Replies: 17
Views: 525

Re: Imaging an RPi SDcard on another RPi, how?

Just related questions concerning img files: - Can an image file created by dd be mounted as a drive on RPi4? - If so can the img file be located on an nfs network share? Finally: - If the above is possible, can I alter the so mounted image file by editing files on it? Of course it would be good to ...
by Bosse_B
Sat Oct 03, 2020 7:43 pm
Forum: General discussion
Topic: Imaging an RPi SDcard on another RPi, how?
Replies: 17
Views: 525

Re: Imaging an RPi SDcard on another RPi, how?

Turns out that the mac address was for a very old AXIS Print Server!
And its config web page could be accessed so I could switch it from static address to DHCP.
Now we also need to find it physically so we can scrap it.
by Bosse_B
Sat Oct 03, 2020 3:44 pm
Forum: General discussion
Topic: Imaging an RPi SDcard on another RPi, how?
Replies: 17
Views: 525

Re: Imaging an RPi SDcard on another RPi, how?

In actual fact the DHCP service is on our Active Directory Domain Controller and I have set a reservation there for the RPi3. Also I have configured the RPi3 to use that address as a static address so that it will operate even if the domain controller should go down. The "router" is in reality a For...
by Bosse_B
Sat Oct 03, 2020 12:12 pm
Forum: General discussion
Topic: Imaging an RPi SDcard on another RPi, how?
Replies: 17
Views: 525

Re: Imaging an RPi SDcard on another RPi, how?

What could be causing this to happen? The RPi should run on address 235 and this is what is being offered by DHCP, so why is it not accepting the address? Can I do something on the card by editing a conf file somewhere to make it stop this loop? Turns out that the MAC address in this log line: hard...
by Bosse_B
Sat Oct 03, 2020 8:51 am
Forum: General discussion
Topic: Imaging an RPi SDcard on another RPi, how?
Replies: 17
Views: 525

Re: Imaging an RPi SDcard on another RPi, how?

I probably should start by examining the logs... I think I have found some reason that the RPi is not responding as it should when I look at the tail end of syslog on the mounted SD-card from the problem Pi: pi@rpi3-agissr: $ tail -n 10 /mnt/usbroot/var/log/syslog Oct 2 09:41:14 rpi3-agivpn dhcpcd[...
by Bosse_B
Sat Oct 03, 2020 8:14 am
Forum: General discussion
Topic: Imaging an RPi SDcard on another RPi, how?
Replies: 17
Views: 525

Re: Imaging an RPi SDcard on another RPi, how?

You can also create a new image at home and write that to the usb in Texas. When it's a RPI 3b+ it can be plugged in to the usb port, leave the SD card out and it will run. My aim is to get the Texas RPi moved via the Internet to Sweden so I can run it here and examine with a real console and keybo...
by Bosse_B
Fri Oct 02, 2020 10:55 pm
Forum: General discussion
Topic: Imaging an RPi SDcard on another RPi, how?
Replies: 17
Views: 525

Re: Imaging an RPi SDcard on another RPi, how?

What I want to do now is to create an image of the SDcard located in the USB reader on the RPi. The problem is that all of the tools I have found are utilities that create the image of the running system . Since I cannot get into the system when it runs this is not an option... QUESTION: Is there a...
by Bosse_B
Fri Oct 02, 2020 10:50 pm
Forum: General discussion
Topic: Imaging an RPi SDcard on another RPi, how?
Replies: 17
Views: 525

Re: Imaging an RPi SDcard on another RPi, how?

I probably did not describe it well enough: - I am located in Sweden - The RPi that is acting up is located in Texas - There is another RPi in the Texas office that I use for development and it works OK - Due to Covid-19 the Texas office is abandoned, almost all are working from home - The RPi with ...
by Bosse_B
Fri Oct 02, 2020 8:32 pm
Forum: General discussion
Topic: Backup SD card to .IMG file
Replies: 25
Views: 1804

Re: Backup SD card to .IMG file

I have a question regarding imgclone: Is there a way to define the source SDcard for the operation? I would like to use this utility to create an image file of an RPi SDcard, which is put into an USB SDcard reader plugged into the host RPi. So I want the clone source to be this USB mounted SDcard ra...

Go to advanced search