Main Menu

Programming moteino

Started by Kilo95, August 29, 2015, 04:42:52 PM

Felix

What is the serial port of your MoteinoUSB?
Something like /dev/ttyUSB0 ?
Can you open minicom -b 115200 -D /dev/ttyUSB0 and make sure you're receiving data from remote Moteinos?
Did you setup that serial port (and everything else) in settings.js?

Kilo95

I think I may have missed setting the serial port up in settings .js. I did set up the other stuff. Will ifconfig show me which port its on?

Felix

Can you just follow my steps please?

Kilo95

ok, i set the serialport for usb and ran minicom. It receives the distance and battery voltage from the sonarmote. it still shows "nodes count: 0" in the web browser. also, I noticed that it only sends one measurement. I waited 5 minutes or so and never saw another measurement. if I log out of minicom and back in, it'll send a new single measurement from the sonarmote.

Kilo95

disregard about it not updating measurements. i moved it and it correctly updated. i do still need to get the web interface to show the node

Felix

You cant have a serial port in 2 places, only 1 can have it active. While in minicom the other place will freeze.

Kilo95

so whats the fix for the web interface? i logged out of everything else and it still doesn't show the node. the serial port is setup in settings.js along with the other settings. i have the gateway.ino on my gateway moteino (connected to the RPi). I tried to load the pigateway.ino but it flagged multiple errors.

Felix

You need this sketch on your gateway, not gateway.ino.

Kilo95

I tried uploading it to the Moteino but I got multiple errors related to wirelesshex69. I commented out the "include wirelesshex69" at the top and get these errors. (I don't plan on wireless programming right now). Suggestions?

PiGateway.ino: In function 'void loop()':
PiGateway:69: error: 'readSerialLine' was not declared in this scope
PiGateway:111: error: 'CheckForWirelessHEX' was not declared in this scope
'readSerialLine' was not declared in this scope


luisr320

#39
Did you install the WirelessHex69 library? You can find it here: https://github.com/LowPowerLab/WirelessProgramming

Kilo95

yes.  i reinstalled it for kicks. now I'm getting this error when I verify it in Arduino IDE

PiGateway.ino:13:78: fatal error: RFM69.h: No such file or directory
compilation terminated.
Error compiling.

I reinstalled the RFM69 library into the /Arduino/library/RFM69 folder but get the same result. I feel like i'm pretty close finally. lol

luisr320

Every time you install a library, you have to restart the Arduino IDE for the new library to be used.

Kilo95

I did restart arduino ide after the reinstall

luisr320

What is your Arduino IDE version? 1.6.5?

Kilo95

I'll have to look when I get home. I downloaded it within the last 4-5 weeks