Jump to content

Daneasch

Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I've done some more digging around in the log files, a bit slow because my cash provider has been a bit demanding lately, and it seems Stuxnet was right, the problems are not the same. in the logs on the OpiOne there are messages from Blueman before the crash. Can Blueman be disabled? i have no use for Bluethooth. I've been messing with the power source, plugging my phone in and out on the same power supply, and the crash that resulted in also in references to Blueman. So the problem here seems to be power source. changed it now for a Logitech one, and it's running again for three days stable. see how this turns out. Since the crashes on the OpiLite are month's apart I think the way to go there is to reinstall everything from the beginning, to rule out any problems that have accumulated during crashes and the occasional improper shut-down. I'll give the Ubunto version a try, let's hope this one has a more stable Network Manager. I'll report back here if I have anything to ad.
  2. I've been searching the web, a found out I'm indeed using a very old Network Manager 0.9.10.0 while there is already 1.8.0. there are a lot of bugs fixed, but the fixes are most of the time not documented, so it's hard to figure out if my problem is one of the fixed ones. I've also been looking around on the OpiLite, and found in Var/log/ a log file with indeed reference to Network-manager on the day of the last crash. Errors itself don't mean much to me but maybe someone can shed some light. Logfile included below. Since it seems I can't install a different version of Network Manager in this distro , and i think it's a bit overkill to build a totally new image just for this problem I'm now going to totally remove Network Manager and setup the network manually. If it then stays stable I will know for sure the problems come from the Network manager user.log.1
  3. When setting up the wifi on the OpiLite I connected through the USB to Network cable, and then on the desktop clicked the Icon for wifi and filled in the fields. After that I had wifi. On the OpiOne I only used the Network plug to hook it up, witch worked out of the box.
  4. Hi Igor, I've now connected the OpiOne through an USB to Ethernet adapter. I presume Network Manager is a piece of the Armbian installation? I'm not sure if it's used or how to see this.
  5. Hi Guys, Sorry if haven't been giving enough info. I'll try to be more precise: My Project goal is to build a device witch reads a smart meter and 5 standard meters, and combine all the data in some nice graphics on a web-page on the Intranet Opi lite runs Armbian jessie 3.4.113-sun8i Micro sd card Samsung evo 16Gb adapter is 2 amps from ebay has attached to Gpio a transistor and some resistors and a led with a wire to connect to the R11 port at the smart meter runs a bash script in a terminal,witch calls a Python script to read the meter, and put the data in a text file, then the bash script reads the text file and transfers the data to an RRD database that turns this data in to some diagrams witch are then displayed on a web page through a PHP script. Web page is running on the same orange with Apache. here a screen shot of a piece of the page. So I know the pi stopped on a Saturday two weeks ago. It would be possible to get a more precise datestamp out of the database, if needed. Because the above was all scraped together from the net, and all looks a bit overly complicated I decided to start over and do as much as possible in Python. Which is the OpiOne setup: Runs Armbian 5.25 Jessie 3.4.113-sun8i micro SD Samsung Evo 16Gb Adapter 2,5 amps from Motorola Attached on Gpio a breadboard with four leds and five buttons. no other hardware attached. This runs a Python script in a terminal witch for now: runs a loop of exactly 20 seconds and then blinks some leds, and puts a timestamp in the terminal ( the piece of code witch blinks the leds will later be replaced with the code to read the smart meter, that is why I need the loop of 20 seconds, because the meters gives data every 20 seconds) In the mean time the code checks if the buttons are pushed, and count the presses. ( this will be used to attach some other meters with S0 port's) so I can have a database of all my power and water use) I was now running the new Python code to see if the 20 seconds where precise enough, and to see if i could read the pulses reliably. rotation is now set to 10 seconds, and the buttons are read 390 times, giving me a window of 2,5 microseconds. This should bee fine since the pulses from the meters are going to be 100microseconds, so I shouldn't miss any. The problem I'm now facing is that after a while the Pi stops responding, and I can't log in any more. the lite stops writing the to the web page, and the one stops blinking it's led so I assumed they have the same problem. the only way I know so far to get in again is to unplug the power cord. and plug in again. then they boot again and everything works again. I pulled the logs as Igor suggested, but that could only be done after a reboot. log for the one is at: http://sprunge.us/jWXI and for the Lite at http://sprunge.us/SEhB I hope you can make anything out of them. Are these logs deleted when restarted? Looks like it, since today's date is at the top. can I set the log so that it writes to the SD card? As for the questions from StuxNet The lite has its own power outlet and adapter and lies undisturbed on a shelf next to the smart meter. the One lies on my desk on the other side of the house on a different power group and outlet with also an adapter for it's self. I don't have a drawing of the led's / buttons but since that's all working i think is very unlikely to cause the problems. But if you really want it I could draw it out for you. I included the python code so you can see wich pins i used. the button are al connected to ground through an 20 ohms resistor and use the internal pulup resistors. the leds are protected with an 220 ohms resistor. I've included my Python code so far: blinkg.py
  6. Hi guys, I'm playing around with two orange Pi's , a One and a Lite, and thanks to all the good work here on the forum with good success. Both OPi's are running python programs, one reads and counts buttons, and flashes some leds, and the other reads my smart meter and puts the data on a webpage. both programs are still under construction but working. The problem I need some idea's for is that both OPi's crash after running somewhere between 1 day to 6 weeks. So now I'm looking for ways to figure out why they crash so i can start working on a fix. Both OPi's run on separate adapters for power, I've been measuring the amps and voltages but there is nothing strange Idea's anyone?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines