How to setup gateway using RAK831 with Beaglebone black Rev C ?



  • Greetings,
    I am new to this field and want to explore more of it. I got my new rak831 and started setting up gateway using beaglebone I went through lot of communities hosted by routers but didnt find enough to set it up and running. Can anyone guide me through the setup proceedure ?
    Thansk in advance.


  • administrators

    Hi,

    I'm glad you use our products.If you want to configure the gateway, please refer to this link:link text.
    And this manual.0_1526625560931_RAK831Raspberry Pi3 Connect LORIOT V1.0.pdf .

    If you wan to setup gateway using RAK831 with Beaglebone black Rev C , You can refer to the above example.

    Regards



  • Sorry for my delayed response,
    I did go through the manual you sent and managed to setup gateway using Raspbeery Pi3 how ever my requirement to set it up using Beaglebone has beared any fruit. I have managed to set the configuration in accordance to Raspberry Pi 3 but cannot set the gateway? The only difference as of now is SPIDEV in raspberry PI is spidev0.0 but for beaglebone is spidev1.0! Can you guide me through this?



  • @rakadmin

    In an update to the above querry I still couldnt mange to setup a gateway using loraiot hence went on with RAK831_LoRaGateway-master I managed to setup make files and was sucessful in making the default codes too however while running sudo ./test_loragw_reg post setting up of library.conf and modifying /src/loragw_spi.native.c ""#define SPI_DEV_PATH "/dev/spidev1.0"""
    (since I m using spidev1.0 I have set CFG_SPI=native). Im experincing follwing errors-

    Beginning of test for loragw_reg.c
    Note: SPI port opened and configured ok
    Note: SPI write success
    Note: SPI read success
    Note: SPI write success
    Start of register verification
    Note: SPI read success
    ###MISMATCH### reg number 0 read: 3 (3) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 1 read: 1 (1) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 2 read: 255 (ff) default: 103 (67)
    lgw_spi_rb:336: BURST READ: to trans 2 # chunk 2 # transferred 2
    Note: SPI burst read success
    ###MISMATCH### reg number 3 read: 65535 (ffff) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 4 read: 255 (ff) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 5 read: 255 (ff) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 6 read: 255 (ff) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 7 read: 255 (ff) default: 0 (0)
    Note: SPI read success
    Note: SPI read success
    ###MISMATCH### reg number 303 read: 1 (1) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 304 read: 1 (1) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 305 read: 1 (1) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 306 read: 1 (1) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 307 read: 1 (1) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 308 read: 1 (1) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 309 read: 3 (3) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 310 read: 7 (7) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 311 read: 1 (1) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 312 read: 255 (ff) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 313 read: 255 (ff) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 314 read: 255 (ff) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 315 read: 255 (ff) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 316 read: 1 (1) default: 0 (0)
    Note: SPI read success
    +++MATCH+++ reg number 317 read: 1 (1) default: 1 (1)
    Note: SPI read success
    ###MISMATCH### reg number 318 read: -1 (ffffffff) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 319 read: -1 (ffffffff) default: 0 (0)
    lgw_spi_rb:336: BURST READ: to trans 2 # chunk 2 # transferred 2
    Note: SPI burst read success
    ###MISMATCH### reg number 320 read: -1 (ffffffff) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 321 read: 15 (f) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 322 read: 31 (1f) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 323 read: 31 (1f) default: 0 (0)
    Note: SPI read success
    ###MISMATCH### reg number 324 read: 31 (1f) default: 0 (0)
    End of register verification
    Note: SPI write success
    Note: SPI write success
    Note: SPI read success
    IMPLICIT_PAYLOAD_LENGHT = 255 (should be 197)
    Note: SPI read success
    Note: SPI write success
    Note: SPI read success
    FRAME_SYNCH_PEAK2_POS = 15 (should be 11)
    lgw_spi_wb:282: BURST WRITE: to trans 2 # chunk 2 # transferred 2
    Note: SPI burst write success
    lgw_spi_rb:336: BURST READ: to trans 2 # chunk 2 # transferred 2
    Note: SPI burst read success
    PREAMBLE_SYMB1_NB = 65535 (should be 49253)
    lgw_spi_wb:282: BURST WRITE: to trans 2 # chunk 2 # transferred 2
    Note: SPI burst write success
    lgw_spi_rb:336: BURST READ: to trans 2 # chunk 2 # transferred 2
    Note: SPI burst read success
    ADJUST_MODEM_START_OFFSET_SF12_RDX4 = 65535 (should be 3173)
    lgw_spi_wb:282: BURST WRITE: to trans 2 # chunk 2 # transferred 2
    Note: SPI burst write success
    lgw_spi_rb:336: BURST READ: to trans 2 # chunk 2 # transferred 2
    Note: SPI burst read success
    IF_FREQ_1 = -1 (should be -1947)
    lgw_spi_wb:282: BURST WRITE: to trans 256 # chunk 256 # transferred 256
    Note: SPI burst write success
    lgw_spi_rb:336: BURST READ: to trans 256 # chunk 256 # transferred 256
    Note: SPI burst read success
    Note: SPI port closed

    the point Im not getting is:
    PREAMBLE_SYMB1_NB = 65535 (should be 49253)
    ADJUST_MODEM_START_OFFSET_SF12_RDX4 = 65535 (should be 3173)
    How can you receive more than the specifed data?
    Does this some how related to mode of operation in SPI currently its working on mode 0 in beaglebone black.

    In addition to this:

    sudo ./test_loragw_rx 868.8
    result for runnic the above program
    Note: SPI port opened and configured ok
    Note: SPI write success
    Note: SPI read success
    Beginning of test for loragw_hal.c
    *** Library version information ***
    Version: 1.5.0; Options: native sx1301 auto-check full ref_1301_868 private;

    F_RX0 = 869200000, F_RX1 = 0
    4 freqeuncy channels are selected
    channel: 0, freq: 868800000
    channel: 1, freq: 869000000
    channel: 2, freq: 869200000
    channel: 3, freq: 869400000
    Note: SPI port closed
    Note: SPI port opened and configured ok
    Note: SPI write success
    Note: SPI read success
    *** Impossible to start concentrator ***

    Can any one guide me in setting up RAK 831?



  • @hitheshkaranth I see that your SPI can read and write data, but Impossible to start concentrator, this may be that you have not reset the gateway device, please reset the gateway device before starting.



  • @xc.c
    Thanks for replying and I apologise for my delayed response
    I did reset the RAK 831 with GPIO but still It failed to start. Plus Im confused why am I getting more data that what is expected!



  • @hitheshkaranth said in How to setup gateway using RAK831 with Beaglebone black Rev C ?:

    why am I getting more data that what is expected!

    Sorry, I didn't understand what you mean.


Log in to reply
 

Looks like your connection to RAK Support Center was lost, please wait while we try to reconnect.