Git Product home page Git Product logo

arduino-profile-examples's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduino-profile-examples's Issues

Transmit protocol

I'm currently developing a project that relies on an Arduino sending data to a MQTT server over LoRa and a dragino GateWay.
I'd really like to send data in JSON, however, all examples (at least the ones I found) use the format
attrName1=attrValue1&attrName2=attrValue2[...].
Using this protocol, I could send data correctly and receive it in the other end; however, when a use JSON encoding, the GW receives it correctly but doesn't forward it. Logs below

Mon Aug 24 19:49:44 2020 user.notice root: [IoT.MQTT]: Check for sensor update
Mon Aug 24 19:49:44 2020 user.notice root: [IoT.MQTT]: Found Data at Local Channels: 10009
Mon Aug 24 19:49:44 2020 user.notice root: [IoT.MQTT]:  Find Match Entry for 10009
Mon Aug 24 19:49:44 2020 user.notice root: [IoT.MQTT]:  [-t] /TOPIC
Mon Aug 24 19:49:44 2020 user.notice root: [IoT.MQTT]:  [-m] {"field1":29, "field2":86,"field3":87}
Mon Aug 24 19:49:50 2020 user.notice root: [IoT.MQTT]: Check for sensor update
Mon Aug 24 19:49:52 2020 daemon.info lg02_pkt_fwd[26457]:
Mon Aug 24 19:49:52 2020 daemon.info lg02_pkt_fwd[26457]: RXTX~ Receive(HEX):3c31303030393e7b226669656c6431223a33342c20226669656c6432223a38352c226669656c6433223a38397d

Is the & encoding the only one supported or am I missing something?

Code is not working

I'm trying to push this stock code to the LG01 Gateway. It has a lot of errors in it. I fixed a couple simple errors (I think), and as it compiles, it just finds more. I'm following the LG01_LoRa_Gateway_User_Manual_20180410 exactly, but I think the code is buggy. I'm not that good at fixing this, or I would do it.

Frequency in Hz not in MHz

I have seen packets forwarded to TTN by these gateways, containing the received frequency in Hz, not in MHz as the other packets forwarders do. This causes the network to think this is a "retry" packet on a different frequency than the same packet received by other proper gateways.

Please change this sketch to forward the frequency in MHz to conform to the Semtech UDP protocol.
https://github.com/Lora-net/packet_forwarder/blob/master/PROTOCOL.TXT

2 or more fields @ thingspeak

hi all

code works fine on my LG01.
field1 is smoothly updated on api.thingspeak

i am struggling adding 2 or more fields:

just uncommenting these two lines:
//dataString ="field2=";
//dataString += h;
doensnt make sense.
Then I loose field1; as datastring is refilled with field2 in stead of field1

furthermore 2nd line must be hh in stead of h. That's clear :-)

anyone suggestions how to update the code in an easy / logical way?

thanks
eric
ps. this is regarding this peace of code:
https://github.com/dragino/Arduino-Profile-Examples/tree/master/libraries/Dragino/examples/IoTServer/ThingSpeak/LG01_ThingSpeak_RESTful_Single_Data

Unable to recive gps data in arduino ide after connecting lora-gps shield

Unable to receive GPS data in Arduino ide after connecting LorR-GPS shield
GPS data that I'm receiving is something wrong and I found no tutorial that has proper instructions. Everyone that worked with Dragino GPS shield having the same problem. How can I solve this, Is there any official tutorial to guide how to configure the LoRa GPS shield.

NOTE: I removed the jumpers, connected "RX-4" & "TX-3".

Please someone help me fix this issue.

GPS DATA THAT I RECEIVE IS SOMETHING LOOKS LIKE THIS:

{
  "ALARM_status": false,
  "BatV": 0,
  "FW": 150,
  "LON": "OFF",
  "Latitude": -2137.614208,
  "Longitude": -1768.423424,
  "MD": "Disable",
  "Pitch": 0,
  "Roll": 0
}

LG-01S shows MCU Version single_pkt_fwd_v002

I've downloaded and uploaded the single_pkt_fwd_v003
But the LG01-S still displays on the Web Interface single_pkt_fwd_v002

I compiled the library single_pkt_fwd_v003 and after uploading the Web interface is showing v003

Stuck at rf95.waitPacketSent() in Simple Client Arduino

Hi!

I'm using a LG01 as server and a LoRa Bee as client. The Bee connected to an ATMega328 with 3.3v running at 8Mhz (custom board like the Arduino Pro Mini) the Simple Client Arduino get always stuck after sending, at rf95.waitPacketSent();

The ATMega328 and Bee connection is:
SCK to SCK
MOSI to MOSI
MISO to MISO
Bee CS to D10

I'm using RadioHead Library v1.79 (the lattest right now)

I hope you can help me here, this is my frist time with LoRa modules

LG-01 Sensor Data is gibberish

After attempting to connect to TTN, and somehow having it work once, my gateway is no longer connected and any attempt at sending data from a node is pretty much junk. Either way, I followed the wiki page, http://wiki.dragino.com/index.php?title=Connect_to_TTN and specifically looked at the 915Mhz section for my node which oddly enough doesn't seem to be the problem as I can see the correct data reaching the gateway through serial. Following through the, TTN setup, uploaded the v003 of the packet forwarder hex file and then rebooted. Followed that up by setting my radio settings for a correct frequency, 902.3 is what I used, and then adding router.us.thethings.network as my server, server port 1700, and my gateway id as the eui id for the gateway from TTN without the eui- prefix. Still nothing, and as I mentioned it was connected once, which I verified through the API, http://noc.thethingsnetwork.org:8085/api/v2/gateways/eui-b61a3cc70cd5f0b3 , though I'm not even sure anymore how it connected that one time and now is no longer connecting. Running through the RX/TX frequencies for TTN hasn't seemed to help either so I'm at a loss now.

Finally, the crux here is that checking the Sensor Data through the Web interface shows me something's happening:

0000000 9747 ffae 4188 c9fa ba03 491e 627f 94da
0000010 128c 3107 a076 d243 6592 3d0e 2355 22f0
0000020 8e9e d2dd e4e7 8988 7e3f a2ba 1e3d 3cbe
0000030 b4a9 2aaf 88f9 1801 da97 15e1 4161 125f
0000040 1379 9bdb 460c 0e14 be7f 97a7 73c0 3ed3
0000050 0d0d 2617 f29f ec69 84d0 1700 f223 2bb4
0000060 b45a aa1f b6c3 6fe7 810e               
000006a

But taking a look at the ASCII output gets me this

?G??A???Ib???1?v?Ce?=#U"????版~???=<???*???ڗ?Aa_y??F???s?>?

&??i???#+??Z???o?

So case in point, pretty much gibberish.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.