opensourcebeehives / BuzzBoard_firmware

Other
13 stars 7 forks source link

Audio records not being sent #1

Open kylix34 opened 5 years ago

kylix34 commented 5 years ago

I built a BuzzBoard but it doesn't seem to manage sending the audio records. This is the serial monitor output: `Microsoft Windows [Versione 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Tutti i diritti riservati.

C:\Users\Kylix>particle serial monitor Opening serial monitor for com port: "COM17" Serial monitor opened successfully: SHT31D Serial #67741940 Connected to BQ27441! MMA xlerometer init ----- free memory: 45232 Setup COMPLETE State: 1 ----- free memory: 45232 update params... SHT31: T=24.39C, RH=48.95% update params... SHT31: T=24.43C, RH=48.98% good: 0 total: 0 RSSI: 2, NG/OK: 0/0, wifi_rat: 1.00, A_NG/OK: 0/0, aud_rat: 1.00 State of Charge/Health: 100, 90 chg: 3, mA: 0 ,mW: 0 SHT30: temp (C): 24.43RH (%): 48 State: 2 ----- free memory: 41072 State: 2 ----- free memory: 40800 State: 2 ----- free memory: 40800 State: 2 ----- free memory: 40800 State: 2 ----- free memory: 39344 State: 2 ----- free memory: 39192 publishLocation scanData={"w":{"a":[{"m":"e8:94:f6:d4:37:dd","s":-74,"c":11},{"m":"74:ea:3a:e0:8 1:f0","s":-74,"c":4}]}} good: 0 total: 0 RSSI: -72, NG/OK: 0/0, wifi_rat: 1.00, A_NG/OK: 0/0, aud_rat: 1.00 publish update params... SHT31: T=24.32C, RH=48.89% State of Charge/Health: 100, 90 chg: 3, mA: 0 ,mW: 0 State: 3 ----- free memory: 40456 xlrometer disturbance~! stream starting ----- free memory: 40456 ----- free memory: 40456 size: 96 size 0: 1024 size 1: 1024 size 2: 1024 size 3: 1024 size 4: 1024 size 5: 1024 size 6: 1024 size 7: 1024 size 8: 1024 size 9: 1024 size 10: 1024 size 11: 1024 size 12: 1024 size 13: 1024 size 14: 1024 size 15: 1024 size 16: 1024 size 17: 1024 size 18: 1024 size 19: 1024 size 20: 1024 size 21: 1024 size 22: 1024 size 23: 1024 ----- free memory: 15584 sizeof samplez: 4, 4 State: 6 ----- free memory: 15584 xlrometer disturbance~!

aud_/send_select: 1 / 0, millis(14551) error writing -1 row: 0 ----- free memory: 16616 row: 1 ----- free memory: 17648 row: 2 ----- free memory: 18680 row: 3 ----- free memory: 19712 row: 4 ----- free memory: 20744 row: 5 ----- free memory: 21776 row: 6 ----- free memory: 22808 row: 7 ----- free memory: 23840 row: 8 ----- free memory: 24872 row: 9 ----- free memory: 25904 row: 10 ----- free memory: 26936 row: 11 ----- free memory: 27968 row: 12 ----- free memory: 29000 row: 13 ----- free memory: 30032 row: 14 ----- free memory: 31064 row: 15 ----- free memory: 32096 row: 16 ----- free memory: 33128 row: 17 ----- free memory: 34160 row: 18 ----- free memory: 35192 row: 19 ----- free memory: 36224 row: 20 ----- free memory: 37256 row: 21 ----- free memory: 38288 row: 22 ----- free memory: 39320 row: 23 ----- free memory: 40352 aws stopping testnum entries ; good/fails/overflows (x16) // total packets: 0 ; 0/0/0 // 1 OBC send State: 8 ----- free memory: 40456 Go to sleep... zzz `

kylix34 commented 5 years ago

Practically, when trying to send the audio, it throws this error: error writing -1 (line 783 in main_beta_comp.cpp)

mrfr33zer commented 5 years ago

Same issue as kylix34, all working except the sending audio data, same error at same point in program. I know little code so am struggling to find the solution.