Jump to content

martinayotte

Members
  • Posts

    3892
  • Joined

  • Last visited

Posts posted by martinayotte

  1. edit /etc/rc.local with your favorite editor and add your required commands the before the line showing "exit 0".

    Maybe your commands will need to be inserted with full path of the application location, such as "/home/andrej/openglider/ogn-rf /home/andrej/openglider/LJNMT.conf" and "/home/andrej/openglider/ogn-decode /home/andrej/openglider/LJNMT.conf".

    And if one of those commands are not starting in background process, add an ampersand "&" symbol at the end of the line.

  2. There is a thread where someone tweak the kernel to get this functionality :

    https://forum.armbian.com/index.php/topic/1558-w1-therm-driver-modifications/#entry12058

    But it seem that he never completed the task to provide actual patch for Armbian build.

     

    Looking at kernel history, I saw that someone else done it a different way :

    https://github.com/megous/linux/commit/0a19f129d71f18e73249d54de96c835186b8607e

    It should be done like :

    echo 12 > /sys/bus/w1/devices/28-000005a2fac5/w1_slave
    

    But comments say that this change is volatile and will be reset at next power recycle :

    Writing a value between 9 and 12 to the sysfs w1_slave file will change the precision of the sensor for the next readings. This value is in (volatile) SRAM, so it is reset when the sensor gets power-cycled. To store the current precision configuration into EEPROM, the value 0 has to be written to the sysfs w1_slave file. Since the EEPROM has a limited amount of writes (>50k), this command should be used wisely.
  3. Yes, sorry for the typo ...

    I means :

    cat /proc/device-tree/soc/serial@01c28400/status
    cat /proc/device-tree/soc/serial@01c28800/status
    cat /proc/device-tree/soc/serial@01c28c00/status
    

    it should not get empty, check carefully, because it doesn't do \r\n, so it is appearing just before shell prompt, it is "okay" or "disabled", no other values.

  4. Well, there are several manual steps to accomplish that.

    First, you need to make sure the SPIDEV is enabled in DT, either in main DTB or by using DT Overlay.

    You need to grab "flashrom" sources, tweak the flashchip.c file for making sure the SPI transfer size ".page_size" is 64 for the chip you are using, then compile.

    Then, you are ready for Flash upload (adjust the 4096 according to your flash size) :

    dd if=/dev/zero count=4096 bs=1K | tr '\000' '\377' > spi.img
    dd if=/usr/lib/linux-u-boot-dev-orangepizero_5.24_armhf/u-boot-sunxi-with-spl.bin of=spi.img bs=1k conv=notrunc
    flashrom-0.9.9/flashrom -p linux_spi:dev=/dev/spidev0.0 -w spi.img
    

    In the future, we will probably provide a script that does all the tasks automatically.

  5. Your DTS looks Ok.

    Did you recompile it into DTB and reboot ?

    Still no new tty ?

    Strange ...

     

    What those commands showing ?

    cat /proc/device-tree/soc/serial@01c28400
    cat /proc/device-tree/soc/serial@01c28800
    cat /proc/device-tree/soc/serial@01c28c00
    

    it should print "okay" for each one ...

  6. I would rather try with a MOSFET, 2N7000 for example, because when IN pin is HIGH at 3V it maybe still enough to keep the opto-coupler conducting.

    If you don't have a MOSFET in stock, you can use a NPN transistor (2N3904 or 2N2222 for example) with resistor on its base.

     

    EDIT : Oh ! googling for schematics, I found some boards that has the IN reversed compared to other boards, like this one http://www.elecfreaks.com/store/images/product_images/Breakout/Relay/BK_SRD_03.jpg

    (this one is reverse compre to previous : https://forums.unrealengine.com/attachment.php?attachmentid=119903&d=1480742998)

    When I've asked you to try IN pin to ground, was it really to GND that works ? because the link I've post here is the reverse, it is required 5V on the IN pin.

  7. So, if the LED is flashing/working, then you need to figure out if the relay board is Ok.

    Did you tried the board alone by grounding the IN pin ?

    if it work, do you have a multimeter to measure how much current it takes ?

    if more than 10mA, maybe your need to add a MOSFET between GPIO and the IN pin.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines