ATC_TLSR_Paper icon indicating copy to clipboard operation
ATC_TLSR_Paper copied to clipboard

Hanshow Nebular

Open lippe-digital opened this issue 2 years ago • 48 comments

Did someone already got hands on Nebular devices?

They are popping up in stores around here. They've got BW/Yellow and BW/Red. Also there a ones which are big, like a DinA5 sheet...

lippe-digital avatar Nov 29 '22 17:11 lippe-digital

PXL_20221129_215336006 MP

lippe-digital avatar Nov 29 '22 21:11 lippe-digital

Hey. The 3.5" ones are directly compatible and will also do Bluetooth :)

Included the general files today but the display itself still needs the correct custom driving, different resolution and different custom LUT for fast updates

atc1441 avatar Dec 01 '22 17:12 atc1441

Hey. The 3.5" ones are directly compatible and will also do Bluetooth :)

Included the general files today but the display itself still needs the correct custom driving, different resolution and different custom LUT for fast updates

Do these devices have a proper Antenna for bluetooth?

I read some docs about the product, and there was a NFC interface mentioned. Is it's just NFC or also WiFi?

tobiasdroessler avatar Dec 04 '22 12:12 tobiasdroessler

@lippe-digital did you try to flash your nebular device successfully?

tobiasdroessler avatar Dec 19 '22 21:12 tobiasdroessler

No. Didn't have time to get my hands on yet. But I'm really eager to figure it out.

lippe-digital avatar Dec 19 '22 23:12 lippe-digital

Now it worked for me.. The soldered battery was may in the meantime quite low on voltage. So I removed it and sourced the nebular with the 3V3 from UART Adapter. The BLE Device is now appearing :). I will look at the source code next days, the display size/orientation not matches for my target.

tobiasdroessler avatar Dec 27 '22 12:12 tobiasdroessler

I guess I was also able to flash the firmware via the web flasher, at least the LED blinked blue during flashing. Aside from that would you expect anything to work? Like should a "soft reset MCU" clear the display or anything?

rck avatar Dec 28 '22 12:12 rck

After intial flashing and a power on reset there is a test routine which writes the whole display black and write for a fee cycles... And then this appear..
IMG_20221227_111150

So you should see something displayed/changed after a reset

tobiasdroessler avatar Dec 28 '22 13:12 tobiasdroessler

Nice to see something working out.

The Nebular ones are very very beta or even Alpha, please do not expect it to work usable.

It is just a POC to see the Basics(BLE, Flashing) working :)

atc1441 avatar Dec 28 '22 13:12 atc1441

thanks for the good work. I did not expect anything at this early stage, I'm just wondering why it does not seem to do anything at all in my case. flashing looks good, at least the LED is blue when sending stuff (I did send the unlock flash command), but then it does not show up as BLE device and does not change the display. FWIW this is a Nebular 350-RN. Looks like there are different revisions, my pin out is slightly different from the one shown in this thread. I have a second one that has a display attached (and cleaner soldering :) ). SWS is connected to UART TX, RST to UART RTS, VCC to 3V3, GND to GND. that should be correct, right? I also tried with RST unconnected. RST vs NRST in the other pin outs? anything obviously wrong with the wiring?

hanshow

rck avatar Dec 28 '22 20:12 rck

I think your wiring is correct.. Did you unlock and ERASE the flash memory like described in the youtube video?

tobiasdroessler avatar Dec 29 '22 19:12 tobiasdroessler

I did. I don't know why, but it did not work with my flipper zero but did work with a bus pirate. Now I find the device in the BLE app and see output on the display :+1:

rck avatar Jan 03 '23 14:01 rck

I did. I don't know why, but it did not work with my flipper zero but did work with a bus pirate. Now I find the device in the BLE app and see output on the display 👍

Had the same issue with a Flipper Zero. My FT232 did the trick though. Did you manage to upload something to the display?

This is my Hanshow Nebular 213R-N: Hanshow_Nebular_213R-N_front Hanshow_Nebular_213R-N_back

WatskeBart avatar Jan 20 '23 16:01 WatskeBart

Did you manage to upload something to the display?

I only uploaded the initial firmware which then displayed the clock and the the device showed up as BLE device, but that is where I stopped to let others do the actual work :). Refresh did not really work and the display size was wrong, but that is AFAIK currently all expected.

rck avatar Jan 23 '23 08:01 rck

Got my hands on another Nebular. Imagepipe_6

WatskeBart avatar Jan 23 '23 20:01 WatskeBart

I have more succes with the Nebular 154. Unfortunately the screen was cracked, but it shows the clock partially. I can't get it to fill the complete display just like @tobiasdroessler I even tried to changed the value's in epd.h to match the resolution of the Nebular 154

#define epd_height 200
#define epd_width 200

Imagepipe_7

WatskeBart avatar Jan 24 '23 17:01 WatskeBart

@atc1441 Why is the UART output garbled of a flashed device? Only connected the VCC, GND and TX-to-RX to my UART adapter at 115200bps

WatskeBart avatar Jan 24 '23 18:01 WatskeBart

Is it possible that we need a weak pull-up resistor on the SWS when programming ? I'm seeing the LED on the Nebular flashing when I'm using the serial programmer - but it doesn't look like the Nebular is obeying the commands. Even the "Soft Reset MCU" button doesn't appear to do anything on the Nebular (other than flash the LED). So, something still isn't working with the Nebular.

nethomas1968 avatar Mar 21 '23 15:03 nethomas1968

Hi Thomas.. you should check the battery voltage.. and/or supply the device from your Uart adapter. I had problems because of a low battery and removed it, then it worked.

Connected UART Adapters in not supplied state will also drain the battery over days.

tobiasdroessler avatar Mar 21 '23 16:03 tobiasdroessler

Hi tobiasdroessler . Thank for your prompt reply. I did remove the battery, and sourced the 3V3 from the CH340 USB/UART adaptor. But, still doesn't appear to be programming the Nebular.

  • Hi Thomas.. you should check the battery voltage.. and/or supply the device from your Uart adapter. I had problems because of a low battery and removed it, then it worked.

Connected UART Adapters in not supplied state will also drain the battery over days.

nethomas1968 avatar Mar 21 '23 16:03 nethomas1968

I think the reset is needed just before flashing. Did you connected the RTS to the reset pin?

May your adapter not work as intended and the reset is not done. You could also issue a reset manually before click the flash button... more info may atc can provide.

tobiasdroessler avatar Mar 21 '23 18:03 tobiasdroessler

My CH340 USB/UART adaptor doesn't have a RTS pin! There are 6 pins, labelled GND, CTS, VCC, TXD, RXD, DTR.

I've used GND, CTS, VCC and TXD. The CTS on the CH340 is connected to RST on the Hanshow Nebular. I don't know if that is correct though.

nethomas1968 avatar Mar 22 '23 15:03 nethomas1968

Oh I my opinion CTS is an input Signal for your Uart device.. So that should not work to force an reset.

@atc1441 Do you have any recommendations when there is no RTS on your adapter?

tobiasdroessler avatar Mar 22 '23 16:03 tobiasdroessler

I'm using the Hanshow Nebular 350R-N . And, I'm looking at the EPD_BWR_350_detect function. It's trying to write 0xA5 in to 153 bytes of storage locations, and then read them back. I'm presuming this is to test that there are that many bytes of storage available - and from that we can determine the model. Well, unfortunately, the read-back is failing at byte number zero. So, it's failing to write 0xA5 in to any of the locations. Is this a symptom of a bigger problem for the Hanshow Nebular 350R-N ?

nethomas1968 avatar Mar 28 '23 14:03 nethomas1968

I suspect the GPIO pin configuration is all different for the Hanshow Nebular.

nethomas1968 avatar Mar 28 '23 14:03 nethomas1968

As mentioned already the Nebular ones are not at all proven to work

atc1441 avatar Mar 28 '23 15:03 atc1441

It would be nice to get hold of the Data Sheet for the Hanshow "HS9118 A6100". I understand that it has an embedded TLSR8359 chip. My current problem is that I think the GPIO assignment in main.h isn't valid for the Nebular 350R-N, and I don't know enough to reverse engineer from the hardware.

nethomas1968 avatar Mar 30 '23 16:03 nethomas1968

As usual there is no datasheet available, but the pinout is the same :)

atc1441 avatar Mar 30 '23 17:03 atc1441

As usual there is no datasheet available, but the pinout is the same :)

Actually, it's these pin settings that I'm querying - from main.h : #define EPD_RESET GPIO_PD4 #define EPD_DC GPIO_PD7 #define EPD_BUSY GPIO_PA1 #define EPD_CS GPIO_PB4 #define EPD_CLK GPIO_PB5 #define EPD_MOSI GPIO_PB6 #define EPD_ENABLE GPIO_PC5

The code to read the battery power and battery temperature is working fine - but the SPI comms to the display aren't working. So, I'm wondering if those GPIO pins are different on the Nebular series.

nethomas1968 avatar Mar 31 '23 07:03 nethomas1968

The pinout is the same. But again, there is still work needed to get it fully running. Sorry for being so short on that but its how it is currently

atc1441 avatar Mar 31 '23 07:03 atc1441