ronoth / LoStik

LoRaWAN compatible USB test device
MIT License
132 stars 39 forks source link

Status mac paused #32

Open sainathgorige opened 11 months ago

sainathgorige commented 11 months ago

Hello,

I'm trying to get coverage of my lora network using losik, I bought two losik, I have tried using lorawan.py, but couldn't succeed.

Following are the steps I followed:

Generated random unique values(also used sensor values) for DevEUI, AppEUI, and AppKey.
Registered these values with your LoRaWAN network server(chirpstack dashboard).
Use these same values in your Python script when running it with the LoStik device.

but the script hung at status ,ac paused: sudo python3 lorawan.py /dev/ttyUSB0 --appeui 70B3D57ED0031D3D --appkey EC925802AE430F59798E8C8D7E926C8D --deveui 00D827F000B4C638 Connection to LoStik established mac set appeui 70B3D57ED0031D3D mac set appkey EC925802AE430F59798E8C8D7E926C8D mac set deveui 00D827F000B4C638 mac join otaa STATUS: ok STATUS: ok STATUS: ok STATUS: mac_paused

is there anything I'm missing

I have also tried using ABP

sudo python3 lorawan.py /dev/ttyUSB0 --joinmode abp --devaddr 010bb971 --nwkskey c44e91483a00aa3cedba46bc4ebe87a8 --appskey d7321ca80503973775a521759f3c5da7 [sudo] password for aerpaw: Connection to LoStik established mac set devaddr 010bb971 mac set appskey d7321ca80503973775a521759f3c5da7 mac set nwkskey c44e91483a00aa3cedba46bc4ebe87a8 mac join abp

sainathgorige commented 11 months ago

@lolsborn @doismellburning @eggfriedrice any help?

lolsborn commented 11 months ago

Did you configure the channels? What network are you trying to connect to and what region are you in?

On Tue, Jul 25, 2023 at 9:41 AM sainathgorige @.***> wrote:

@lolsborn https://github.com/lolsborn @doismellburning https://github.com/doismellburning @eggfriedrice https://github.com/eggfriedrice any help?

— Reply to this email directly, view it on GitHub https://github.com/ronoth/LoStik/issues/32#issuecomment-1650179067, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAOZBEFY3NZZNVYFTP6LMDXR7ZKZANCNFSM6AAAAAA2XKWKXQ . You are receiving this because you were mentioned.Message ID: @.***>

sainathgorige commented 11 months ago

No, How to configure the channels, can you please give a doc/example?

I have 6 RAK lora gateways, which constitutes my lora network. and I'm using US 915mhz.

lolsborn commented 11 months ago

Take a look at the configure.py script in the examples directory. It expects a configuration script like the ttn-us.conf file which is setup for "The Things Network" with the US channel plan. You'll need to run that or manually send the channel commands over to configure them.

On Tue, Jul 25, 2023 at 10:06 AM sainathgorige @.***> wrote:

No, How to configure the channels, can you please give a doc/example?

I have 6 RAK lora gateways, which constitutes my lora network. and I'm using US 915mhz.

— Reply to this email directly, view it on GitHub https://github.com/ronoth/LoStik/issues/32#issuecomment-1650214872, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAOZBFZXQC4RREIUGOFZHTXR74IHANCNFSM6AAAAAA2XKWKXQ . You are receiving this because you were mentioned.Message ID: @.***>

sainathgorige commented 11 months ago

Thanks, I have added deveui and app creds to the ttn-us-conf, But still I'm facing the same issue I have attached the logs to this comment.

Please let me know if I'm missing something here

ttn-us.txt

losik_logs.txt