Just took delivery of a MultiTech MDOT node this morning. Need to work out how I"m going to configure it and set it up as node for testing
I failed miserably with the Libellium device on an Arduino.
Just took delivery of a MultiTech MDOT node this morning. Need to work out how I"m going to configure it and set it up as node for testing
I failed miserably with the Libellium device on an Arduino.
it is a bit fiddly - you need to get an mBed account because thatās the dev environment.
If you tell mBed what platform you are using (multitech mdot) then itāll take you to the right page with some sample code.
If you get stuck I can send you some code Iām using for my very simple light sensor (see our first end to end example here: http://ttnreading.org/tiki-index.php?page=Projects)
Mark,
If I can get as far as your Light sensor Iāll me over the moon. Iāll start hacking either later tonight or tomorrow (or maybe the weekend while the wife is away).
The mDot, as delivered from the factory can basically act as a LoRa modem using AT commands and this is the method outlined on the getting started guide.
And more info http://www.multitech.net/developer/software/mdot-software/
The beauty of the mDot is being able to run your own code, a simple example with a temperature sensor is available at https://developer.mbed.org/users/SomeRandomBloke/code/mDot_TTN_DS18B20/ and can be imported into your own mbed space, node id updated and flashed to the mDot. This is assuming you also have the dev board in order to program the modules.
Andrew
Andrew: so my mDot and developer board is working. I tried your program. It says here
uint8_t NetworkAddr[4]= {0x02,0x01,0x00,0x00}; // Our Network address or Node ID
Now I used a node id of 02990000 (which is free). How would I convert it into the right notation?
Use:
uint8_t NetworkAddr[4]= {0x02,0x99,0x00,0x00}; // Our Network address or Node ID
then look at http://thethingsnetwork.org/api/v0/nodes/02990000/
Which seems to already have a message there.
Andrew
Thanks! That was indeed a message I sent using the Console (serial connection).
Now I need to get hold of a temperature sensor, as the mDot developer board seems to have none at allā¦
There are sample programs at https://developer.mbed.org/platforms/MTS-mDot-F411/
I suppose these wonāt work anymore since we switched the gateway to TTN mode with a different AT command set?
Where do you plug in the DS18B20 Digitale temp sensor in the board?
And how does the TTN config relate to mosquitto exactly?
The DS18B20 has 3 pins, looking at it from the front (with the identification marks), the pins are Ground, Data and Power (3.3V).
You also need to connect a 4K7 resistor between data and Power. Have a quick google for DS18B20 and arduino, there are lots of example images showing the basic connection.
In my code, the data pin is connected to PA_5 which is pin 18 on the mDot and D13 on the dev board.
Regards
Andrew
Despite the fact I can speak to the Mdot through USB and push At Commands, would I be correct in assuming the only way I can program it is to have the developer board?
Iāve got as far as compiling some code, I just donāt know how to get on to the MDot.
Jim
Hi Jim,
the easiest way is through the developer board, providing your mDot has the 8 way programming header installed. Not all variants do and I had to install this on those that didnt have it.
There is a much simpler programmer that mDot plugs into and it then plugs into a spare USB port but not sure if these are actually generally available yet.
There is a third method which is more the diy approach as it relies on obtaining another cheap mbed based board and using the st-link programmer from that. and is a method Iām currently looking at for future on board programming of mDot without removing them from the board.
The common thing with the above methods is they all rely on the st-link programmer appearing as a flash drive, the compiled code is then dropped onto the drive and it reflashes the mDot.
Thanks
Andrew
Gents,
Can we move the mDot discussion to the node category and keep this thread focussed on the conduit?
EDIT: Iām not suggesting to move existing entries, just asking to start a new topic for new messages concerning the mDot. I think it would make it easier to find for new users as well as keep everyone tracking the gateway topic from getting notifications.
it is related and wouldnt be the first time threads have gone wildly off topic.
Its something you cant really prevent. unless you want to move all the posts yourself.
Iāll start a new thread in the Nodes area.
Apologies, Its just proving really quite difficult to get this stuff pulled together.
Jim
I think a lot of the information in this thread that is still relevant should ideally be put in the wiki pages. This thread is now too long to be of any use to anyone looking for useful information on setting up the Multitech Conduit. Same for information regarding other devices that would be useful for others, for example the mDots.
Andrew
How would one power an mDot without developer board?
Wrong thread, youāll have the thread police chasing you.
Try this one https://www.thethingsnetwork.org/forum/t/multitech-m-dot-node-challenges-and-opportunities/1306
IMHO some sensible person should close this thread (and may be some others)
Andrew,
I agree. There is a wiki page for the gateways, who knows mDots, has time and is willing to create a wiki page?
Best regards,
Jac
I configured my new Conduit using the Wiki instructions, but Iām having issues. The first issue is that my gateway is not listed at http://thethingsnetwork.org/api/v0/gateways/ but the packet forward log doesnāt show any errors and is sending and receiving data. The second issue is that my mDot cannot join the network. When I revert back the default configuration (basic packet forward and run the network server) I can join the network.
Thanks,
Chris
UPDATE
My gateway finally registered with the network and is listed!!
I still canāt get my mDot to connect to the network. Iām able to join the network if I use the basic packet forward and local network server, but I when I change the configuration to use the poly packet forward the join always fails. Has anyone run into this issue? Or has successfully used a mDot to join a network?
Thanks,
Chris