Jump to content

nedoskiv

Members
  • Posts

    45
  • Joined

  • Last visited

Everything posted by nedoskiv

  1. here is the part of my rc.local that do the trick for me rmmod w1_gpio rmmod wire modprobe wire timeout=0 timeout_us=200000 slave_ttl=3 modprobe w1_gpio since that works, I assume one wire overlay parameter "param_w1_pin=PC3" was keep somewhere and is passed when I load module again.
  2. Hello after some search i successfull attack Ibutton on 1 wire, using ibutton probe my problem is that by default kernel scan for slaves every 10 seconds. Want to change it to 1 second or less if possible. Searching a bit, on some linux distributions this solves the problem: modprobe wire timeout=1 slave_ttl=5 modprobe w1-gpio but since in arbian /arbianEnv.txt take care of modules loaded, it do not work, My current file is: verbosity=1 bootlogo=false console=serial disp_mode=1920x10[D80p60 overlay_prefix=sun8i-h3 overlays=i2c0 pps-gpio uart1 uart2 uart3 usbhost1 usbhost2 w1-gpio param_pps_pin=PA6 param_w1_pin=PC3 rootdev=UUID=6dee376a-a115-473b-939b-b91774c75fa8 rootfstype=ext4 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u I have tried to add: param_w1_timeout=1 param_wire_timeout=1 and some other - unsuccessfull I need some help, thanks in advance
  3. looks like uarts can be enabled thru armbian-config and there is 3 UARTs that can be enabled, numbered from 1 to 3, I have tested board pins of UART0 - UART2 and they work perfect. I tried enabling and testting UARTS thru arbian-config and UART numbers are valid as picture above. My new question now is on which pins I should try for UART3? (also figured out that microUSB serial is named /dev/ttyGS0, not sure if it is included below): root@nanopineo:~# cat /proc/tty/driver/serial serinfo:1.0 driver revision: 0: uart:16550A mmio:0x01C28000 irq:49 tx:11757 rx:0 RTS|DTR 1: uart:16550A mmio:0x01C28400 irq:50 tx:44 rx:36 CTS 2: uart:16550A mmio:0x01C28800 irq:51 tx:8 rx:0 RTS|CTS|DTR 3: uart:16550A mmio:0x01C28C00 irq:52 tx:0 rx:0 CTS 4: uart:unknown port:00000000 irq:0 5: uart:unknown port:00000000 irq:0 6: uart:unknown port:00000000 irq:0 7: uart:unknown port:00000000 irq:0 root@nanopineo:~# cat /boot/armbianEnv.txt verbosity=1 bootlogo=false console=serial disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 overlays=uart1 uart2 uart3 usbhost1 usbhost2 rootdev=UUID=6dee376a-a115-473b-939b-b91774c75fa8 rootfstype=ext4 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
  4. Hello, it is been awhile since I used armbian with Orange PI, now I took one orange PI NEO on it's connector is UART0, UART1 and UART2. My goal is to use all UARTS available on board. Googling a little I found the part where I should use BIX2FEX to convert script.bin and insert port definitions there, bot looks like that way is obsolete. looks by default only one uart is initialized: root@nanopineo:/boot# cat /proc/tty/driver/serial serinfo:1.0 driver revision: 0: uart:16550A mmio:0x01C28000 irq:49 tx:11630 rx:0 RTS|DTR 1: uart:unknown port:00000000 irq:0 2: uart:unknown port:00000000 irq:0 3: uart:unknown port:00000000 irq:0 4: uart:unknown port:00000000 irq:0 5: uart:unknown port:00000000 irq:0 6: uart:unknown port:00000000 irq:0 7: uart:unknown port:00000000 irq:0 I'm not sure that only available serial is not the MicroUSB one. Can someone point me in direction where UARTS are defined now?
  5. Hello, First I want to thank you for wonderful linux distribution it was been awhile since I last used it, and lot of things changed for me. So I need someone to point me in right direction to catch up with some changes. i'm using Armbian_5.38_Orangepizero_Debian_stretch_next_4.14.14 First thing I do not see is script.bin - I use to configure gpios, which one gonna be uart, spi ........ etc. How can I do that now. Second thing is h3consumption tool, I usually use it do disable some system components, like usb in order to lower cpu temperature. I found answers to other things so far using google. So if someone point me in right direction, gonna be very grateful
  6. Hello, First please excuse me for being not learned enough to do it without asking stupid questions. Here is my goal: Build Armbian (debian jessie) image with some packages included into it, include some web content and scripts into image, run my own script at firstboot to configure apache/mysql etc. So everything to start working out of the box after first boot. I read a little and saw userpatches/customize-image.sh is responsible for custom configuration, but got no idea how to proceed further. For example if I want to install mariadb what should I do? apt-get install mariadb (it says this file was executed in chroot environment) Please if possible guide me in right direction or just post an example.
  7. Hello, I'm running some busybox scripts in infinite loops. I have used them from long time, before I move to armbian, they work on openwrt without any problem , some of the machines was with uptime half a year and scripts never stop working. After I move to armbian, I noticed they stop from time to time. usually after 4-5 days of running. Script is run with output redirected to /dev/null There is no trace why script is stop working in the logs, so I run it in screen terminal and detach, it works more than a week without failing ........... is there a better way to see what is going on?
  8. Need to try that, my camera is not working, cuz it was my first camera I open dispute to seller .......... probably there is nothing wrong with the hardware
  9. interrupts should be nice, I use fs access to gpio and my scripts are monitoring them every 0.1 sec, that make some cpu load, interrupts gonna be better
  10. I have used my zero, for RFID reading, noticed only one restart (unknown reason for me, since it is connected thru UPS), but since I develop, maximum uptime was 2 days so far. When stop restarting it gonna post results here. In other hand, my PC plus, was uptime of 10 days and when I decided to reboot it, it stop responding (blinking green led)., Armbian, debian jessie with legacy kernel.
  11. I used same on both boards, just edit MFRC522.py to use second SPI interface, because on Orange PI zero, first one is used for NOR FLASH here is the topic explained how to use single MFRC522 on orange PI, as I said on zero you need to edit MFRC522.PY find line: spi.openSPI(speed=spd,device="/dev/spidev0.0") and replace: spi.openSPI(speed=spd,device="/dev/spidev1.0")
  12. This is out of the topic, but what is the lowest CPU freq orange pi can go, I set Zero PI freq to 240000 and temperature drops with 10 ! It have higher CPU load than before, but CPU temperature is more important in my case. And seconds question, I have read in orange pi forum working temperature of 75 C is normal, is that correct?
  13. well I made few test, almost all of SPI signals got no problem to run on 10m FTP using one wire pair signal. only MISO do not work well. So I decided to shorten cable to 5M using one wire per signal. - do not work at all. Then I tried to use 2 wires for MISO - do not work at all. Well I start wonder why, on 10 meters it worked unstable on 5 meters do not work at all.......... Finally I used another 5M FTP cable for MISO m got 2 pairs this time and other was just unused - works without a problem. I suspect there is some interference when other wires of FTP cable was used for something. Gonna test with 10m later and post the results. PS I figure out that SPI usage makes ZERO CPU go really hot, it goes to 65 by just reading 2 SPI readers. So I decide to lower the SPI speed: def __init__(self,spd=1000000): changed it to def __init__(self,spd=100000): restart the scripts and temperature do down with 10 degree! yahooo .......... but ............ one of my readers stop working, one connected thru 5m FTP cable .......... everywhere I read, lower speed is longer cable can be used and now it is opposite. PS. after some testing value of 200000 make it work stable, and lower temperature with 4-5 degree. So it is acceptable for now. Gonna use heatsink later
  14. I can confirm it is working on orange pi zero. successful removed SPI NOR flash - MX25L1606E and soldier wires on it's place. Connected MFRC522 and it working fine. My goal is finally achieved, to use 2 MFRC 522 on one orange pi board. Now need to focus on another issue, how far can be reader module from OPI board, tried 10M FTP using one pair for a SPI signal, works unstable, read about lowering SPI clock, passed it as parameter from MFRC522.PY but nothing changed, not sure it change it. Anyone got experience in that direction?
  15. orange pi zero comes with usable SPI1.0 interface (actually second one) (PA13, PA14,PA15,PA16), first is up too (spi0.0) but is used for that SPI nor flash, so only way to do it on zero is to remove that chip and place wires ....... in other hand zero have big temperature issue and I do not want to use it anyway. Gonna try orange pi ONE (when arrives from china) I guess reconfiguring and soldering a wire to PA15 (red led) not gonna be a problem, but what about PA16 - MUTE, got no idea where to find it.
  16. damn that can't be helped, I want to use dual MFRC522, last thing I gonna try will be do remove SPI NOR flash from Orange PI zero and use SPI from there, hope not to burn it. MX25L1606E was used there. Any idea do I need to place any resistors before connect pins to MFRC522 module?
  17. any success with use second spi, without detach the led and audio?
  18. Hello, I have tried to enable second SPI interface on orange PI, so far without any success, here is what I done (orange pi pc+) first I look at script.bin/fex and saw there is spi1 configuration, uncommend lines, edit a little: [spi0] spi_used = 1 spi_cs_bitmap = 1 spi_mosi = port:PC00<3><default><default><default> spi_miso = port:PC01<3><default><default><default> spi_sclk = port:PC02<3><default><default><default> spi_cs0 = port:PC03<3><1><default><default> [spi1] spi_used = 1 spi_cs_bitmap = 1 spi_cs0 = port:PA13<2><1><default><default> spi_sclk = port:PA14<2><default><default><default> spi_mosi = port:PA15<2><default><default><default> spi_miso = port:PA16<2><default><default><default> [spi_devices] spi_dev_num = 2 [spi_board0] modalias = "spidev" max_speed_hz = 33000000 bus_num = 0 chip_select = 0 mode = 0 full_duplex = 1 manual_cs = 0 [spi_board1] modalias = "spidev" max_speed_hz = 33000000 bus_num = 1 chip_select = 0 mode = 0 full_duplex = 1 manual_cs = 0 convert it to .bin, rebooted and I though it is all ok, but when started to connect my spi device, noticed that PA15, PA16 do not exists on 40 pin slot........... so I decided to configure different GPIO on place of PA15, PA16, no matter what I trieed kernel returned an error : [ 0.522781] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator. [ 0.522795] sunxi_spi_chan_cfg()1376 - [spi-1] has no spi_regulator. [ 0.523526] spi spi0: master is unqueued, this is deprecated [ 0.523983] sunxi_spi_request_gpio()1420 - SPI1 devm_pinctrl_get() failed! return -22 [ 0.523999] sunxi_spi_hw_init()1538 - [spi-1] Request GPIO failed! [ 0.524009] sunxi_spi_probe()1703 - spi hw init failed! [ 0.524091] spi: probe of spi1 failed with error -1 I basically tried to replace just one gpio PA15 or PA16 with all of the available GPIOs, it is all the same, checked if it is not initialized for something else, and commented if it. Still no success, what am I doing wrong? Triend and on my zero - it is same. Please help.
  19. My personal observations are that wireless usage of zero increases temperature value with 6-7, just when enable it (in AP mode in my case)
  20. Hello everyone, first i want to say sorry if this post is not in the right place. I decided to post this in Armbian forum first, because I use it and it was awesome linux distribution with good community and support. I started as a hobby to write a software about controlling relays, to switch things in my home, like light, water heater, floor heater, etc. Hardware passes from PicoIP , thru wireless routers and finish on Orange PI, it offers a lot extras for it's price. What I have done so far: (all is in web interface, written from scratch) You can: switch on/off relays switch on/off relays for period of time schedule relay switching at specific fixed date/time, or day of week, .... Host monitor - restart relay if loses connection to specific ip address(es) or host name(s) Proximity monitor - when you come back at home and your phone connect to WiFI it start doing things that you program it for. W1 temperature sensors support - can read data and do whatever you program it when temperature reach above or below ............ Digital Gpio Input support- you can connect there whatever you want, from a remote controls, movement detectors ......... everything that return high or low value RFID reader support - working in progress Analog sensors support - working in progress Email notification system - can sent emai when some sensor is triggered. You can easily create a home security system with a little play of settings. Why I post that, well I decided to make it available to the public, and also looking for testers and people to help me write documentation and develop the project further. So if anyone is interested, contact me
  21. after spending few hours of comparing, change something, test, fail, test, fail found where is the problem first I though it is script.bin, there are some GPIO_PARA differences, but it is not. So in short here was the problem and solution. by unknown reason to me two I2C drivers/modules are loaded: pcf8591 bmp085 unloading them do not fix the problem, they need to be disabled and system rebooted, to do that add the following: blacklist pcf8591 blacklist bmp085 to /etc/modprobe.d/fbdev-blacklist.conf and reboot. it should work fine. P.S. soon I will make fresh armbian install and check if that 2 modules are still loaded.
  22. downgrade (reinstall) from: Armbian_5.25_Orangepipcplus_Debian_jessie_default_3.4.113 to Armbian_5.20_Orangepipcplus_Debian_jessie_3.4.112 and it works again. Got no idea why.
  23. Time to pay attention to this topic again, what I do to make RC522 work described above seems not works anymore, got no idea why, I just moved to newer armbian release on same board where RC522 is connected, no errors, but also no readings
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines