• Posts

  • Joined

  • Last visited

 Content Type 


Member Map




Everything posted by Jodaille

  1. Hello, I have an Orange Pi Pc Plus, and a PIVOyager, it seems I2C buses (0 and 1) are inversed between Raspberry and OrangePi. (Nb: It was my first go use/compilation) I have created a $HOME/go directory then I have put the whole project inside a ~/go/src/ structure I have modified the file device.go to change bus := i2c.OpenBus(1) to : bus := i2c.OpenBus(0) then compile with: /usr/lib/go-1.10/bin/go build cmd/pivoyager.go and it works ! :-) Ps: compiled on Armbian
  2. Hello, sorry for the long long late reply. I have abandoned this project for now, I think I am not (yet) clever enough to find a reason/solution. Thank you @nopnop2002 for your help!
  3. Hello, I am trying to communicate with a mcp2515 breakout (8Mhz oscillator) on an Orange Pi Pc+ I have modified the breakout following info on Raspberry Pi: HowTo/Quickstart MCP2515 to keep logic level @3v I have two other nodes composed by two Arduinos, with same (not modified) breakout, one that transmits the other receives. I have successfully tested the first breakout (used on OPi) with an Arduino (powered by 3.3v and 5v on TJA1050). It lets me think that hardware is OK. Below photos of wiring (nb: orange wire becomes red, is wired near TJA1050 = 5v): It seems I have the same results with (edited) user_overlay and the compiled one provided in zador.blood.stained's post dmesg| grep 'can\|mcp\|spi' [ 6.701431] mcp251x spi0.0 can0: MCP2515 successfully initialized. [ 28.455699] can: controller area network core (rev 20170425 abi 9) [ 28.471752] can: raw protocol (rev 20170425) The controller seems well seen, I can bring up the can0 interface: sudo ip link set can0 type can bitrate 125000 triple-sampling on sudo ifconfig can0 up ifconfig can0 can0: flags=193<UP,RUNNING,NOARP> mtu 16 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 but candump is mute although the Arduino receiver displays messages from Arduino transmitter. And cansend do not give error but I could not see this messages on Arduino receiver. Does someone would have an idea of what I am missing ?