camcamfresh / Xiaomi-M365-BLE-Controller-Replacement

Replacing the BLE Controller with a Cellular Controller
142 stars 34 forks source link

dependencies #14

Open mast3rshak3055 opened 5 years ago

mast3rshak3055 commented 5 years ago

What are all the dependencies you are using for this code? If you could supply a library name or download link.

mast3rshak3055 commented 5 years ago

include "Serial4/Serial4.h"

m365-dash.ino:399:7: 'Serial4' was not declared in this scope

camcamfresh commented 5 years ago

It seems like you're trying to run the code through an Arduino.

Half duplex is part of Particle's standard library which is required to communicate with the scooter. I have heard of someone attempting to simulate half-duplex on an Arduino, but never sure how that turned out. You might want to look that up if your interested in working with an Arduino.

Serial4 is a serial port available on the electron and communicates with the GPS using the NEO-GPS library. The GPS functionality is not necessarily required.

kyuhyong commented 5 years ago

@camcamfresh I was trying to build the code using particle web IDE but could not figure out which is the one required. I see "ParticleSoftSerial" exist but could not find Serial4 or similar. Also for GPS, I found "Particle-GPS" but it has no member NMEA. Is NEO-GPS also works fine with the GPS onboard the Particle Electron?

camcamfresh commented 5 years ago

Serial4 is only available when you select a Particle device that has a Serial4 port on it (this includes the Electron but not the Photon). So you'll receive error trying to compile Serial4 if the Photon is selected. As for the GPS library, I'm using Neo-GPS which has the member NMEAGPS.