BastilleResearch / mousejack

MouseJack device discovery and research tools
GNU General Public License v3.0
1.28k stars 254 forks source link

NRF24L01 + USB SPI CONVERTER #19

Open TotalDay opened 8 years ago

TotalDay commented 8 years ago

Hello! How can i flash this NRF24L01 + USB SPI CONVERTER with ArduinoISP or SPI programmer ?

http://www.elecfreaks.com/wiki/index.php?title=2.4G_Wireless_nRF24L01p_with_PA_and_LNA

Please help!

TotalDay commented 8 years ago

nRF24L01_Product_Specification_v2_0.zip

TotalDay commented 8 years ago

_12 52100a n24l01_figure20

TotalDay commented 8 years ago

new-ch340t-usb-to-serial-port-adapter-board-2-4g-nrf24l01-wireless-module-wholesale

marcnewlin commented 8 years ago

Unfortunately it is not possible to use this firmware with an nRF24L01+ without modification. The firmware is designed to work with the nRF24LU1+, which contains a USB controller and 8051 MCU (which are not present in the nRF24L01+).

If you want to use an nRF24L01+, my recommendation would be to connect it to a 3.3v Arduino or Teensy, and modify the firmware to use the Arduino's SPI interface instead of the internal SPI interface used with the nRF24LU1+.

TotalDay commented 8 years ago

Marcnewlin, i read many manuals about nRF24LU1+, but i can not find specs about flash size 16 kb or 32 kb. have you any information about bootloader`s adress of this chip?

marcnewlin commented 8 years ago

The firmware in this repository is specific to the 32kb flash variants of the nRF24LU1+, but it should work with the 16kb variants with a slight modification.

The chips ship with the Nordic bootloader occupying the upper 2kb of flash memory. On the 32kb variants this is at address 0x7800, vs 0x3800 for the 16kb variants.

I haven't tested this with a 16kb nRF24LU1+, but it should be as simple as updating the bootloader address.

Let me know how it goes! On Jun 22, 2016 5:22 PM, "TotalDay" notifications@github.com wrote:

marcnewlin, i read many manuals about nRF24LU1+, but i can not find specs about flash size 16 kb or 32 kb. have you any information about bootloader`s adress of this chip?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/RFStorm/mousejack/issues/19#issuecomment-227880864, or mute the thread https://github.com/notifications/unsubscribe/ABMBHhbp6yxgBa_iX5e2HsiZvHi08AVnks5qOaeggaJpZM4I5Lxh .

TotalDay commented 8 years ago

Today i received NRF24L01 USB adapter USB 2.4Ghz NRF24L01 UART 2.4G NRF24L01

imag0979 imag0983

TotalDay commented 8 years ago

This adapter have Chipset UART : CH340 MCU : STC11L04E VID:PID=1a86:7523

default CH341SER_MAC.ZIP CH341SER.ZIP CH341SER_LINUX.ZIP NRF24L01ComExample_STC.zip CH341SER_ANDROID.ZIP

TotalDay commented 8 years ago

The best solution is to flash Firmware direct from USB - UART

Can someone help to flash it?

http://www.ebay.com.au/itm/NRF24L01-USB-adapter-adaptateur-USB-2-4Ghz-pour-NRF24L01-UART-2-4G-NRF24L01-/272081225026

TotalDay commented 8 years ago

imag0980 imag0981 imag0982 imag0983 imag0978 imag0979

TotalDay commented 8 years ago

I am trying to flash via USB SERIAL CONVERTER

Changes:

static void (_nordicbootloader)() = (void ()())0x3800;

LDFLAGS = --xram-loc 0x4000 --xram-size 2048 --model-large

'USB VID:PID=1a86:7523'.lower()

dongle = usb.core.find(idVendor=0x1a86, idProduct=0x7523)


make install

result: device is busy


make spi_install

1

30 minutes and still nothing

SimenDeath commented 7 years ago

I am having same problem .. -> it frozes in Writing image to flash -> i am trying to flash with teensy3.1 via SPI with cina module nrf24l01+. ... Edit: Okey problem was that i got 01+ and not LU1+. I finally underestand difference between nrf24l01+ and nRF24LU1+ :). So now i need to figure out how to change firmware to use it on 01+.

madagaga commented 7 years ago

Hi @SimenDeath , i have same problem. I'm not a c/asm developper but I've take a look at the "firmware" given by the seller, it handle only the nrf part. this link seems to show how to handle uart part http://www.stcmcu.com/datasheet/stc/STC-AD-PDF/STC11F-10Fxx-english.pdf

Maybe it could help

nrf part could be rewriten to handle 01/01+ as the given code is quite similar to arduino/rpi rf24 lib. Then a AT interpreter should be written to transfer command between PC <=> STC <=> nrf

its-saeed commented 6 years ago

I have same problem. Does anybody solve this problem?

RoganDawes commented 6 years ago

I haven't solved the problem, but as Marc indicated in https://github.com/BastilleResearch/mousejack/issues/19#issuecomment-227151254, the nRF24L01 has no built in CPU, which means you cannot flash firmware to it. You can consider using ucMouseJack firmware instead: (https://github.com/insecurityofthings/uC_mousejack)

This uses a separate microcontroller to drive the nRF24L01.