Develop LoRa program
Home › Forums › Conduit: mLinux Model › Develop LoRa program
- This topic has 13 replies, 4 voices, and was last updated 8 years, 11 months ago by
Jason Reiss.
-
AuthorPosts
-
March 21, 2016 at 6:47 am #11918
Thomas Nguyen-Van
ParticipantHi,
I’m trying to use lora_gateway (http://git.multitech.net/cgi-bin/cgit.cgi/lora_gateway.git) library to develop my own LoRa program on MultiConnect Conduit with LoRa mCard but I couldn’t reach concentrator. With debug from the library activated I get a ERROR: MPSSE OPEN FUNCTION FAILED on mpsse = OpenIndex(VID,PID,SPI0, SIX_MHZ, MSB, IFACE_A, NULL, NULL, 0); line. VID and PID are set respectively to 403 and 6010.
The basic_pkg_fwd is running without a problem with information as :
*** Basic Packet Forwarder for Lora Gateway ***
Version: 1.4.1
*** Lora concentrator HAL library version info ***
Version: 1.7.0; Options: ftdi sx1301 sx1257 full mtac-lora private;
***Naively, I’ve focus on ftdi mode but I’ve seen two spidev3276x.2 in /dev which can refer to a native mode if I’m correct. So for now I don’t really know what parameters to use to access the concentrator with the library lora_gateway. Should I use Native or FTDI mode? Which parameters should I have to take in account to access concentrator?
Hope some of you could give me some response.
Thanks.
April 12, 2016 at 10:11 am #12087gildas gaudin
ParticipantHi,
I have the same problem.
How do we get a lora_gateway source code up to date for a MultiConnect Conduit (mLinux Model) ?Thanks.
April 12, 2016 at 10:28 am #12088Jason Reiss
KeymasterThis branch is built for mLinux:
http://git.multitech.net/cgi-bin/cgit.cgi/lora_gateway.git/log/?h=1.7.0-mtsIt has the changes needed for MTAC-LORA support.
April 13, 2016 at 4:30 am #12094gildas gaudin
ParticipantWith this version I also have problems:
1/ cross compilation issue (toochain from http://www.multitech.net/mlinux/sdk/3.1.0/) => ftdi.h include not found from mpsse.h when compiling loragw_spi.ftdi.c
It works when LIBFTDI1=1 (=> libftdi1/ftdi.h)
Could you confirm that is the right way to fix it ?2/ ERROR: MPSSE OPEN FUNCTION FAILED when running util_pkt_logger on MTCDT-210L
Any information for the debug is welcome.Thanks.
-
This reply was modified 8 years, 11 months ago by
gildas gaudin.
April 13, 2016 at 6:34 am #12096gildas gaudin
ParticipantIn dmesg I see :
usb 1-2.1: new high-speed USB device number 3 using atmel-ehci
usb 1-2.1: New USB device found, idVendor=0403, idProduct=6014
usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-2.1: Product: Single RS232-HS
usb 1-2.1: Manufacturer: FTDIand in loragw_spi.ftdi.c :
/* parameters for a FT2232H */
#define VID 0x0403
#define PID 0x6010
(edit wrong file)-
This reply was modified 8 years, 11 months ago by
gildas gaudin.
-
This reply was modified 8 years, 11 months ago by
gildas gaudin.
-
This reply was modified 8 years, 11 months ago by
gildas gaudin.
-
This reply was modified 8 years, 11 months ago by
gildas gaudin.
April 13, 2016 at 7:29 am #12102gildas gaudin
Participantproblem was in library.cfg
I change configurations:
CFG_BRD=ref_1301_868mtaclora
CFG_BAND=eu868full (else compilation issue)April 13, 2016 at 9:05 am #12105gildas gaudin
ParticipantIt seems that http://git.multitech.net/cgi-bin/cgit.cgi/lora_gateway.git/log/?h=1.7.0-mts does not match with https://github.com/Lora-net/packet_forwarder
Example: struct lgw_conf_board_s no more defined)
Do we have an other branch for packet_forwarder source code ?
April 13, 2016 at 9:17 am #12106Jason Reiss
KeymasterThe packet forwarder recipe and patches for mLinux are found here:
http://git.multitech.net/cgi-bin/cgit.cgi/meta-mlinux.git/tree/recipes-connectivity/loraWe are using the 1.4.1 version of the Semtech packet forwarder as a base.
April 14, 2016 at 9:56 am #12148gildas gaudin
ParticipantThank you for support.
Does MultiTech plan to make new versions from Lora-net 3.x.y releases ?
Regards.
April 14, 2016 at 10:15 am #12149Jason Reiss
KeymasterThe things network is open source and has the latest releases of lora-net lora_gateway and packet forwarder with support for multitech hardware.
https://github.com/TheThingsNetwork/We may update when we have an new version of MTAC-LORA gateway card.
April 14, 2016 at 12:02 pm #12151Christophe Lecomte
ParticipantHi Jason,
I’am working with Gildas.
The last things network lora_gateway version is 3.1.0.
This version gives this error (spi=native):
ERROR: NOT EXPECTED FPGA VERSION
ERROR: FAIL TO CONNECT BOARDor this error (spi=ftdi)
ERROR: Version of calibration firmware not expected, actual:3 expected:2Does it work only with older multitech hardware (version 2)?
And MTAC-LORA is version 3 ?
Which SPI configuration should we used : native or ftdi ?
Thanks for your help.
April 14, 2016 at 12:53 pm #12152Jason Reiss
KeymasterAre you compiling the Semtech version of 3.1.0 or TTN version?
TTN has commits past Semtech 3.1.0 to add Multitech support:
https://github.com/TheThingsNetwork/lora_gateway/commit/4f77b387f9893cb49749cf4d61ac4f9221829fc9April 14, 2016 at 1:37 pm #12154Christophe Lecomte
ParticipantI’m compiling the TTN version 3.10, and the TTN commit for multitech support is included.
The software is checking the calibration firmware version
/* Check firmware version */
lgw_reg_w(LGW_DBG_AGC_MCU_RAM_ADDR, FW_VERSION_ADDR);
lgw_reg_r(LGW_DBG_AGC_MCU_RAM_DATA, &read_val);
fw_version = (uint8_t)read_val;
if (fw_version != FW_VERSION_CAL) {
printf(“ERROR: Version of calibration firmware not expected, actual:%d expected:%d\n”, fw_vers$
//return -1;
}
The MTAC LORA card returns 3, and the software is waiting for the version 2 :
#define FW_VERSION_CAL 2 /* Expected version of calibration firmware */Regards
April 14, 2016 at 2:24 pm #12155Jason Reiss
KeymasterSeems the cal_fw.var file and expected versions do not match.
The calibration firmware is loaded by the lora_gateway.
Either load the previous cal_fw.var from before Semtech release 2.0.0 or update the expected version to 3.
-
This reply was modified 8 years, 11 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.