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

FNIRSI GC-01: Debugging #14

Closed
NikoTumi opened this issue Jan 13, 2024 · 88 comments
Closed

FNIRSI GC-01: Debugging #14

NikoTumi opened this issue Jan 13, 2024 · 88 comments
Labels
bug Something isn't working

Comments

@NikoTumi
Copy link

NikoTumi commented Jan 13, 2024

I want to run a script on my PC that would email and SMS me data log of when the measurement goes +X%.

Is it possible to grab the readings or logs from the GC-01.
This is the one I got.
https://www.amazon.com/Geiger-Counter-Nuclear-Radiation-Detector/dp/B0BHH9X1WG/ref=sr_1_4?keywords=nuclear+radiation+detector&sr=8-4&ufe=app_do%3Aamzn1.fos.18ed3cb5-28d5-4975-8bc7-93deae8f9840

Also wanted to hook it up to my android phone to map rad levels while traveling on plane.

Thanks for the help.

@Gissio Gissio changed the title Is it possible to connect this to PC and collect data?` FNIRSI GC-01 - Data logging Jan 13, 2024
@Gissio
Copy link
Owner

Gissio commented Jan 13, 2024

FNIRSI GC-01 support is not ready yet (but it won't take long).

Once it is, yes, you will be able to log data.

In the meantime, watch the project to get notified when a new release comes out.

@NikoTumi
Copy link
Author

So quick research on the chip being used, CH32F103 R8T6, and found the following.
Chip: CH32F103 R8T6
Existing Repo: https://github.com/IOsetting/StdPeriphLib_CH32F1
Detailed manual: https://crossic.com/product/ch32f103r8t6/
I'll look more into this.

@Gissio
Copy link
Owner

Gissio commented Jan 13, 2024

Don't worry, Rad Pro for GC-01 is really around the corner!

@JantarX
Copy link

JantarX commented Feb 19, 2024

hi. first of all, I want to thank you for the work on those devices. but there is a boot error on the fnirsi GC-01 device with firmware rad pro 2.0 beta. the device does not boot the firmware, but fortunately Windows can still open it and upload the old firmware to it. I had firmware 1.6 since new, now I have 1.6-2 which I downloaded from the net but it looks like it multiplies the dose. don't you have the original 1.6 uploaded/stored somewhere? thank you

@Gissio
Copy link
Owner

Gissio commented Feb 19, 2024

Unfortunately I only have firmware 0.3 and 1.5, which you can find here: https://github.com/Gissio/radpro/blob/main/docs/install-gc01.md.

Can you refer me to a link to firmware 1.6?

@JantarX
Copy link

JantarX commented Feb 20, 2024

Ofcourse. Here is it: https://drive.google.com/drive/folders/1XN-d1ZiFq0ur_ae392iQr-pbHZY32Ag5

But I don't have the clean version 1.6,I've had it since buying a new device, but it's nowhere. I have also tried writing an email to support but so far no response... So that's what I'm looking for. There is only 1.6-2 where there is an extended translation and then in 1.5 where fonts are missing after reboot unless I activate them in the settings by selecting the language. The problem is that in version 1.6-2, my background dose jumped double. I only have tungsten-thorium electrodes as a source for measurement, in any case, the computer assembly does not react to them. Even though I know that thorium is primarily an alpha emitter, but from some sources I saw measurements for beta particles from this element and specifically from this source, and they were evident.. I have nothing to compare it with. It would be ideal if someone who has two GM computers tested it, and even more ideally if they compared it to one that is professionally calibrated.

@Gissio
Copy link
Owner

Gissio commented Feb 21, 2024

Thanks for sharing!

That's odd, the GC-01 contains 64 kB flash, of which 16 kB are reserved for the bootloader. Thus the firmware should never be larger than 48 kB, yet the file you sent me is larger than that. Strange indeed.

I'm currently fixing a USB problem with the GC-01. Hopefully Rad Pro will work on the GC-01 after that.

@Gissio
Copy link
Owner

Gissio commented Feb 22, 2024

I have added a new release. Can you try now?

@JantarX
Copy link

JantarX commented Feb 22, 2024

Clearly. But there is the same problem as with the previous release. After uploading the firmware, the display just turns off and does not respond to anything, except invoking the transfer mode with a PC.
I noticed otherwise that when prompted to invoke transfer mode, it says to hold down the power button. I have a difference on my device. I have to press power button + right/settings button for that process.
They had to release several types of devices with different hardware but the same designation.
If you want, I can take a picture of the board.

@Gissio
Copy link
Owner

Gissio commented Feb 22, 2024

Thanks for your patience!

I'm sending you a special test firmware:

radpro-beta17.test2.bin.zip

After flashing it, unplug from USB.

Keep the ok/power key pressed. The pulse LED should flash 13 times. If it flashes fewer times, please let me know how often it flashes. This will let me diagnose the problem.

Now you can release the ok/power key. You should see a screen similar to this one:

test

If you get to this point, please attach a photo of the screen in your message.

pd: One more test. If you release the power key after the pulse LED flashes for the fourth time, does the sequence continue?

@mizsha
Copy link

mizsha commented Feb 22, 2024

Hi, same trouble, my device flashes 13 times, then restarts ... with FW in zip file.

@Gissio
Copy link
Owner

Gissio commented Feb 22, 2024

That's actually great news: all the peripherals are initializing correctly!

I just found a very silly error with the LCD. Again, thanks for the patience:

radpro-beta17.test3.bin.zip

Even if the screen does not work, let me know whether:

  • The LCD backlight turns on (it should be fairly dim)
  • The pulse LED flashes periodically.

@mizsha
Copy link

mizsha commented Feb 23, 2024

IMG_20240223_005329
LCD flashes with some artefacts and LED dont turn on or even pulse.

@Gissio
Copy link
Owner

Gissio commented Feb 23, 2024

It seems the LCD display is receiving commands now, but something is still off.

Let's do one more test: as before, the output should be the white screen with four lines of text. The LED and the buzzer should pulse periodically.

radpro-beta17.test4.bin.zip

Again, thanks for your patience.

@JantarX
Copy link

JantarX commented Feb 23, 2024

radpro-beta17.test4 - now there is only a white screen, LED and buzzer that blink irregularly. No characters, no image failure, just a lit panel.
It looks like me and Mizsha have the same device because the previous test turned out the same.

That's okay. I guess we can fine-tune it together somehow :)

@Gissio
Copy link
Owner

Gissio commented Feb 23, 2024

Let's try one more time. This time I'm sending two tests. Let me know which one(s) work.

radpro-beta17.test5.and.test6.zip

@JantarX
Copy link

JantarX commented Feb 23, 2024

When I hold the power, it lights up the panel with no characters, the LED blinks, the buzzer beeps, and in a second it all goes out. After a long pause, it takes longer if it all starts at all (5-6 seconds). it is the same in both cases from test 5 and 6

@Gissio
Copy link
Owner

Gissio commented Feb 23, 2024

Can you make a short video?

@JantarX
Copy link

JantarX commented Feb 23, 2024

Video.WhatsApp.2024-02-23.o.21.34.02_6231c323.mp4

After an even longer pause, it loads for 15 seconds.

@JantarX
Copy link

JantarX commented Feb 23, 2024

Obrázok WhatsApp 2024-02-23 o 21 34 14_d8e4cb2c
Obrázok WhatsApp 2024-02-23 o 21 34 14_ed8b652c

I’m attaching photos of the board in case you need to compare it with yours.

Does everything work for you when you upload firmware 1.6-2?

@Gissio
Copy link
Owner

Gissio commented Feb 23, 2024

That was fast! Thanks for the video and photos.

It seems the device is resetting at the moment the screen turns off. I'll get in touch once I have news.

@JantarX
Copy link

JantarX commented Feb 23, 2024

I just put it together when you asked for a video so it went quickly. Great, I’m keeping my fingers crossed for you.

@Gissio
Copy link
Owner

Gissio commented Feb 23, 2024

I think I found the culprit! In case you are interested: the code that reads the ADC never exits, so the watchdog timer kept restarting the device before writing to the screen.

Let's try once again:

radpro-beta17.test7.bin.zip

If it works, please press the keys (one at a time) and see if GPIOA and GPIOC change.

@mizsha
Copy link

mizsha commented Feb 24, 2024

JantarX They look similar, I also have a version with J321 tube, later versions come with cheaper one, but it also looks like we have a different LCD module and I don't even have the option and pins on the board to connect a smaller and cheaper tube. I have one of the first versions sold by a local dealer, not the current one from ali. I am attaching a photo.

515b6d61-058d-4cad-8ab5-d856a3bd7c30

Does anyone know how to successfully upload new firmware in linux ? BOOT partition is visible, readme.txt is visible, fw can be uploaded, but initialization and restart is not done, after disconnection the old fw is still active. What is the difference between uploading in win and linux, does windows have any special device driver ?

I don't have a chance to reboot into win for another test today :(

@mizsha
Copy link

mizsha commented Feb 24, 2024

Photo of one of the latest versions from aliexpress. The same box, different hw, it seems like fun for debugging fw, wouldn't it be useful to use some debug port to get data ? Trial and error will take ages.
8854a78b-0e74-423b-8cf7-786aeeebe9ac

@JantarX
Copy link

JantarX commented Feb 24, 2024

I think I found the culprit! In case you are interested: the code that reads the ADC never exits, so the watchdog timer kept restarting the device before writing to the screen.

Let's try once again:

radpro-beta17.test7.bin.zip

If it works, please press the keys (one at a time) and see if GPIOA and GPIOC change.

It is restarting without any changes compared to tests 5 and 6.

@JantarX
Copy link

JantarX commented Feb 24, 2024

JantarX They look similar, I also have a version with J321 tube, later versions come with cheaper one, but it also looks like we have a different LCD module and I don't even have the option and pins on the board to connect a smaller and cheaper tube. I have one of the first versions sold by a local dealer, not the current one from ali. I am attaching a photo.

Does anyone know how to successfully upload new firmware in linux ? BOOT partition is visible, readme.txt is visible, fw can be uploaded, but initialization and restart is not done, after disconnection the old fw is still active. What is the difference between uploading in win and linux, does windows have any special device driver ?

I don't have a chance to reboot into win for another test today :(

Have you tried version 1.6-2 that I shared above? Does it work on both of your devices?

As for Linux, I personally can’t help you. The only thing I know is that you literally need Windows 10 and a USB 2.0 port to run the bootloader. I tried it on USB 3.0 but it didn’t launch. I tried it on Ubuntu and the whole bootloader crashed. I had to disconnect the battery and flash it according to the conditions above.

@mizsha
Copy link

mizsha commented Feb 24, 2024 via email

@stevemisel
Copy link

stevemisel commented Feb 24, 2024 via email

@Tig3rch3n
Copy link

Tig3rch3n commented Mar 11, 2024

This should work even better (fixes upside down display):

radpro-fnirsi-gc01-2.0beta17-test3.zip

Can you please let me know what microcontroller your GC-01 has (CH32 or Geehy) and perform the following tests?

* Battery indicator works when not charging.

* Battery indicator works when charging.

* Display brightness/sleep settings work.

* Alarm works (flashes the screen, beeps, triggers the vibrator).

* Device clock works.

* Random generator works (it takes two pulses to generate one bit of data).

* Dead-time measurement works (takes some hours to converge).

* USB data connection works (turn on device with USB unplugged, plug in USB, check that a serial port device appears).

* radpro-tool works with the serial device.

* Data logging works (read datalog with radpro-tool).

* Temperature readout in the Statistics is correct.

Also, can you try the following?

* Go back to the original firmware. With a regular multimeter (500 V setting), measure the HV voltage at the tube (Yes, I know, the measurement will be bad, but I just need a relative measurement). Be careful as high voltage can be LETHAL. Install Rad Pro. Go to the "Geiger" tube menu, select "HV profile", select "Custom", select 10 kHz PWM frequency and, starting from 0.25 %, increase the PWM duty cycle until you get the HV voltage of the original firmware. Reset the PWM duty cycle to 0.25 % and repeat the last steps with 2.5 kHz PWM frequency. Try not to go over the original voltage as this may damage the Geiger tube.

* Make photos of the history view with the "Day", "Dusk" and "Night" display themes and share them here. I just want to make sure the display gamma is correct.

I Tested the Voltage of both of my GC-01 for the Tiny Tube I got stable 293.0V, for the J321 Tube it was first 300.0V but colapsed fast.
I only installed your Firmware on the Tiny Tube version for now.
But I could not get the Voltage high enough.

PWM 10kHz
DC 00,25% - 20.50V
DC 05,00% - 132V
DC 10,00% - 174V
DC 20,00% - 225V
DC 30,00% - 259V
DC 36,00% - 267V
DC 38,00% - 268V
DC 40,00% - 267V
DC 42,00% - 266V
DC 50,00% - 258V
DC 60,00% - 250V
DC 70,00% - 242V

PWM 2.5kHz
DC 00,25% - 32V
DC 05,00% - 127V
DC 08,00% - 152V
DC 09,00% - 156V
DC 10,00% - 159V
DC 11,00% - 158V
DC 12,00% - 157V
DC 20,00% - 154V
DC 30,00% - 149V
DC 40,00% - 145V
DC 50,00% - 141V
DC 60,00% - 138V

@JantarX
Copy link

JantarX commented Mar 11, 2024

Great! radpro-fnirsi-gc01-2.0beta17-test3.zip works but the display's power-saving mode needs to be adjusted. After the set time, the display does not darken but lights up white. I really appreciate the tube selection, beeping without HW upgrade and logging. Brilliant!

@Gissio
Copy link
Owner

Gissio commented Mar 11, 2024

When the GC-01 is charging, do you see a lighting icon on the battery indicator?

@w01fdev
Copy link

w01fdev commented Mar 12, 2024

When the GC-01 is charging, do you see a lighting icon on the battery indicator?

No. I see only how the display slowly fills up and shows full within minutes. It's the same when you remove the device afterwards and within minutes the display goes back to showing empty.

The red light next to the USB port is permanently on when charging.

@Gissio
Copy link
Owner

Gissio commented Mar 12, 2024

Does the radiation alarm work? It should flash the screen (in the current version, when the screen becomes white after sleep, it should briefly show the screen), beep the buzzer and trigger the vibrator.

@w01fdev
Copy link

w01fdev commented Mar 12, 2024

Does the radiation alarm work? It should flash the screen (in the current version, when the screen becomes white after sleep, it should briefly show the screen), beep the buzzer and trigger the vibrator.

Yes, it works all. The screen flash after sleep, vibration and buzzer

@Gissio
Copy link
Owner

Gissio commented Mar 12, 2024

Does the dead-time measurement work? Check the statistics, the dead-time should diminish as time goes by (the measurement should converge after a few hours).

Also in the statistics, does the device temperature show a reasonable value?

Does the random generator work? Try "coin flip", it takes two pulses to generate one bit of data.

@Tig3rch3n
Copy link

I think I have found a strange bug.
It was running on the latest beta firmware (radpro-fnirsi-gc01-apm32f103rb-2.0beta17-test3-install.bin).
After a few hours of use, the screen turned off. I initially thought the battery might be dead, so I plugged it in to charge.
However, the status LED turned green after a few minutes.
I then disassembled the device and measured the battery voltage, which was 4.20V, eliminating one potential source of error.
Still I swapped the Battery with my second GC-01, with the same behaviour.

I tried the power button, it did not show "RADPRO 2.0 Beta" as it should, it showed the Instantaneous screen and a value for a fraction of a second and then went blank again.
I used the arrow button, then the power button again and saw the history tab flashing for a moment.

I tried the hardware reset button...
Then I got the RADPRO 2.0 beta label for a second blip.
Flashed the original 1.62 and the beta again.

Now it works again
But something might be causing a kind of Buffer Overflow? that turns the screen off after a split second.

I will leave it running for now, hopefully I can reproduce the behaviour and film it next time.

@w01fdev
Copy link

w01fdev commented Mar 13, 2024

I think I have found a strange bug. It was running on the latest beta firmware (radpro-fnirsi-gc01-apm32f103rb-2.0beta17-test3-install.bin). After a few hours of use, the screen turned off.

Can you tell me approximately how many hours that was? Mine ran for about ~9 hours without any problems with 2 charges via USB for about 1 hour.

Does the dead-time measurement work? Check the statistics, the dead-time should diminish as time goes by (the measurement should converge after a few hours).

I'm not exactly sure what you mean but as you can see in the picture:

Tube Life Time: 10:14:09
Tube Life Pulses: 14686
Tube Dead Time: < 629.2

Are these good values or not? I'm only asking so that I know whether the software would be usable in an emergency despite the beta

Also in the statistics, does the device temperature show a reasonable value?

The value in the ~9 hours was between ~26-30.xdegrees Celsius. It had 30.x after about 60 minutes of charging (Maybe a bit more, I didn't look at it immediately after loading, but I will do so today). After Start and a little bit random generator it has 27.3 degrees Celsius. After ~12 Min Pulses it has 28.4 degrees Celsius.

Does the random generator work? Try "coin flip", it takes two pulses to generate one bit of data.

Yes, that works. Tested Coins and a few others (but not all). Sometimes faster, sometimes slower. But that has to do with the pulses.

I will run the GC again today for several hours and see if Tig3rch3n's problem also occurs for me.

IMG_20240313_020303
IMG_20240313_015324

@Gissio
Copy link
Owner

Gissio commented Mar 13, 2024

Tig3rch3n: thanks for the report. Fortunately I had the same problem with my device some days ago, so I should be able to debug it. Probably a new bug. What microcontroller does your device have (WCH or Geehy)?

w01fdev: Schaut gut aus (looks great)!

Let me explain what dead-time is: Geiger-Müller tubes are saturated for a brief time after each pulse (usually 50-500 µs), which affects high-rate measurements. The dead-time measurement lets you measure this time, and dead-time compensation lets you compensate it. You can read more about it here: https://en.wikipedia.org/wiki/Geiger%E2%80%93M%C3%BCller_tube#Quenching_and_dead_time

You also mentioned you required two USB charges in a 9 hour period. How long would the original firmware last? It should last way longer.

One more question: could you turn on the device, connect through USB and see if a serial port device appears on your computer (under Windows, check the Device Manager)? If that works, can you use a serial port terminal (like Putty) to send some commands and see if you get a response? Please let me know the microcontroller of your device (WCH or Geehy). Thanks.

@w01fdev
Copy link

w01fdev commented Mar 13, 2024

Tig3rch3n: thanks for the report. Fortunately I had the same problem with my device some days ago, so I should be able to debug it. Probably a new bug.

I have to say: I have set the display so that it is permanently on. It doesn't help with the white screen, as it still draws power

w01fdev: Schaut gut aus (looks great)!

Wunderbar. Das freut mich

Let me explain what dead-time is: Geiger-Müller tubes are saturated for a brief time after each pulse (usually 50 -500 µs), which affects high-rate measurements. The dead-time measurement lets you measure this time, and dead-time compensation lets you compensate it. You can read more about it here: https://en.wikipedia.org/wiki/Geiger%E2%80%93M%C3%BCller_tube#Quenching_and_dead_time

Thanks for information

One more question: could you turn on the device, connect through USB and see if a serial port device appears on your computer (under Windows, check the Device Manager)? If that works, can you use a serial port terminal (like Putty) to send some commands and see if you get a response? Please let me know the microcontroller of your device (WCH or Geehy). Thanks.

I have geehy. So under Linux I can't find any device with lsblk, lspci.. I'll have to have a look at Windows later. I use it very rarely.

@Gissio
Copy link
Owner

Gissio commented Mar 13, 2024

I have to say. I have set the display so that it is permanently on. It doesn't help with the white screen, as it still draws power

I completely forgot about this nasty fact. Now it makes sense!

One more question: could you turn on the device, connect through USB and see if a serial port device appears on your computer (under Windows, check the Device Manager)? If that works, can you use a serial port terminal (like Putty) to send some commands and see if you get a response? Please let me know the microcontroller of your device (WCH or Geehy). Thanks.

I have geehy. So under Linux I can't find any device with lsblk, lspci.. I'll have to have a look at Windows later. I use it very rarely.

Under Linux, try lsusb.

@w01fdev
Copy link

w01fdev commented Mar 13, 2024

I have to say. I have set the display so that it is permanently on. It doesn't help with the white screen, as it still draws power

I completely forgot about this nasty fact. Now it makes sense!

So I just had the device running for 3 hours without crashing. Then I restarted it and now I'll let it run until this evening.

It probably won't crash because display sleep is deactivated. I've also set the brightness to the lowest level, but that's probably not the problem. Brightness doesn't work either.

One more question: could you turn on the device, connect through USB and see if a serial port device appears on your computer (under Windows, check the Device Manager)? If that works, can you use a serial port terminal (like Putty) to send some commands and see if you get a response? Please let me know the microcontroller of your device (WCH or Geehy). Thanks.

I have geehy. So under Linux I can't find any device with lsblk, lspci.. I'll have to have a look at Windows later. I use it very rarely.

Under Linux, try lsusb.

With lsusb and also otherwise it shows nothing with Linux. You mean when the GC is running, right?

Overall, the values for the j321 tube seem a little high to me. All the gmc on the website have lower values within a few kilometres of where I live (but you can't see the tube on many of them). E.g.: https://gmcmap.com/historyData.asp?Param_ID=48541894204

With the original firmware, the reading was definitely lower, but I didn't have it running for hours.

My average after 43:45 and time 05:19 today are 0.215. with original firmware it was ~0.16-0.18 average (If I remember correctly)

You also said that there is a 5% chance that it will go above +-50%, but for me this is more the rule with the 'instantaneous' screen. Often ~+-51%-57% is displayed. More rarely+-78 and hardly ever values below+-50%. I have only seen values below +-50% twice so far.

At average, for example, it is just at +-4.9%

@w01fdev
Copy link

w01fdev commented Mar 13, 2024

Sorry to comment again under my last post. But I may have found the problem of the high values and peaks:

I saw in your code that you gave the j321 the same values as the j305. But the j305 comes in 2 different sizes. ~90mm and ~107mm. I suspect that the data for the calculation comes from the 107mm.

On many pages the m4011 is mentioned as being virtually identical to the j321.

Now I have selected the tube. And as you can see in the pictures, the values are now much closer to those of the fnirsi firmware and are also very close to the GMC values near me on the website. You can also see from the pictures that the line at 60 min is similar to that of the fnirsi firmware and no longer makes so many strange peaks in both directions.

The pictures are probably self-explanatory.

IMG_20240313_075020
IMG_20240313_075552
IMG_20240313_075729
IMG_20240313_081044
IMG_20240313_081029
IMG_20240313_081015

@Tig3rch3n
Copy link

Tig3rch3n commented Mar 13, 2024

Tig3rch3n: thanks for the report. Fortunately I had the same problem with my device some days ago, so I should be able to debug it. Probably a new bug. What microcontroller does your device have (WCH or Geehy)?

Maybe it would be a good idea to crowdsource some PCB Pictures to see if there are different PCB Iterations :P
I have two Units, both with a Chip with "Geehy APM32 - F103RBT6" Labled
The PCB is Identical AFAIK
I took a couple of Pictures a few Days ago.

Can you tell me approximately how many hours that was? Mine ran for about ~9 hours without any problems with 2 charges via USB for about 1 hour.

About the Time to getting stuck.
I Flashed it at 9AM and let it run on Battery Power all day until 12PM? 1AM? where I noticed the Problem after I came back Home.
My Display is also set to Always on.

As mentioned, Brightness Controll does not work atm and Sleep only turns the Display White.

If you are Interested, a friend of mine has a Nordic Power Profiler II, I could run a Comparison between the Original Firmware and the last Beta

Tiny Tube Chip
J321 Chip
Tiny Tube Total
J321 Total

@Gissio
Copy link
Owner

Gissio commented Mar 13, 2024

Rad Pro 2.0beta18 was just released!

@Alpha162
Copy link

Here's mine just for reference (If you're looking for more PCB examples):

image

image

@JantarX
Copy link

JantarX commented Mar 13, 2024

Rad Pro 2.0beta18: The display brightness setting and sleep mode are now working, but I have a frozen charging icon after disconnecting from the PC, even after restarting and resetting the device.

@Gissio
Copy link
Owner

Gissio commented Mar 13, 2024

w01fdev:

  • Can you see now the selection bar of the menus with the Night theme?

JantarX:

  • One more bug to fix.

To all:

  • I added the HV profile settings of the original firmware V0.3 and V1.5 (Factory default 1) and V1.6-2 (Factory default 2). Do you see any differences between these?

@w01fdev
Copy link

w01fdev commented Mar 14, 2024

w01fdev:

* Can you see now the selection bar of the menus with the Night theme?

Yes, that has improved considerably. Only in brightness low would it be good if it were a little bit brighter

JantarX:

* One more bug to fix.

The battery icon is really annoying, because you no longer know how full or empty the device is.

To all:

* I added the HV profile settings of the original firmware V0.3 and V1.5 (Factory default 1) and V1.6-2 (Factory default 2). Do you see any differences between these?

I can test it, but preferably only as soon as the battery indicator is working again. By the way, the other profiles are now gone. There are now only factory default 1, 2 and custom

I'm not quite sure if that's the reason. Yesterday at about 19:00 I had loaded for about 1 hour. With a standard USB charge and 1100 mAh battery, that should mean at least 50% battery.

Display set to switch off after 30 seconds. Brightness set to low. Nevertheless, the device was empty around 0130 hrs. I think I've read that the fnirsi with standard firmware lasts approx. 11 hours (but I haven't checked this myself yet). Then it should have lasted until 0130 with the display off.

I have a few general questions. Downloaded quite a lot yesterday for developing the boards. It would be cool if you could give me a brief answer. I have to familiarise myself with it first and that will take some time:

  1. does the processor automatically go into the smallest mode that is best for power management?

  2. you have stated in the firmware that the processor runs at 72 MHz. Is this a rank that goes up to 96 MHz? Because the apm can run at 96 MHz.

  3. you are currently only using the stm32 things in the development but not the additional ones that are available on the apm32f103 such as FPU?

  4. can you tell me a software for Linux in which you can develop the stm32 well? Don't know only python, html, CSS and at that time codeblocks and a little c.

  5. As long as the battery indicator does not go off completely, does this affect the charging process? I mean, does the battery stop charging when it is full, or does it keep going?

As soon as the icon is fixed I will test it thoroughly (HV profiles, different modes, display on/off, brightness and then post the values here).

A function to switch the vibration on and off might be useful at some point. In addition, perhaps icons so that you can see what is active and what is not.

In general, wouldn't it be better to slowly create a separate issue for each problem, or do we want to keep it that way? It's just not quite as clear when it gets into the finer details and becomes more complex.

@Gissio
Copy link
Owner

Gissio commented Mar 14, 2024

I have a few general questions. Downloaded quite a lot yesterday for developing the boards. It would be cool if you could give me a brief answer. I have to familiarise myself with it first and that will take some time:

  1. does the processor automatically go into the smallest mode that is best for power management?

There is no "smallest mode", just ways of using power more intelligently.

  1. you have stated in the firmware that the processor runs at 72 MHz. Is this a rank that goes up to 96 MHz? Because the apm can run at 96 MHz.

USB requires 72 MHz. And it is not easy to change CPU speed on the fly.

  1. you are currently only using the stm32 things in the development but not the additional ones that are available on the apm32f103 such as FPU?

IMHO, cost-benefit doesn't cut it.

  1. can you tell me a software for Linux in which you can develop the stm32 well? Don't know only python, html, CSS and at that time codeblocks and a little c.

Read the developer's manual.

  1. As long as the battery indicator does not go off completely, does this affect the charging process? I mean, does the battery stop charging when it is full, or does it keep going?

The charge controller stops charging the device once it reaches a target voltage. Don't worry.

As soon as the icon is fixed I will test it thoroughly (HV profiles, different modes, display on/off, brightness and then post the values here).

Beta19 goes back to the previous behaviour. It turns out that the GC-01 hardware reports "charging" when USB is not plugged in, so I decided to remove the indicator.

In general, wouldn't it be better to slowly create a separate issue for each problem, or do we want to keep it that way? It's just not quite as clear when it gets into the finer details and becomes more complex.

Agreed. Please post each new issue as a separate thread.

@Gissio Gissio closed this as completed Mar 14, 2024
@Gissio Gissio added the enhancement New feature or request label Mar 14, 2024
@Gissio
Copy link
Owner

Gissio commented Apr 7, 2024

I have one more request for everyone in this thread.

In order to help people who are having trouble installing Rad Pro on GC-01's with a CH32F103R8T6 processor (WCH), I need volunteers who own a GC-01 with a WCH processor and do the following:

  • Install this special firmware on your device starting it in firmware update mode (this one is different from the one I published some weeks ago):

fnirsi-gc01-bootloader-dumper.zip

  • Restart your GC-01.
  • A USB serial port device should appear on your computer (you might need to unplug/replug the device). Under Windows, open the Device Manager, go to the "Ports (COM & LPT) section and take note of the COM port. Next, download PuTTY (https://the.earth.li/~sgtatham/putty/latest/w64/putty.exe), start it, click on "Serial" and type the COM port in "Serial line". A terminal window should show up. Press ENTER and the memory dump should start. Next, go to the window menu (upper left), select "Copy All to Clipboard" and paste in a .txt file. Attach the file to a message in this thread.
  • Reload the original firmware or Rad Pro.

If somebody else already uploaded the dump, it would be interesting that you repeated the process, just in case there are different versions of the bootloader.

@Gissio Gissio reopened this Apr 7, 2024
@Gissio Gissio changed the title FNIRSI GC-01: Logging & debugging FNIRSI GC-01: Debugging Apr 7, 2024
@Gissio Gissio added bug Something isn't working and removed enhancement New feature or request labels Apr 7, 2024
@dc1rdb
Copy link

dc1rdb commented Apr 8, 2024

May I extend this request to bootloaders from Geehy APM32 - F103RBT6 devices, too?
During experimenting with ST-Link, I might have killed my original bootloader and subsequently loaded https://github.com/Gissio/radpro/blob/main/docs/devices/FNIRSI%20GC-01/firmware/FNIRSI%20GC-01%20Bootloader.bin
via ST-Link, but it is working erroneously. So I assume there might be different versions out there.
Thanks in advance!

@Gissio Gissio closed this as completed Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

12 participants