smagicld / xiaoxiangBMS

iOS app for Xiaoxang BMS
85 stars 9 forks source link

Waiting for Data #148

Closed Solavox closed 3 years ago

Solavox commented 3 years ago

Using iOS version of app 1.2.22 build 5391.

I used the app to save a BMS config of BMS A.

I then connected to BMS B, opened the saved config of BMS A and wrote it to BMS B. I got an error writing on the BMS name field.

I disconnected and then tried to reconnect to BMS B. It connects and has the ‘waiting for data’ statement with no option to do anything except go back to the BMS connection screen.

The battery is still charging and discharging.

I haven’t removed the Bluetooth module or disconnected the BMS at this stage.

Edit: I had been connecting and using the Bt dongle via your app for a while.

smagicld commented 3 years ago

Need some more details. please send me the debug logs:

  1. Go to about screen and tap on the version / build number once:

  2. it should be confirmed:

  3. go to main screen. try to connect to your BMS. wait 2 minutes (to collect some data)

  4. go back to about screen and tap on version / build number

  5. send me the logs over email

thanks!

Am 03.06.2021 um 23:43 schrieb Solavox @.***>:

Using iOS version of app 1.2.22 build 5391.

I used the app to save a BMS config of BMS A.

I then connected to BMS B, opened the saved config of BMS A and wrote it to BMS B. I got an error writing on the BMS name field.

I disconnected and then tried to reconnect to BMS B. It connects and has the ‘waiting for data’ statement with no option to do anything except go back to the BMS connection screen.

The battery is still charging and discharging.

I haven’t removed the Bluetooth module or disconnected the BMS at this stage.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/smagicld/xiaoxiangBMS/issues/148, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHW32ZGAS6234WVO6VZNE23TQ7ZRHANCNFSM46BSHYPA.

Solavox commented 3 years ago

Logs sent just now - thanks!

smagicld commented 3 years ago

you have not executed step 3. I do not see any BMS data.

after enabling logging try to connect to bms.

Am 04.06.2021 um 00:37 schrieb Solavox @.***>:

Logs sent just now - thanks!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/smagicld/xiaoxiangBMS/issues/148#issuecomment-854230722, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHW32ZFMB5TVNAEEPILVS43TQ774LANCNFSM46BSHYPA.

Solavox commented 3 years ago

I’ll try again - hold on

smagicld commented 3 years ago

going now to bed (1:00 am).. will take a look 2morrow

Am 04.06.2021 um 00:50 schrieb Solavox @.***>:

I’ll try again - hold on

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/smagicld/xiaoxiangBMS/issues/148#issuecomment-854236173, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHW32ZGYORQPX7BMK5GZVXDTRABMRANCNFSM46BSHYPA.

Solavox commented 3 years ago

Ok - sleep well. I’ve rerun it - file size is coming out the same.

attached are some screenshots (I’m connecting to U1timatetron).

AA5FEED1-228C-4EB7-B897-AD4122508F57 2B274D60-E3CD-457C-8835-8CD6F4EBCBA5

smagicld commented 3 years ago

That’s wired…

In the reported Log from you I do not find any Bluetooth activity, just one line: [ℹ️] [2021-06-04 10:51:52.9190] submitRecordsButton(_:)[110]: Logging started by user

Looks like you would start debug and then stop it without trying to connect into bms. Can you do some screen recording (from enabling debug, connecting to bms till debug off).

But before you do this: have you tried to reinstall the app? And: the BMS you’re trying to connect: are this Xiaoxiang BMS? (which model?)

(to compare, my test from today) [ℹ️] [2021-06-04 07:27:57.5840] submitRecordsButton(:)[110]: Logging started by user [💬] [2021-06-04 07:28:02.4040] peripheral(:didDiscoverServices:)[1165]: didDiscoverServices [uuid: 19A6F200-638F-2602-E794-280A3CD7FDF1]: <CBService: 0x280606cc0, isPrimary = YES, UUID = FF00> [💬] [2021-06-04 07:28:02.4050] peripheral(:didDiscoverServices:)[1165]: didDiscoverServices [uuid: 19A6F200-638F-2602-E794-280A3CD7FDF1]: <CBService: 0x280604180, isPrimary = YES, UUID = 1912> [💬] [2021-06-04 07:28:02.4640] peripheral(:didDiscoverCharacteristicsFor:error:)[1186]: didDiscoverCharacteristicsFor [uuid: 19A6F200-638F-2602-E794-280A3CD7FDF1, service: FF00]: <CBCharacteristic: 0x28377b0c0, UUID = FF01, properties = 0x12, value = {length = 15, bytes = 0xdd0400080d660d790d760d50fe1f77}, notifying = NO> [💬] [2021-06-04 07:28:02.4650] peripheral(:didDiscoverCharacteristicsFor:error:)[1198]: Rx and notify char.: FF01 [💬] [2021-06-04 07:28:02.4650] peripheral(:didDiscoverCharacteristicsFor:error:)[1204]: Rx char.: FF01 [💬] [2021-06-04 07:28:02.4660] peripheral(_:didDiscoverCharacteristicsFor:error:)[1186]: didDiscoverCharacteristicsFor [uuid: 19A6F200-638F-2602-E794-280A3CD7FDF1, service: FF00]: <CBCharacteristic: 0x28377aa00, UUID = FF02, properties = 0xE, value = (null), notifying = NO> 2021-06-04 08:49:52.700413+0200 XiaoxiangBMS[74074:845279] [] nw_protocol_get_quic_image_blockinvoke dlopen libquic failed [💬] [2021-06-04 07:28:02.4670] peripheral(:didDiscoverCharacteristicsFor:error:)[1180]: uuid 1912 not found in xiaoxangServiceUUIDV1/2 [ℹ️] [2021-06-04 07:28:02.6280] peripheral(:didUpdateValueFor:error:)[1108]: received bytes from BMS: DD 04 00 08 0D 66 0D 79 0D 76 0D 50 FE 1F 77 00 00 00 00 00 [ℹ️] [2021-06-04 07:28:02.6370] decodeSingleBinaryAndUpdateObject(binaryData:)[235]: --> decodeSingleBinaryAndUpdateObject DECODED .CELLS_VOLTAGE

smagicld commented 3 years ago

no user feedback. closing.