Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request support E104-BT5040U (nRF 52840) #545

Open
yazhuo-wyze opened this issue Sep 19, 2022 · 10 comments
Open

Request support E104-BT5040U (nRF 52840) #545

yazhuo-wyze opened this issue Sep 19, 2022 · 10 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@yazhuo-wyze
Copy link

product link : https://www.ebyte.com/product-view-news.html?id=1030
buy link : https://detail.tmall.com/item.htm?id=624428606924

@kaczmarczyck kaczmarczyck self-assigned this Sep 20, 2022
@kaczmarczyck
Copy link
Collaborator

Hi! Can you please specify what kind of support you request? If you want to run OpenSK on your hardware, the Nordic chip is supported. However, BLE is not yet implemented, so you'd have to contribute for that :)

@yazhuo-wyze
Copy link
Author

Hello Again. I need an installation document, like this: https://github.com/google/OpenSK/blob/stable/docs/boards/nrf52840_mdk.md
, no need for Bluetooth for now.I mentioned E104-BT5040U, this one. I think it uses an nRF 52840.

@kaczmarczyck
Copy link
Collaborator

We don't support new hardware on request. We do accept contributions, so if you find out how to install OpenSK on this platform, feel free to extend our documentation.

@yazhuo-wyze
Copy link
Author

ok,thanks.I will try this new board, but I am not good at embedded development. If it works, I will provide documentation.

@kaczmarczyck kaczmarczyck added the help wanted Extra attention is needed label Sep 20, 2022
@chimpnz
Copy link

chimpnz commented Oct 26, 2022

I have 3 of these. It comes with a broken Open DFU bootloader.
When first flashed with the OpenSK for the PCA10059 via nrfutil or nrf Connect it becomes completely unresponsive.

The bootloader for the PCA10059 found here will restore functionality. With the PCA10059 bootloader it behaves just like a PCA10059. The LEDs and buttons are connected to the same io pins. The left button is RESET and the right USER.

dongle

I would not recommend these. For the same price you can get a PCA10059 with a working bootloader. The plastic case it comes with is also not very useful. The buttons are not accessible. Also one leg of the RESET button was not soldered on one board and the USER button was not soldered on another.

shell

@Firemanpl
Copy link

On aliexpress. It board seems to be the cheapest board with nrf52840 form me (at least form my country e.g. Poland). I have one question. @chimpnz How you flashed this bootloader. jlink, Daplink or something other maybe ? Because I maked this same, and after i flashed i saw this issue.

@chimpnz
Copy link

chimpnz commented Jan 6, 2023

On aliexpress. It board seems to be the cheapest board with nrf52840 form me (at least form my country e.g. Poland). I have one question. @chimpnz How you flashed this bootloader. jlink, Daplink or something other maybe ? Because I maked this same, and after i flashed i saw this issue.

I used a OpenOCD on a Raspberry Pi. Mostly followed the directions here https://www.rototron.info/circuitpython-nrf52840-dongle-openocd-pi-tutorial

Just substitute to correct SWD pins on the different device and flash the bootloader from https://devzone.nordicsemi.com/f/nordic-q-a/40924/how-can-i-restore-the-original-bootloader-of-a-pca10059

@kaczmarczyck
Copy link
Collaborator

Thanks at @Firemanpl and @chimpnz for your extensive documentation here! About missing access to the button: If you want to port OpenSK to this board, how would you solve this? If you want to build a touchless security key, I think you have 2 options:

  1. Somewhat conform to FIDO and use replugging for user presence checks. Not very user friendly, and means that the Reset command isn't as protected as before.
  2. Pretend that the button was touched when asked. Loses the security added by requiring touch for sensitive actions, and probably doesn't conform to FIDO. Likely still better than most password based solutions, but more for personal use.

Or is there something entirely different you are trying to do?

@wolfyzhang-github
Copy link

@yazhuodong-wyze :
In fact, I just flashed the OpenSK firmware for this E104-BT5040U using Daplink and it works well now, no fatal problems so far.

@chimpnz :
I had the same problem with the corrupted DFU bootloader and at first I was wondering if the one I had was broken, well, now it turns out it's not a coincidence :-) thanks for bringing a functioning bootloader.

@kaczmarczyck :
Finally, since the chips themselves are all the same, just some pin mapping relationships are different, I will update the documentation support for this product on OpenSK installation in the coming days.

Regarding the device itself, it is supposed to be the cheapest nrf52840 development module currently on the market (at least for me) made by a Chinese company, so its documentation and hardware design etc. is not as well developed as Makerdiary and Nordic, and the money saved puts a higher demand on the user.

By the way, by checking the manual I found that E104-BT5040U and Nordic nRF52840 Dongle are identical in the mapping of user buttons, both are P0_16, so theoretically (and the easiest way), it is perfectly feasible to use Dongle's documentation to flash E104-BT5040U.

Specifically for my implementation, I actually added a capacitive touch button to it, and then modified the pin definition of
user button inside the tock(yes I treated it as Dongle) to match my physical capacitive touch button. It runs well for now, but good boy don't follow my example of messing with the definition like that, it tends to cause weird hard to debug problems ;-)

@zalexua
Copy link

zalexua commented Sep 6, 2023

Let me post some details here.

I was disappointed to select another model - E104-BT5040UA, as description was not clear enough that it's very different from E104-BT5040U.
This works as a snuffer only, and you cannot use it with "nRF Connect at" all. You can use as sniffer in Wireshark only!

20230904_210129
20230904_210112

20230904_210028
20230904_210051

Description on other sale lots (which I've missed) says:

Differences between E104-BT5040U and E104-BT5040UA:
1. The factory software of the two modules is different, and the functions are also different.
E104-BT5040U:  The main function is to support Nordic's official PC-side nrf connect, customers can use this module with nrf connect for BLE function debugging and development;
E104-BT5040UA: The main function is to capture BLE4.2 and BLE5.0 protocol packets, and it is used with other BLE modules to capture and analyze the communication of other modules.

2. The hardware structure is different.
E104-BT5040U:  It is developed based on Nordic's official nRF52840 USB Dongle module, the hardware structure is similar to it, and most of the IO ports and hardware resources of the chip are drawn;
E104-BT5040UA: It is developed based on Nordic's official development board PCA10056. In addition to the nRF52840 chip itself, a serial port chip is added, and only the programming interface is introduced. IO and other hardware resources have no interface.

3.E104-BT5040U is compatible with all the programs of Nordic's original nRF52840 USB Dongle, and IO ports and hardware resources have been introduced, which is convenient for customers to carry out secondary development;
E104-BT5040UA does not recommend customers to carry out secondary development, and Ebyte does not provide secondary development support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants