tuntorius / mightier_amp

An alternative app for controlling NUX Mighty amps.
MIT License
187 stars 18 forks source link

Unable to connect to NUX MP-2 #75

Closed itm1960 closed 10 months ago

itm1960 commented 1 year ago

I've installed Mightier Amp on a Moto G 5G Plus. I can see my NUX MP-2 when I click the Scan button, but when I try to connect to it I always get a "Connection Failed" error. The stock MightyAmp app connects to it without any problems. Any ideas??

tuntorius commented 10 months ago

Sorry for answering so late. If you still have that problem, can you check if there are any errors in the app log? You can do it by going to the settings tab and tapping 7 times on the app version. Then you can scroll further and you'll find some new options including a debug console. Now try to connect your amp and then open the debug console. You can post the log here and that will help me find what the problem is.

itm1960 commented 10 months ago

Hi, Thanks for your reply. Please find attached the debug log, following my latest attempt to connect... Dart error: RangeError (length): Invalid value: Not in inclusive range 0..12: 13#0 Preset.setupPresetFromNuxData (package:mighty_plug_manager/bluetooth/devices/presets/Preset.dart)

1 NuxDevice.onDataReceived

(package:mighty_plug_manager/bluetooth/devices/NuxDevice.dart:250)

2 NuxDeviceControl._onDataReceive

(package:mighty_plug_manager/bluetooth/NuxDeviceControl.dart:241)

3 _rootRunUnary (dart:async/zone.dart:1362)

4 _CustomZone.runUnary (dart:async/zone.dart:1265)

5 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

6 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

7 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)

8 _SyncStreamControllerDispatch._sendData

(dart:async/stream_controller.dart:733)

9 _StreamController._add (dart:async/stream_controller.dart:607)

10 _StreamController.add (dart:async/stream_controller.dart:554)

11 _rootRunUnary (dart:async/zone.dart:1362)

12 _CustomZone.runUnary (dart:async/zone.dart:1265)

13 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

14 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

15 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)

16 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123)

17 _MapStream._handleData (dart:async/stream_pipe.dart:218)

18 _ForwardingStreamSubscription._handleData

(dart:async/stream_pipe.dart:153)

19 _rootRunUnary (dart:async/zone.dart:1362)

20 _CustomZone.runUnary (dart:async/zone.dart:1265)

21 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

22 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

23 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)

24 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123)

25 _MapStream._handleData (dart:async/stream_pipe.dart:218)

26 _ForwardingStreamSubscription._handleData

(dart:async/stream_pipe.dart:153)

27 _rootRunUnary (dart:async/zone.dart:1362)

28 _CustomZone.runUnary (dart:async/zone.dart:1265)

29 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

30 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

31 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)

32 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123)

33 _WhereStream._handleData (dart:async/stream_pipe.dart:195)

34 _ForwardingStreamSubscription._handleData

(dart:async/stream_pipe.dart:153)

35 _rootRunUnary (dart:async/zone.dart:1362)

36 _CustomZone.runUnary (dart:async/zone.dart:1265)

37 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

38 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

39 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)

40 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123)

41 _MapStream._handleData (dart:async/stream_pipe.dart:218)

42 _ForwardingStreamSubscription._handleData

(dart:async/stream_pipe.dart:153)

43 _rootRunUnary (dart:async/zone.dart:1362)

44 _CustomZone.runUnary (dart:async/zone.dart:1265)

45 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

46 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

47 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)

48 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123)

49 _WhereStream._handleData (dart:async/stream_pipe.dart:195)

50 _ForwardingStreamSubscription._handleData

(dart:async/stream_pipe.dart:153)

51 _rootRunUnary (dart:async/zone.dart:1362)

52 _CustomZone.runUnary (dart:async/zone.dart:1265)

53 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

54 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

55 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)

56 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123)

57 _MapStream._handleData (dart:async/stream_pipe.dart:218)

58 _ForwardingStreamSubscription._handleData

(dart:async/stream_pipe.dart:153)

59 _rootRunUnary (dart:async/zone.dart:1362)

60 _CustomZone.runUnary (dart:async/zone.dart:1265)

61 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

62 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

63 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)

64 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123)

65 _MapStream._handleData (dart:async/stream_pipe.dart:218)

66 _ForwardingStreamSubscription._handleData

(dart:async/stream_pipe.dart:153)

67 _rootRunUnary (dart:async/zone.dart:1362)

68 _CustomZone.runUnary (dart:async/zone.dart:1265)

69 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

70 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

71 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)

72 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123)

73 _WhereStream._handleData (dart:async/stream_pipe.dart:195)

74 _ForwardingStreamSubscription._handleData

(dart:async/stream_pipe.dart:153)

75 _rootRunUnary (dart:async/zone.dart:1370)

76 _CustomZone.runUnary (dart:async/zone.dart:1265)

77 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

78 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

79 _DelayedData.perform (dart:async/stream_impl.dart:591)

80 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:706)

81 _PendingEvents.schedule.

(dart:async/stream_impl.dart:663)

82 _rootRun (dart:async/zone.dart:1346)

83 _CustomZone.run (dart:async/zone.dart:1258)

84 _CustomZone.runGuarded (dart:async/zone.dart:1162)

85 _CustomZone.bindCallbackGuarded.

(dart:async/zone.dart:1202)

86 _rootRun (dart:async/zone.dart:1354)

87 _CustomZone.run (dart:async/zone.dart:1258)

88 _CustomZone.runGuarded (dart:async/zone.dart:1162)

89 _CustomZone.bindCallbackGuarded.

(dart:async/zone.dart:1202)

90 _microtaskLoop (dart:async/schedule_microtask.dart:40)

91 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49)

Dart error: RangeError (length): Invalid value: Not in inclusive range 0..12: 13#0 Preset.setupPresetFromNuxData (package:mighty_plug_manager/bluetooth/devices/presets/Preset.dart)

1 NuxDevice.onDataReceived

(package:mighty_plug_manager/bluetooth/devices/NuxDevice.dart:250)

2 NuxDeviceControl._onDataReceive

(package:mighty_plug_manager/bluetooth/NuxDeviceControl.dart:241)

3 _rootRunUnary (dart:async/zone.dart:1362)

4 _CustomZone.runUnary (dart:async/zone.dart:1265)

5 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

6 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

7 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)

8 _SyncStreamControllerDispatch._sendData

(dart:async/stream_controller.dart:733)

9 _StreamController._add (dart:async/stream_controller.dart:607)

10 _StreamController.add (dart:async/stream_controller.dart:554)

11 _rootRunUnary (dart:async/zone.dart:1362)

12 _CustomZone.runUnary (dart:async/zone.dart:1265)

13 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

14 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

15 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)

16 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123)

17 _MapStream._handleData (dart:async/stream_pipe.dart:218)

18 _ForwardingStreamSubscription._handleData

(dart:async/stream_pipe.dart:153)

19 _rootRunUnary (dart:async/zone.dart:1362)

20 _CustomZone.runUnary (dart:async/zone.dart:1265)

21 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

22 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

23 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)

24 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123)

25 _MapStream._handleData (dart:async/stream_pipe.dart:218)

26 _ForwardingStreamSubscription._handleData

(dart:async/stream_pipe.dart:153)

27 _rootRunUnary (dart:async/zone.dart:1362)

28 _CustomZone.runUnary (dart:async/zone.dart:1265)

29 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

30 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

31 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)

32 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123)

33 _WhereStream._handleData (dart:async/stream_pipe.dart:195)

34 _ForwardingStreamSubscription._handleData

(dart:async/stream_pipe.dart:153)

35 _rootRunUnary (dart:async/zone.dart:1362)

36 _CustomZone.runUnary (dart:async/zone.dart:1265)

37 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

38 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

39 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)

40 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123)

41 _MapStream._handleData (dart:async/stream_pipe.dart:218)

42 _ForwardingStreamSubscription._handleData

(dart:async/stream_pipe.dart:153)

43 _rootRunUnary (dart:async/zone.dart:1362)

44 _CustomZone.runUnary (dart:async/zone.dart:1265)

45 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

46 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

47 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)

48 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123)

49 _WhereStream._handleData (dart:async/stream_pipe.dart:195)

50 _ForwardingStreamSubscription._handleData

(dart:async/stream_pipe.dart:153)

51 _rootRunUnary (dart:async/zone.dart:1362)

52 _CustomZone.runUnary (dart:async/zone.dart:1265)

53 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

54 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

55 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)

56 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123)

57 _MapStream._handleData (dart:async/stream_pipe.dart:218)

58 _ForwardingStreamSubscription._handleData

(dart:async/stream_pipe.dart:153)

59 _rootRunUnary (dart:async/zone.dart:1362)

60 _CustomZone.runUnary (dart:async/zone.dart:1265)

61 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

62 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

63 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)

64 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123)

65 _MapStream._handleData (dart:async/stream_pipe.dart:218)

66 _ForwardingStreamSubscription._handleData

(dart:async/stream_pipe.dart:153)

67 _rootRunUnary (dart:async/zone.dart:1362)

68 _CustomZone.runUnary (dart:async/zone.dart:1265)

69 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

70 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

71 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)

72 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123)

73 _WhereStream._handleData (dart:async/stream_pipe.dart:195)

74 _ForwardingStreamSubscription._handleData

(dart:async/stream_pipe.dart:153)

75 _rootRunUnary (dart:async/zone.dart:1370)

76 _CustomZone.runUnary (dart:async/zone.dart:1265)

77 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)

78 _BufferingStreamSubscription._sendData

(dart:async/stream_impl.dart:341)

79 _DelayedData.perform (dart:async/stream_impl.dart:591)

80 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:706)

81 _PendingEvents.schedule.

(dart:async/stream_impl.dart:663)

82 _rootRun (dart:async/zone.dart:1346)

83 _CustomZone.run (dart:async/zone.dart:1258)

84 _CustomZone.runGuarded (dart:async/zone.dart:1162)

85 _CustomZone.bindCallbackGuarded.

(dart:async/zone.dart:1202)

86 _rootRun (dart:async/zone.dart:1354)

87 _CustomZone.run (dart:async/zone.dart:1258)

88 _CustomZone.runGuarded (dart:async/zone.dart:1162)

89 _CustomZone.bindCallbackGuarded.

(dart:async/zone.dart:1202)

90 _microtaskLoop (dart:async/schedule_microtask.dart:40)

91 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49)

On Mon, 20 Nov 2023, 08:58 tuntorius, @.***> wrote:

Sorry for answering so late. If you still have that problem, can you check if there are any errors in the app log? You can do it by going to the settings tab and tapping 7 times on the app version. Then you can scroll further and you'll find some new options including a debug console. Now try to connect your amp and then open the debug console. You can post the log here and that will help me find what the problem is.

— Reply to this email directly, view it on GitHub https://github.com/tuntorius/mightier_amp/issues/75#issuecomment-1818488851, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGSHDUBFJJGTJ4M563QGACLYFMLSBAVCNFSM6AAAAAA5OQBUCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJYGQ4DQOBVGE . You are receiving this because you authored the thread.Message ID: @.***>

tuntorius commented 10 months ago

How old is the version of Mightier Amp that you use? This log is from a version that does not support MP-2 firmware 2.x. I added that support more than 2 years ago.

itm1960 commented 10 months ago

Ah OK I was running 0.8.2. I've just done a fresh install from the Play Store and it has resolved the issue. Many thanks!

On Mon, 20 Nov 2023 at 12:10, tuntorius @.***> wrote:

How old is the version of Mightier Amp that you use? This log is from a version that does not support MP-2 firmware 2.x. I added that support more than 2 years ago.

— Reply to this email directly, view it on GitHub https://github.com/tuntorius/mightier_amp/issues/75#issuecomment-1818948608, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGSHDUHH2G4QSJ3RDBWMRS3YFNCENAVCNFSM6AAAAAA5OQBUCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJYHE2DQNRQHA . You are receiving this because you authored the thread.Message ID: @.***>

tulipanaccio commented 5 months ago

Hello, I have a similar issue, but with a Mighty Plug Pro and with version of Mightier Amp 1.0.12 on a Motorola Edge 20 Lite. Interesting the App installed through Google Store doesn't request me authorization for GPS position. I'm attaching the log of the failed connection. Thanks in advance for the support. mightier_amp_log.txt