Changes between Version 53 and Version 54 of expansion/gw16146


Ignore:
Timestamp:
05/30/2024 09:57:03 PM (4 months ago)
Author:
Ryan Erbstoesser
Comment:

add troubleshooting

Legend:

Unmodified
Added
Removed
Modified
  • expansion/gw16146

    v53 v54  
    401401[=#examples]
    402402=== Configuration and Usage examples
    403 1. Loading drivers:
    404  a. lsusb shows GW16046 on bus with VID:0x2beb and PID=0x0146
     403
     404==== Standard Configuration
     405Steps 1 through 4 below are required for operation:
     406
     4071. Set the country code (required for newer versions of the driver) (MANDATORY every boot)
     408{{{#!bash
     409iw reg set US
     410}}}
     4112. Confirm the device exists on the USB bus:
     412lsusb shows GW16046 on bus with VID:0x2beb and PID=0x0146
    405413{{{#!bash
    406414lsusb -d 0x2beb:0x0146
    407415# Bus 001 Device 003: ID 2beb:0146 
    408416}}}
    409  b. Load the NRC7292 driver providing the fw_name bd_name and spi_polling_interval parameters:
    410 {{{#!bash
    411 modprobe nrc fw_name=nrc7292_cspi.bin bd_name=nrc7292_bd.dat spi_polling_interval=5
    412 }}}
    413   - After several seconds you should see a new wlan device under /sys/class/net
    414  c. Find the correct wlan interface that is bound to the NRC7292 driver by looking for a devices in /sys/class/net with a SPI based device-driver:
     4173. Find the correct wlan interface that is bound to the NRC7292 driver by looking for a devices in /sys/class/net with a SPI based device-driver:
    415418{{{#!bash
    416419WLAN="$(for i in $(ls -d /sys/class/net/wlan* 2>/dev/null); do if [ -d $i/device/driver/spi* ]; then basename $i; fi; done)"
     
    418421# wlan0
    419422}}}
     4234. Bring up the interface (required for configuration below)
     424{{{#!bash
     425ifconfig $WLAN up
     426}}}
     4275. Now configure wlan0 as an access point or client (station) given different examples below.
     428
     429
     430==== Manual Configuration
     431
     432Optional More Manual Config When Not Using Gateworks Ubuntu BSP:
     433 
     4341. Confirm the device exists on the USB bus:
     435lsusb shows GW16046 on bus with VID:0x2beb and PID=0x0146
     436{{{#!bash
     437lsusb -d 0x2beb:0x0146
     438# Bus 001 Device 003: ID 2beb:0146 
     439}}}
     440 a. Device Drivers: (this is done automatically when using the latest Gateworks Ubuntu BSP)
     441 b. Load the NRC7292 driver providing the fw_name bd_name and spi_polling_interval parameters:
     442{{{#!bash
     443modprobe nrc fw_name=nrc7292_cspi.bin bd_name=nrc7292_bd.dat spi_polling_interval=5
     444}}}
     445  - After several seconds you should see a new wlan device under /sys/class/net
     446 c. Find the correct wlan interface that is bound to the NRC7292 driver by looking for a devices in /sys/class/net with a SPI based device-driver:
     447{{{#!bash
     448WLAN="$(for i in $(ls -d /sys/class/net/wlan* 2>/dev/null); do if [ -d $i/device/driver/spi* ]; then basename $i; fi; done)"
     449echo $WLAN
     450# wlan0
     451}}}
    420452 d. Set the country code (required for newer versions of the driver) (MANDATORY every boot)
    421453{{{#!bash
     
    427459}}}
    428460
    429 2. Configure miscellaneous parameters via cli_app Netlink tool
    430  * enable transmission power controL (TPC)
     461==== Popular CLI_APP Configuration
     462 (Optional) Configure miscellaneous parameters via cli_app Netlink tool
     463 * Enable transmission power controL (TPC)
    431464{{{#!bash
    432465# cli_app set bdf_use on # enable transmission power control (TPC)
     
    434467OK
    435468}}}
    436  * configure frame aggregation
     469 * Configure frame aggregation
    437470{{{#!bash
    438471# cli_app set maxagg 1 8 # configure frame aggregation
     
    464497OK
    465498}}}
    466  * configure power calibration
     499 * Configure power calibration
    467500{{{#!bash
    468501# cli_app set cal_use on # enable power calibration
     
    470503OK
    471504}}}
    472  - for the Command Line App usage details see [https://github.com/Gateworks/nrc7292/blob/master/package/host/doc/UG-7292-007-Commnad%20line%20application.pdf UG-7292-007-Command Line Application.pdf]
    473 
    474 3. Configure AP (access point) or STA (station / client) mode:
     505 - For the Command Line App usage details see [https://github.com/Gateworks/nrc7292/blob/master/package/host/doc/UG-7292-007-Commnad%20line%20application.pdf UG-7292-007-Command Line Application.pdf]
     506
     507==== Access Point / Client Station Examples
     5081. Configure AP (access point) or STA (station / client) mode:
    475509 * Define your channel and SSID via env variables (used in scripts below)
    476510{{{#!bash
     
    699733lrwxrwxrwx 1 root root 0 Aug 31 20:13 spi3 -> ../../devices/platform/soc@0/soc@0:bus@32c00000/32e50000.usb/ci_hdrc.1/usb1/1-1/1-1.3/1-1.3:1.0/spi-ft232h.0/spi_master/spi3
    700734}}}
     7351. Ensure the there is a wireless interface in /sys/class/net:
     736{{{#!bash
     737# ls /sys/class/net
     738eth0  eth1  lo  wlan0
     739}}}
    7017401. Possible regulatory domain issue:
    702741{{{
    703742Because there is not country set in the target, the target asserts. As was shown below and given here again:
    704 
    705743[177933905] ASSERT(0) at CheckNUpdateCHTableByVif() in umac/umac_s1g_channel.c, 1033
     744or
     745[Error] CC is 00 or 99. Skip loading BD and setting CC
     746}}}
     747    It is mandatory to set the regulatory domain every boot: (example shows for USA)
     748{{{#!bash
     749iw reg set US
     750}}}
     7516. Verify the cli_app can talk to the GW16146 module:
     752{{{#!bash
     753# cli_app show version
     754Newracom Firmware Version        : 01.05.00
     755gerrit/master                    : 69f978e
     756OK
     757
     758}}}
     7597. Device sleeping
     760{{{#!bash
     761[Error] the target device cannot respond while deep sleep.
     762}}}
     763  Be sure the regulatory domain is set as describe above and the interface is brought up afterwards with the following command:
     764{{{#!bash
     765ifconfig wlan0 up #assuming wlan0 is your GW16146
    706766}}}
    707767
     
    725785|| 4 || UART_RX ||
    726786|| 5 || Ground ||
    727 [[Image(j1gw16146.png,500px)]]
    728 
    729 
     787[[Image(j1gw16146.png,200px)]]
     788
     789