B4J Library [IoT] jPi4J - Raspberry Pi GPIO controller

Discussion in 'B4J Libraries & Classes' started by Erel, Feb 5, 2014.

  1. HARRY

    HARRY Active Member Licensed User

    Thanks Roycefer. This is very helpfull to make progress.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Next time please start a new thread for any question.
     
  3. tmf

    tmf Member Licensed User

    I see this is an older thread, but I am wanting to use B4A on Rasp PI or Orange PI or Banana PI or ODROID C1+ I need to pick one that will work with B4A, but I have not a clue, how are these supported? And how to access the I/O??

    Richard.
     
  4. Cableguy

    Cableguy Expert Licensed User

    With B4A? or with B4J?
     
  5. tmf

    tmf Member Licensed User

  6. Michael1968

    Michael1968 Active Member Licensed User

    B4a is notrunning on Raspberry..there is no Android.B4a can run on pcduino,olimex a13 and cubieboard2-cubietruck
     
  7. tmf

    tmf Member Licensed User

    Yes sorry, I was being "vanilla" about what I was saying I am looking at orange pi, banana pi, or nano pi 2 they all have android available... sorry for the confusion.

    Richard.
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    This is not the correct place to post these questions.
     
  9. derez

    derez Expert Licensed User

    Last edited: Jan 12, 2016
  10. derez

    derez Expert Licensed User

    Got my RPI 2 and tried to run something with GPIO using jPi4j library, I get this error:
    This is after installing wiringPi from here http://wiringpi.com/
    The error ocours at the "controller.Initialize" line. Seems like I haven't installed something.
    In another app I got this :
    Help ?
     
    Last edited: Jan 13, 2016
  11. Erel

    Erel Administrator Staff Member Licensed User

    The first error happened because you ran the program on the PC instead of the RPi. Make sure that B4J-Bridge is connected.

    The second error happened because you haven't started B4J-Bridge with sudo.
     
    Last edited: Jan 14, 2016
    derez likes this.
  12. derez

    derez Expert Licensed User

    Thanks :)
     
  13. jayel

    jayel Active Member Licensed User

  14. Erel

    Erel Administrator Staff Member Licensed User

    Mark Turney likes this.
  15. jayel

    jayel Active Member Licensed User

    Erel, done....
     
  16. jayel

    jayel Active Member Licensed User

  17. Erel

    Erel Administrator Staff Member Licensed User

    It is possible. They have implemented a small web server. You can use HttpUtils2 or better WebSocketClient to interact with it.
     
  18. viriato

    viriato Member Licensed User

    Hi,
    I have working B4J program on Raspberry B version, using the WiringPi and jPi4j.jar library
    I made new installation on raspberry 2 with Jessie OS Version and new WiringPi library (nut same jPi4j java library Version 1.0)
    Same b4J program as in the past , I can start the program , i can see the pin status on log (but no change ) same on the output no change , I can drive leds , all outputs still static
    If I use the GPIO tool on Raspberry 2 , i can read , write on the pins without any issue.

    Any help will be appreciated
    Thanks a lot
     
  19. Erel

    Erel Administrator Staff Member Licensed User

    Please start a new thread for this and post the code.
     
  20. rbghongade

    rbghongade Active Member Licensed User

    Pin
    Numbers for the Raspberry pi models are different pls check out the same.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice