Go to advanced search

by engineer_m
Wed Jul 26, 2017 11:56 am
Forum: Networking and servers
Topic: Raspberry pi 3 loses lan connection
Replies: 8
Views: 1538

Re: Raspberry pi 3 loses lan connection

Thanks, i have implemented this. Hope this will server like a light version of a watchdog timer, as i really cant determine why my pi is losing the wired connection
by engineer_m
Wed Jul 26, 2017 8:52 am
Forum: Networking and servers
Topic: Raspberry pi 3 loses lan connection
Replies: 8
Views: 1538

Re: Raspberry pi 3 loses lan connection

Hi, Im sorry im not very familiar with python. But for sites, instead of

SITES = ["google.co.uk"]

can i use

SITES = ["192.168.100.1"]

that being my gateway ip address?
by engineer_m
Wed Jul 26, 2017 8:00 am
Forum: Networking and servers
Topic: Raspberry pi 3 loses lan connection
Replies: 8
Views: 1538

Re: Raspberry pi 3 loses lan connection

here is the dmesg. I am using lan wired connection. By the way, should i run the previous script with cron? I should also note the only way to get the back online, after this is to remove it from the plug, which i know it is not reccomended. dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.00...
by engineer_m
Tue Jul 25, 2017 4:11 pm
Forum: Networking and servers
Topic: Raspberry pi 3 loses lan connection
Replies: 8
Views: 1538

Raspberry pi 3 loses lan connection

My rpi3 losses lan connection after a week or two. Is there a way to detect loss of lan connection and reboot the pi when that happens?
by engineer_m
Mon Jul 03, 2017 1:54 pm
Forum: Networking and servers
Topic: cant access rpi 2 via ethernet
Replies: 5
Views: 870

Re: cant access rpi 2 via ethernet

Well i would have too, but the rpi was stationed in another city at a clients house, and was working fine till now
by engineer_m
Sat Jul 01, 2017 11:22 am
Forum: Networking and servers
Topic: cant access rpi 2 via ethernet
Replies: 5
Views: 870

Re: cant access rpi 2 via ethernet

Yup, unfortunately the sollution was to make a fresh install of the latest raspbian jessie on the sd card. I previously had the old raspbian wheezy. Is this a common problem to raspbian wheezy?
by engineer_m
Tue Jun 27, 2017 7:16 pm
Forum: Networking and servers
Topic: cant access rpi 2 via ethernet
Replies: 5
Views: 870

cant access rpi 2 via ethernet

today i got this on reboot on my rpi2, and i cannot access it via ethernet anymore:

FAILED: startpar: service(s) returned failure networking...failed!
If i run sudo ifup, i get this /sbin/ifup: 1 /sbin/ifup: syntax error: "(" not expected

please help!!!
by engineer_m
Wed Apr 19, 2017 8:48 pm
Forum: Networking and servers
Topic: RPI 2 is not accessible after a week
Replies: 11
Views: 1968

Re: RPI 2 is not accessible after a week

Is that dmesg output from when it's still working? When you say the "IT WORKS" page is still accessible have you done a *full* page refresh in your web browser to make sure you are not seeing a cached version? Whatever is preventing your ssh connection would almost certainly stop an actual web serv...
by engineer_m
Wed Apr 19, 2017 8:43 pm
Forum: Networking and servers
Topic: RPI 2 is not accessible after a week
Replies: 11
Views: 1968

Re: RPI 2 is not accessible after a week

well, since the last freeze in thursday, i have updated with sudo apt-get update and sudo apt-get upgrade. The kernel was previously v3.x. Now it is 4.1.x. Now i am waiting for another freeze. The interesting thing with the SSH when the rpi freezes is that I am able to get initial connection and it ...
by engineer_m
Wed Apr 19, 2017 3:46 pm
Forum: Networking and servers
Topic: RPI 2 is not accessible after a week
Replies: 11
Views: 1968

Re: RPI 2 is not accessible after a week

this is what i get in dmesg [ 0.000000] Booting Linux on physical CPU 0xf00 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 4.1.19-v7+ ([email protected]) (gcc version 4.9.3 (crosstool-...
by engineer_m
Fri Apr 14, 2017 6:38 am
Forum: Networking and servers
Topic: RPI 2 is not accessible after a week
Replies: 11
Views: 1968

Re: RPI 2 is not accessible after a week

But i have a STATIC IP ADDRESS. I have not installed any additional firewall on the Pi. And yes, i can still access the www folder of the apache web server (the IT WORKS folder) via url. I cannot access applications in www folder though. Please explain more?
by engineer_m
Thu Apr 13, 2017 6:28 am
Forum: Networking and servers
Topic: RPI 2 is not accessible after a week
Replies: 11
Views: 1968

RPI 2 is not accessible after a week

Hello, I have a RPI2 that acts as a web server and contains a web application for heating control. Everything was working fine about 6 months. Now, the RPI2 can't be accessed through ssh client or ftp server. Also, when I enter the URL of the web application it cant be accessed , I can only access t...
by engineer_m
Wed Aug 03, 2016 7:04 am
Forum: General discussion
Topic: usb boot on pi3
Replies: 36
Views: 33826

Re: usb boot on pi3

I have repeated the procedure 5 times in a row and every time it is the same result. The wireless is present when booting from the sd card, and there are no wireless interfaces found when booting from usb :cry: .
by engineer_m
Sat Jul 23, 2016 2:07 pm
Forum: General discussion
Topic: usb boot on pi3
Replies: 36
Views: 33826

Re: usb boot on pi3

Thanks for the above link it helped a lot. I have successfully managed too boot from usb. For the configuration u will need the SD card the first time, but after that, the usb boot is autonomous and u dont need sd card anymore. For anyone that would like to try here is the link: https://github.com/r...
by engineer_m
Fri Jul 22, 2016 9:43 am
Forum: General discussion
Topic: usb boot on pi3
Replies: 36
Views: 33826

Re: usb boot on pi3

Yes, this feature is so much needed, i use the RPI as a commercial controller for my application and install it in client homes. I have to change SD cards because of corruption every 4-5 months, it is driving me crazy because my products seem unrealiable :(.
by engineer_m
Thu Jul 21, 2016 2:34 pm
Forum: General discussion
Topic: usb boot on pi3
Replies: 36
Views: 33826

Re: usb boot on pi3

Are there any updates about she usb boot that does not require SD card?
by engineer_m
Fri Jan 15, 2016 1:01 pm
Forum: Beginners
Topic: MicroSD cards for the Raspberry Pi 2
Replies: 11
Views: 9703

Re: MicroSD cards for the Raspberry Pi 2

I intend to use my RPI2 as a web server with Raspbian OS. Also it wil communicate via serial port with other devices and there will be a lot read and write operations. Can someone recommend me a brand of high quality 16GB micro SD card. Price is not an issue.
by engineer_m
Thu Oct 15, 2015 6:27 pm
Forum: Troubleshooting
Topic: building wiringPi on RPI2
Replies: 0
Views: 358

building wiringPi on RPI2

recently i upgraded my old raspbian from the rpi model with sudo apt-get update and sudo apt-get upgrade in order to use it on the new RPI2

Now i cant build the latest wiringPi library.

./build

it gives me:
bin/sh: 0 illegal option -
What seems to be the problem?
by engineer_m
Wed Oct 14, 2015 6:56 am
Forum: Raspbian
Topic: /etc/inittab no longer present in Raspbian Jessie?
Replies: 37
Views: 90328

Re: /etc/inittab no longer present in Raspbian Jessie?

can you please tell me how to change the baud rate?
by engineer_m
Tue Oct 13, 2015 5:43 pm
Forum: Raspbian
Topic: STICKY: Jessie (now defunct and replaced with Stretch) Q&A
Replies: 396
Views: 212798

Re: Jessie Q&A

Can you please give instructions on how to:

1. enable/ disable serial console
2. change baud rate
3. disable data and logs on serial port when booting ( i used to acomplish this with deleting this line in the /etc/inittab: T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100)
by engineer_m
Tue Oct 13, 2015 5:18 pm
Forum: Raspbian
Topic: /etc/inittab no longer present in Raspbian Jessie?
Replies: 37
Views: 90328

Re: /etc/inittab no longer present in Raspbian Jessie?

I also have this problem. Previously i used sudo wget https://raw.github.com/lurch/rpi-serial-console/master/rpi-serial-console -O /usr/bin/rpi-serial-console && sudo chmod +x /usr/bin/rpi-serial-console.With that script I enabled and disabled my serial console, and i also changed its baud rate. How...
by engineer_m
Tue Oct 13, 2015 4:52 pm
Forum: Raspbian
Topic: STICKY: Jessie (now defunct and replaced with Stretch) Q&A
Replies: 396
Views: 212798

Re: Jessie Q&A

I recently installed the latest version of Raspbian and found out that /etc/inittab is missing. What seems to be the problem?
by engineer_m
Fri May 22, 2015 2:00 pm
Forum: Automation, sensing and robotics
Topic: ClassicLadder Modbus RTU
Replies: 0
Views: 657

ClassicLadder Modbus RTU

I am using classicladder on raspbian. The gpio usage for I/O seems to work perfectly. But I am having trouble to configure modbus communication. I have a max 485 for the raspberry and Modbus Slave terminal on my PC and I am using rs485 to usb converter. Has someone succedeed to use modbus RTU in suc...
by engineer_m
Mon May 18, 2015 7:36 am
Forum: General discussion
Topic: Run a Python script automatically after powering the Pi.
Replies: 7
Views: 1189

Re: Run a Python script automatically after powering the Pi.

Is it the same for a php script? For example will

Code: Select all

@reboot php -f  /var/www/script.php 
work?
by engineer_m
Tue May 05, 2015 8:33 am
Forum: Automation, sensing and robotics
Topic: raspberry pi REAL TIME OS
Replies: 3
Views: 1064

raspberry pi REAL TIME OS

Hi guys, I am trying to create a plc in real time with the raspberry pi, and i have tried to build and compile LinuxCNC and Xenomai from this link http://wiki.linuxcnc.org/cgi-bin/wiki.pl?RaspbianXenomaiBuild but i have failed multiple times. Does anyone have a prebuilt image that is tested and work...

Go to advanced search