Forum

[Solved] Unrecognized Transceiver  

Page 3 / 3 Prev
  RSS

kiran007francis
Eminent Member Customer
Joined:2 weeks  ago
Posts: 29
08/02/2018 10:51 am  

Like i said i'm using one lora module as transmitter. So i kept pins 2 and 3 high for the module. I'm using the next module as receiver, so should i keep pins 2 and 3 high for that module as well?


ReplyQuote
Akshay
BDFL Admin
Joined:2 years  ago
Posts: 24
08/02/2018 11:01 am  

Yes, Pin #2 and #3 are to be high for both Transmit node and receive node. This is in software because in low-power mode, the RF FE these can be put low for extremely low power consumption. If you do not care for low-power mode you can pull up in hardware with a 4.7K resistor.

The instantaneous mode for RX and TX is controlled by the SX1276 and if this function is desired on the MCU, the modification required are in the QSG. 


ReplyQuote
kiran007francis
Eminent Member Customer
Joined:2 weeks  ago
Posts: 29
08/02/2018 11:43 am  

This my code for transmission. Can you suggest or help. Is this the only required code for simple transmission

 

#include <SPI.h>

void setup (void)

{

pinMode(10, OUTPUT); // CS

  digitalWrite(10, HIGH);

  pinMode(8, OUTPUT); // PIN 2 of LORA module

  digitalWrite(8, HIGH);

  pinMode(7, OUTPUT); //  PIN 3 of LORA module

  digitalWrite(7, HIGH); 

// Put SCK, MOSI, SS pins into output mode

  // also put SCK, MOSI into LOW state, and SS into HIGH state.

  // Then put SPI hardware into Master mode and turn SPI on

   pinMode(13, OUTPUT); //SCK

  digitalWrite(13, LOW);

   pinMode(11, OUTPUT); //MOSI

  digitalWrite(11, LOW);

   Serial.begin(38400);

  SPI.begin ();

 

  // Slow down the master a bit

  SPI.setClockDivider(SPI_CLOCK_DIV8);

  

}  // end of setup

 

 

void loop (void)

{

 

  char c;

 

  // enable Slave Select

  digitalWrite(10, LOW);    // SS is pin 10

 

  // send test string

  for (const char * p = "Hello, world!\n" ; c = *p; p++)

  {

    SPI.transfer (c);

    Serial.print (c);

  }

 

  // disable Slave Select

  digitalWrite(10, HIGH);

 

  delay (1000);  // 1 seconds delay 

}  // end of loop


ReplyQuote
Akshay
BDFL Admin
Joined:2 years  ago
Posts: 24
08/02/2018 11:49 am  

Refer here:

http://cpham.perso.univ-pau.fr/LORA/RPIgateway.html

 

we use the above for our setup. We use it with the Raspberry Pi only and it works both as a node and a gateway. We have other customers who have used the above with an Arduino and is the right way to proceed.

Once the node is detected, the code will configure it with the appropriate stack/ frequency/ power and then send your data. 

Browse the code and use it to proceed further,

hth,


ReplyQuote
kiran007francis
Eminent Member Customer
Joined:2 weeks  ago
Posts: 29
09/02/2018 10:27 am  

Hello, i have established the communication. Now i am able to send and receive data. But the range of communication is very less. I am only able to receive data when the two modules are very close to each other. I am not receiving anything when two devices are in two rooms. How can i increase my range? How much can i increase my transmission power.


ReplyQuote
Akshay
BDFL Admin
Joined:2 years  ago
Posts: 24
09/02/2018 12:23 pm  

Great news. 

1. Please ensure the pull-up is in place. This is the chief reason for the PA or LNA to not get activated. Put a hardware pull-up if software pull-up is not possible.

2. Please ensure that the transmit power (MAX DBM) is not more than 8dBm. anything higher may fatally damage the front end.

 

happy hacking,

hth,


ReplyQuote
Akshay
BDFL Admin
Joined:2 years  ago
Posts: 24
09/02/2018 12:38 pm  

Also check the current -- the module for 1W needs "huge" current. The aruino may not be able to give so much. Try to give 5V from some direct source but ensure:

1. 5V is regulated and clean

2. Ground for both supplies should be common at one point. 🙂


ReplyQuote
kiran007francis
Eminent Member Customer
Joined:2 weeks  ago
Posts: 29
09/02/2018 1:28 pm  

At moment i have given high values to pin 2 and 3 through software. Are you suggesting i should pull up the pins using hardware? How much volt should be given to those pins?


ReplyQuote
kiran007francis
Eminent Member Customer
Joined:2 weeks  ago
Posts: 29
12/02/2018 2:07 pm  

Hello. Can you please reply? At moment i have given high values to pin 2 and 3 through software. Are you suggesting i should pull up the pins using hardware? How much volt should be given to those pins?


ReplyQuote
FahdAnsary
Hardware Expert -- RF & Embedded Moderator
Joined:1 year  ago
Posts: 2
12/02/2018 3:13 pm  

Connect hardware pull ups to these pins. Please follow instruction below for connecting hardware pull up

1. Remove R9 and R8

2. Connect 3.3k / 10k value Pull ups to pads of R8 and R9 as shown in image. Tie the other end to C69 VCC pad, as shown in image

  https://drive.google.com/file/d/1x2SHdB9EtMW-nKf_hKyuxX_-_LxQSDhz/view?usp=sharing

This should help.


ReplyQuote
kiran007francis
Eminent Member Customer
Joined:2 weeks  ago
Posts: 29
12/02/2018 3:17 pm  

Will the above methods increase transmission range?


ReplyQuote
FahdAnsary
Hardware Expert -- RF & Embedded Moderator
Joined:1 year  ago
Posts: 2
12/02/2018 3:25 pm  

If Range issue is due to inefficient pull ups then this should resolve your range issue.


ReplyQuote
kiran007francis
Eminent Member Customer
Joined:2 weeks  ago
Posts: 29
12/02/2018 3:36 pm  

Can you please tell other possible solutions for increasing range just in case if pull ups does'nt work?


ReplyQuote
Page 3 / 3 Prev
  
Working

Please Login or Register