# Can LMIC 1.6 be set up to use a single channel and SF?

**URL:** <https://www.thethingsnetwork.org/forum/t/can-lmic-1-6-be-set-up-to-use-a-single-channel-and-sf/5207>\
**Category:** End Devices (Nodes)\
**Created:** [February 4, 2017, 10:43am UTC](https://www.thethingsnetwork.org/forum/t/can-lmic-1-6-be-set-up-to-use-a-single-channel-and-sf/5207 "2017-02-04T10:43:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mogyoros](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/mogyoros/32/25844_2.png) [@mogyoros](https://www.thethingsnetwork.org/forum/u/mogyoros)\
**Post date:** [April 15, 2017, 8:54am UTC](https://www.thethingsnetwork.org/forum/t/can-lmic-1-6-be-set-up-to-use-a-single-channel-and-sf/5207/3 "2017-04-15T08:54:24Z")

</div>

Hi there!  
I am using LMIC 1.5. Looking for the same answers as you… 🙂  
Found a way to lock join frequencies to a single channel by setting CH0,1,2 to the same frequency.

To fix the spreading factor: in lmic.c, in initJoinLoop modify

`// setDrJoin(DRCHG_SET, DR_SF7); setDrJoin(DRCHG_SET, LMIC.datarate);`

In the main code use:  
`LMIC.datarate=DR_SFx` - where x stands for the SF use want to use

To avoid SF hopping during join: in lmic.c, modify nextJoinState:  
`// setDrJoin(DRCHG_NOJACC, decDR((dr_t)LMIC.datarate)); setDrJoin(DRCHG_NOJACC, (dr_t)LMIC.datarate);`

So it wont try to decrease the SF when previous join failed.  
Cheers

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/can-lmic-1-6-be-set-up-to-use-a-single-channel-and-sf/5207)._
