petabyt / fudge

Unofficial app to pair with Fujifilm cameras
https://danielc.dev/fudge/
GNU General Public License v2.0
91 stars 4 forks source link

Unable to connect to a camera when LTE is on #14

Closed stsdc closed 6 months ago

stsdc commented 6 months ago

I know that Fudge is using ConnectivityManager.NetworkCallback as was said here, however for my case it doesn't work. The camera just timeouts and says try again. Then I disable LTE and only after that Fudge connects instantaneously after pressing Connect to WiFi button.

Pixel 5 Android 14 Fudge 0.1.5

petabyt commented 6 months ago

I cannot reproduce on Pixel 6 or on LG K20. And several people have tested this app and I don't remember seeing this problem.

Just to be clear, you are getting 'No Device Found' and not 'WiFi is not connected'?

stsdc commented 6 months ago

Just NOT FOUND

PXL_20240517_191936415.RAW-01.COVER.jpg

petabyt commented 6 months ago

That's what happens when the camera times out after a few minutes, what error do you get on your phone?

stsdc commented 6 months ago

Just stuck on Connecting...

stsdc commented 6 months ago

Some logs. Waited until the camera switched back to shooting mode.

2024-05-17 22:13:31.210 23006-23094 camlib                  dev.danielc.fujiapp                  E  Lost network
2024-05-17 22:13:31.625 23006-23094 camlib                  dev.danielc.fujiapp                  D  Wifi network is available
2024-05-17 22:14:11.716 23006-23276 fudge                   dev.danielc.fujiapp                  D  Connecting...
2024-05-17 22:14:11.721 23006-23276 danielc.fujiapp         dev.danielc.fujiapp                  W  Attempt to remove non-JNI local reference
2024-05-17 22:14:11.721 23006-23276 fudge                   dev.danielc.fujiapp                  D  Trying emulator IP..
2024-05-17 22:14:11.723 23006-23276 danielc.fujiapp         dev.danielc.fujiapp                  W  Attempt to remove non-JNI local reference
2024-05-17 22:14:11.723 23006-23276 fudge                   dev.danielc.fujiapp                  D  WiFi is not connected. (yet)
2024-05-17 22:14:50.297 23006-23345 fudge                   dev.danielc.fujiapp                  D  Connecting...
2024-05-17 22:14:50.300 23006-23345 danielc.fujiapp         dev.danielc.fujiapp                  W  Attempt to remove non-JNI local reference
2024-05-17 22:14:50.300 23006-23345 fudge                   dev.danielc.fujiapp                  D  Trying emulator IP..
2024-05-17 22:14:50.302 23006-23345 danielc.fujiapp         dev.danielc.fujiapp                  W  Attempt to remove non-JNI local reference
2024-05-17 22:14:50.302 23006-23345 fudge                   dev.danielc.fujiapp                  D  WiFi is not connected. (yet)
2024-05-17 22:16:15.312 23006-23400 fudge                   dev.danielc.fujiapp                  D  Connecting...
2024-05-17 22:16:15.315 23006-23400 danielc.fujiapp         dev.danielc.fujiapp                  W  Attempt to remove non-JNI local reference
2024-05-17 22:16:15.315 23006-23400 fudge                   dev.danielc.fujiapp                  D  Trying emulator IP..
2024-05-17 22:16:15.317 23006-23400 danielc.fujiapp         dev.danielc.fujiapp                  W  Attempt to remove non-JNI local reference
2024-05-17 22:16:15.317 23006-23400 fudge                   dev.danielc.fujiapp                  D  WiFi is not connected. (yet)
2024-05-17 22:20:40.207 23006-23094 camlib                  dev.danielc.fujiapp                  E  Lost network
2024-05-17 22:20:44.693 23006-23094 camlib                  dev.danielc.fujiapp                  D  Wifi network is available
petabyt commented 6 months ago

From these logs it's getting stuck on WiFi is not connected. (yet), not Connecting...

petabyt commented 6 months ago

From these logs it's getting stuck on WiFi is not connected. (yet), not Connecting...

In this case it would suggest your phone is refusing to connect to the FUJI_ access point.

stsdc commented 6 months ago

Apparently I didn't pay an attention to the notification that said "Do you want to use an AP without internet access" :man_facepalming: