Go to advanced search

by charleslinquist
Fri Sep 06, 2019 9:37 pm
Forum: Networking and servers
Topic: telnet to serial
Replies: 8
Views: 240

Re: telnet to serial

I am successfully running SER2NET in a Raspberry (Raspberry #1). That works great for connecting the Raspberry's serial port to the net. That Raspberry has a static ip. I need to use another Raspberry (#2) to automatically telnet to Raspberry #1 - in effect, to connect their serial ports together. T...
by charleslinquist
Thu Sep 05, 2019 2:39 pm
Forum: Networking and servers
Topic: telnet to serial
Replies: 8
Views: 240

Re: telnet to serial

Thanks for your reply. Your approach won't work for me. I have an unusual application. I need to essentially make a unlimited length RS-232 connection. I have RS-232 devices on each end that cannot deal with any extraneous characters. The connection needs to be "self-healing", that is when the conne...
by charleslinquist
Thu Sep 05, 2019 12:31 am
Forum: Networking and servers
Topic: telnet to serial
Replies: 8
Views: 240

Re: telnet to serial

Doing better.

I'm getting some output with

socat TCP:35.160.169.47:23 FILE:/dev/serial0,b115200

Now I just have to fine-tune the parameters.
by charleslinquist
Thu Sep 05, 2019 12:15 am
Forum: Networking and servers
Topic: telnet to serial
Replies: 8
Views: 240

Re: telnet to serial

When I try

socat - TCP:35.160.169.47:23 /dev/serial0,b115200

I get the response "exactly 2 addresses required, (there are 4)

I can't follow the examples well enough to get this to work.
by charleslinquist
Wed Sep 04, 2019 8:08 pm
Forum: Networking and servers
Topic: telnet to serial
Replies: 8
Views: 240

telnet to serial

I need a program that will run in a Raspberry that contacts a remote telnet server via name or ip and port, and after it connects, transfer that connection to serial0 so I can use an RS-232 connection from then on All the similar programs I have found make the Raspberry the telnet host, and remote d...
by charleslinquist
Sat Jul 06, 2019 5:51 pm
Forum: General discussion
Topic: Raspberry pi 4 Power
Replies: 3
Views: 280

Raspberry pi 4 Power

I put a current meter on my new Raspberry pi 4 (2GB version). The current draw is typically 0.65A, but goes up to 0.85A when playing YouTube videos full-screen (jerky). I have a large heatsink (but no fan) on the processor so it isn't throttling. So I am wondering why it is stated that the power sup...
by charleslinquist
Wed Jun 12, 2019 8:02 pm
Forum: Networking and servers
Topic: Ser2Net configuration, retry broken telnet connection.
Replies: 0
Views: 154

Ser2Net configuration, retry broken telnet connection.

I currently use Ser2Net and AutoSSH in order to connect my serial port to a server. Ser2Net connects the serial port to localhost port 2000, and AutoSSH does port forwarding to convert localhost 2000 to port 9999 on the network. AutoSSH actually initiates the connection to the server. That is automa...
by charleslinquist
Wed Apr 10, 2019 5:06 am
Forum: Advanced users
Topic: Changing boot order or stopping programs from loading
Replies: 2
Views: 243

Changing boot order or stopping programs from loading

I would like to change the order of services loaded during boot. My network is powered by the same power supply as the Raspberry, and the Raspberry boots quicker. I have several network services that don't load because the network hasn't yet made a connection. I need to load those network services l...
by charleslinquist
Mon Apr 08, 2019 9:12 pm
Forum: Networking and servers
Topic: dhcpcd hangs
Replies: 7
Views: 895

Re: dhcpcd hangs

I can't win for losing! Your suggestion works great - except now I have two more issues.... my Ethernet connection comes up much more slowly than the Raspberry, so I sit in a loop and ping a server every two seconds (in rc.local). When I get a good ping, I load autoSSH. All network functions worked ...
by charleslinquist
Mon Apr 08, 2019 7:50 pm
Forum: Networking and servers
Topic: dhcpcd hangs
Replies: 7
Views: 895

Re: dhcpcd hangs

Nevermind... I see where you disabled dhcpcd.
by charleslinquist
Mon Apr 08, 2019 7:50 pm
Forum: Networking and servers
Topic: dhcpcd hangs
Replies: 7
Views: 895

Re: dhcpcd hangs

And how do I stop using dhcpcd altogether? It runs automatically. Would I have to use systemctl and disable the service?
by charleslinquist
Mon Apr 08, 2019 7:48 pm
Forum: Networking and servers
Topic: dhcpcd hangs
Replies: 7
Views: 895

Re: dhcpcd hangs

Thanks, but I am NOT using wireless at all. In fact, I have disabled wifi and bluetooth altogether. My application is Ethernet over USB (my network presents itself as ETH1 - or ETH0 in the case of a Raspberry Pi 3A+). I'll try your suggestions.
by charleslinquist
Mon Apr 08, 2019 3:26 pm
Forum: Networking and servers
Topic: dhcpcd hangs
Replies: 7
Views: 895

Re: dhcpcd hangs

The switches for Raspbian are a little different than Arch. I have it working better, but I would like to delay the actual invocation of dhcpcd. That is - wait until the first attempt to run. I would like to change the boot order, so that dhcpcd is not started until much later in the boot process bu...
by charleslinquist
Sun Apr 07, 2019 7:35 pm
Forum: Networking and servers
Topic: dhcpcd hangs
Replies: 7
Views: 895

dhcpcd hangs

I have written on this before, but so far none of the suggestions have worked. During boot, my Raspberry reports A dhcpd start job is running on all interfaces (xx sec / 120 sec) and "xx" counts up, once per second. After a few seconds, some more drivers load and the message again appears : A dhcpd ...
by charleslinquist
Tue Mar 26, 2019 11:47 am
Forum: Networking and servers
Topic: Run Shell srcript only once
Replies: 17
Views: 921

Re: Run Shell srcript only once

I believe that I have things MOSTLY working. But I still can't make everything work. Contents of rc.local watch -n 5 /home/pi/runonce.sh exit 0 Contents of /home/pi/runonce.sh ping -c1 192.168.100.2 if [ $? -eq 0 ] ;then [ -f /dev/shm/temp ]] || { <--- /dev/shm/temp so it runs in RAM /home/pi/start-...
by charleslinquist
Thu Mar 21, 2019 11:26 pm
Forum: Networking and servers
Topic: Run Shell srcript only once
Replies: 17
Views: 921

Re: Run Shell srcript only once CLOSER

The fact that I'm calling the routine from the WATCH command complicates things, so I thought I would try a different approach. After I started, I saw the answer by epoch about storing a variable in RAM, which would be even better, but I'll do that when I get this working. This ALMOST works, and is ...
by charleslinquist
Thu Mar 21, 2019 8:37 pm
Forum: Networking and servers
Topic: Run Shell srcript only once
Replies: 17
Views: 921

Re: Run Shell srcript only once

It appears that it is working!. Thanks to everyone, especially Andyroo! Here is what seems to be working (but more testing required) ## Set up the var echo export ranonce = "NO" >> ./bash_profile ##Invoke with source runonce.sh ######## CONTENTS OF RUNONCE.SH ############### ping -c1 192.168.100.2 >...
by charleslinquist
Thu Mar 21, 2019 2:57 pm
Forum: Networking and servers
Topic: Run Shell srcript only once
Replies: 17
Views: 921

Re: Run Shell srcript only once

First, I should apologize - I'm probably putting this in the wrong section. It is truly a networking issue for me, but it should probably appear under 'general programming'. But since I started here, I'll continue. The runonce.sh script below now works correctly - but ONLY when I type the following ...
by charleslinquist
Thu Mar 21, 2019 3:00 am
Forum: Networking and servers
Topic: Run Shell srcript only once
Replies: 17
Views: 921

Run Shell srcript only once

I can't figure what I'm doing wrong in the script below. The goal is to check for ping, and - if successful, check a shell variable and run a command then set the variable, so if the routine is called again, it will not run. Before I enter the routine the first time, I set dummy =0 When I run the sc...
by charleslinquist
Sat Mar 16, 2019 7:44 pm
Forum: Networking and servers
Topic: Does a Raspberry multitask during a PING?
Replies: 4
Views: 419

Re: Does a Raspberry multitask during a PING?

To the comment that a "ping is not too neighborly" - does a few bytes of data every 5 seconds "hurt" the net, or affect other users more than streaming a live video on YouTube? If that is true, please educate me as to why. I understand that UDP packets are not ACKed. That is why I don't know if my v...
by charleslinquist
Sat Mar 16, 2019 5:27 pm
Forum: Networking and servers
Topic: Does a Raspberry multitask during a PING?
Replies: 4
Views: 419

Does a Raspberry multitask during a PING?

I need to know if a connection is active while I'm sending streaming video (via UDP) from a Raspberry pi. The only way I could think of was to perform a ping every 5 seconds (to 8.8.8.8) using the 'watch' command. While this works, I'm concerned that if the processor must wait for the return during ...
by charleslinquist
Tue Mar 05, 2019 2:50 am
Forum: Networking and servers
Topic: Several network problems
Replies: 14
Views: 726

Problem still there

It was too good to be true. It hangs again. This time the message is - A start job is running for dhcpcd on all interfaces (32s / 1min 47s). The "dongle" I plug into the USB port appears as ETH1 when I use 'ifconfig' There is something about the timing if the request for an ip address vs. the time w...
by charleslinquist
Tue Mar 05, 2019 1:25 am
Forum: Networking and servers
Topic: Several network problems
Replies: 14
Views: 726

Re: Several network problems - potential fix

I have had good luck (so far) by adding a 'sleep 6' line near the top of /etc/rc.2/S02dhcpcd

I will have to do more testing, but so far - so good.
by charleslinquist
Mon Mar 04, 2019 12:47 am
Forum: Camera board
Topic: Better camera needed
Replies: 17
Views: 11062

Re: Better camera needed

Maybe. I have made an inquiry. I have already made a drastic improvement on the ver 2.1 RPi camera. I designed (and 3D printed) some 12mm lens mounts for the board. You simply unscrew the old "pinhole" lens and add my adapter using the 4 holes and M2 screws. Now I can put whatever lens I want on tha...
by charleslinquist
Sun Mar 03, 2019 6:43 pm
Forum: Networking and servers
Topic: Several network problems
Replies: 14
Views: 726

Re: Several network problems -

I spoke too soon. It doesn't work every time. There is some big time dependency on how a Raspberry deals with networks. My 4G USB "dongle" shows up as ETH0 (or ETH1) depending on whether I'm using a RPi 3A+ or 3B+, and I don't yet know the timing as to when the network port is recognized until it ge...

Go to advanced search