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

Station problem causing disabling BT Button. #524

Open
ve2cfb opened this issue Oct 15, 2024 · 13 comments
Open

Station problem causing disabling BT Button. #524

ve2cfb opened this issue Oct 15, 2024 · 13 comments

Comments

@ve2cfb
Copy link

ve2cfb commented Oct 15, 2024

Hello Wolle,
Since Version 3.5e - Oct 10/2024 i cannot get in the BT. Previous version was ok.
Here is a picture of the failling menu + couple of files. The BT button is Violet (at least on my Display) and cannot access the next BT menu.
If i copy the Content_on_SD_Card.zip from your site, it works ok.
Did a format on a 32G and a 256G but still a problem.
Did a Erase Flash and Upload but still having problem.

Today, i found it.
One Station is causing the problem.
"Radio Deluxe Easy"
Have a look in settings.json you will see the problem for station 5.
By deleting "settings.json and deleting station No 5 (Radio Deluxe Easy) in stations.json

But now its failling on station 5 (Radio SRF Musikwelle)
Looking at settings.json for sation5, its missing the (.3mu).

settings.json
stations.json
BT_Problem

Thanks for your time...

@valera39
Copy link

valera39 commented Oct 15, 2024

Confirmed, bluetooth is a problem.
00:00:00 BT-Emitter: KCX_BT_Emitter not found
but the module is connected correctly, the LED is blinking red.
Annotation 2024-10-16 003012
When you click the bluetooth icon on the web page nothing happens, when you click the icon on the display, its color changes but also nothing happens

@ve2cfb
Copy link
Author

ve2cfb commented Oct 16, 2024

Hello Valera,
Take a look "lastconnectedhost" for "station 5" in settings.json
what is all that garbage...?
even if i delete settings.json and "erase flash and upload" , it will work as long that you do not power off.

but if i power off the radio for 10 seconds, the problem is back.

If i delete station 5 it will happen again with another station 5.
By the way just to make sure its not hardware, i buit another radio with a different BT module and i am having the same problem.

@schreibfaul1
Copy link
Owner

Hi Pierre,
I don't know what's causing the problem yet, but it's not the URL of "DELUXE MUSIC"
image

https://audiostreams.deluxemusic.tv/easy/mp3-128/audiostreams.deluxemusic.tv/
will be forwarded to
https://regiocast.streamabc.net/regc-deluxeeasy7122651-mp3-128-6100697?sABC=670so613%230%232p6q89s548q982rn9067ps93ro5r4042%23nhqvbfgernzf.qryhkrzhfvp.gi&aw_0_1st.playerid=audiostreams.deluxemusic.tv&amsparams=playerid:audiostreams.deluxemusic.tv;skey:1729082899

that's all right so far
If I understand correctly, the BT module is not recognised, I'll have a look at that soon.

@ve2cfb
Copy link
Author

ve2cfb commented Oct 16, 2024

Hello Wolle,
Yes i agree with you comment.
but here how the problem happen.

Here is the sequence you need to do.
you do not need Web interface.

  • From PC delete settings.json on the SD card
  • erase flash and upload
  • Power off the Radio
  • insert sdcard in Radio
  • Power on Radio
  • At this point, everything work ok.
  • Accessing any stations will work.
  • Able to access BT 1st Menu BT button
  • Next, power off the Radio.
  • wait 5-10 seconds before Power on. if < 2 seconds, problem will not happen.
  • select any station from the list except station 5
  • you should be able to access the BT menu from the radio, not from the web.(the web will give you different result)
  • select station 5 from the list.
  • try to access the BT menu. It should be a grayblue button.
  • Will not be able to access the 2nd BT menu.
    =======================================================

@schreibfaul1
Copy link
Owner

I have now found the error. To recognise whether there is a BT module, "AT+\n" is sent and an "OK+\n" is expected. "\0OK+\n" now comes back. that is very strange. Is this due to the new Arduino version? I have no idea. Now the \0 is ignored and everything works again. Please use "Full Clean" to fetch and recompile the libraries.

@ve2cfb
Copy link
Author

ve2cfb commented Oct 16, 2024

Wolle,
Thanks very much. I will do a full clean.

@ve2cfb
Copy link
Author

ve2cfb commented Oct 19, 2024

Hello again Wolle,
Same problem as before.
did a full clean and a erase flash and upload.
By the way, after a full clean, i get the following error when trying to do a erase flash and upload.
Error Platformio.pdf
This only happen one time.

Back to my problem:
Let me summarize the problem on a very simple test..
By using your latest version of stations.json and settings.json
everything works OK.
but if i insert the following station in stations.json:
["*","D","Radio Deluxe Easy","https://audiostreams.deluxemusic.tv/easy/mp3-128/audiostreams.deluxemusic.tv/"]
I do another erase flash and upload.
dont forget to do a POWER OFF.
and the problem is back.

if i remove that station from the stations.json, no more problem.

What am i doing wrong...?

Many thanks for your time.

@schreibfaul1
Copy link
Owner

Hallo,

Same problem as before.
did a full clean and a erase flash and upload.
By the way, after a full clean, i get the following error when trying to do a erase flash and upload.
Error Platformio.pdf
This only happen one time.

this happens when CMAKE is running before PIO has finished updating. I sometimes have this too, when the compilation is started a second time it works.

I have not yet been able to reproduce the actual problem with "RadioDeluxe Easy".
You do not need to edit the stations.json. Simply search for it and apply it using the two buttons.
image
The station always appears in the last column of the table.
image
And then you can cut the line and paste it into the desired position. The stations.json will then be changed automatically.

@ve2cfb
Copy link
Author

ve2cfb commented Oct 21, 2024

Hello Wolle,
Still a problem(only once and could not reproduce it because of the following problem) and another one with the Web Browser.

When trying your procedure to Access by COUNTRY and GERMANY, no list appear.
but if i choose any other country, no problem.
Why a problem with Germany...?
Also when trying to access the home web page, It takes a lot of time to get the page and on the radio, the
LEVEL METER freeze up until web page is available.
I disable all security, anti virus and so on.
Did a complete re install of vscode and platformio but still problems.

Use my neighbor Router and go rid of the Web Problem.
Now Germany works ok and did a search on deluxe and did your procedure and got the same error for the disabled BT button.

Web Interface

@ve2cfb
Copy link
Author

ve2cfb commented Nov 4, 2024

Hello Wolle,
Many thanks for the BT fix on Version 3.5t - Nov 04/2024
So far i was able to add stations without a problem so far. Did different test and also very good.
So far the germany problem is also running good.

This file could of interest... Its the voice time in french that i made last year.
voice_time.zip

@schreibfaul1
Copy link
Owner

Hello Pierre,
you've probably sent me the wrong zip.

On the page https://ttsmp3.com/ you can create mp3s
image

@ve2cfb
Copy link
Author

ve2cfb commented Nov 4, 2024

Sorry, my mistake.

voice_time_Fr.zip

@schreibfaul1
Copy link
Owner

I have implemented it. This makes it easy to add other European languages later.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants