BuzzBoard Working?


#1

Hi everyone. Well I stumbled across OSBH a year or so ago and really liked the sound of things. I have been keeping an eye on developments and when I saw the latest OS for the BuzzBoard I thought I would give it a try. I ordered the ready made PCB’s and enough components to build 3 for each of my hives. Although a bit tricky as I had no experience with SMD components I was eager to try. After completion I fired the board up, and nothing so I used the desktop ide for photon and used the serial monitor to take a look at what was happening. The program was running but came to a stop at 'can’t communicate with BQ27441 and the id for sht31 was showing as #0. So it looked like I had a i2c problem and after checking through the whole board found one resister on the i2c circuit that was shorted. After correcting the fault, which looked OK after initial optical inspection, I fired up again and everything seems to be working except the data is not getting to the cloud. I do not know whether the problem is with the photon or the Buzzboard at this stage but was hoping someone may be able to help, so I have attached a copy of the serial output which seems to be OK, but I am not a programmer and may be missing something. Can anyone with a bit more skill than me check through the output and let me know if it looks good/bad? Any help appreciated. Thanks in advance.
Serial output:
system firmware version: 1.0.1buzzboard fw version: 21
setup
------ free memory: 45272
DeviceID: 40003c001647363336383etc
SHT31D Serial #76042319
Connected to BQ27441!
MMA xlerometer init
----- free memory: 45232
update params…
SHT31:T=21.07C, RH=44.76%
update params…
SHT31: T=21.77C, RH=44.73%
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, 93
chg: 3, mA: 30 ,mW: 140
SHT30:
temp ©: 21.11RH (%): 44
State: 2
----- free memory: 41072
State:2
----- free memory: 40800
State: 2
----- free memory: 40800
State: 2
----- free memory: 40800
State: 2
----- free memory: 38336
publishlocation
scanData={“w”:{“a”:[{“m”:“24:a7:dc:4d:3b:7a”,“s”:-50,“c”:13},{“m”:“94:44:52:67:2d:3f”,“s”:-80,“c”:10},{“m”:“20:0a:9e:a9:f3:c8”,“s”:-69,“c”:13}]}}
good: 0 total: 0
RSSI: -56, NG/OK:0/0, wifi_rat: 1.00, A_NG/OK: 0/0, aud_rat: 1.00
publish
update params…
SHT31: T=21.10C, RH=44.89%
State of Charge/Health: 100, 93
chg: 2, mA: -26 ,mW: -121
State: 3
----- free memory: 37928
State: 3
----- free memory: 40456
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

aud_/send_sdelect: 1 / 0, millis(18674)
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
row6
----- 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

If I have got errors, can anyone post their serial output so I can work through it and check where mine is going wrong. Thanks for taking the time to look


#2

Hello. Well I’ve managed to get further along the road with my BuzzBoard. I can confirm the charging and power side all work as expected, the unit sleeps after data transmission and all the sensors are working as expected. I have managed to get the data sent to the particle cloud but have still not managed to get it to the OSBH app, not sure why as I’ve constructed the webhook as per docs. I have still not managed to get the audio sent either, the serial printout seems to indicate it is recording but then gives an error before transmission. I will keep trying to get things working, but it looks like I may be the only one who has built one at the moment lol. I will start trying to get my other planned sensors fitted and working including outside temp/hum/pres along with ambient light sensor and hive weight scale. Hopefully I’ll have some good news soon.


#3

Hi, well thanks to Dave from Tech support at Particle, I have managed to get my data sent to the OSBH app on my phone, just a little syntax error caused me all that frustration, simple when you know how and I obviously don’t lol. Now I can move on to the Audio samples and try to get that part working and then get the extra sensors I plan to use integrated.


#5

I have the same error when trying to send the audio. This is my serial output:
indent preformatted text by 4 spaces Microsoft Windows [Versione 6.1.7601]
Copyright © 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 ©: 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:74:f6:d4:37:fd”,“s”:-74,“c”:11},{“m”:“64:ba:3a:a0: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


#6

Particle console dashboard shows this:
{
“T_in”:21.9
“RH_i”:60
“soc”:93
“soh”:90
“chg”:5
“I”:-168
“P”:-674
“RSSI”:-45
“w_r”:1
"a_r":0.11
“acc”:0
“lon”:0
“lat”:0
}


#7

Is the audio server’s address correct:
serverAddr[] = "buzzboard-audio.osbeehives.com" ?


#8

Hi Kylix, I can only assume the audio server address is correct as it was updated by the author in v2. Also I think the prog tells you if it cannot connect to server.


#9

Hey @TIMBOPLYMOUTH – sorry for the late response on this.

Super curious to know if you got your BuzzBoards working? Glad Particle were able to assist somewhat. Also, how is yours going @kylix?


#10

Hi Trystan!

Unfortunately, the last time I tried it it was not sending the audio files to the server. I was told that there’s some problem on the server where the BuzzBoard samples are sent and I’m waiting some sort of feedback from the person that manages that server.

It’s a pitty because this feature seemed to me the most interesting.


#11

Ok thanks for letting me know - I will ping our backend developer and get back to you!


#12

Hi Tristan!
Do you have any update?


#13

Hi Tristan, I’ve been busy trying to understand the code and see where the problems are, slow going I’m afraid. I have been integrating my other devices which is going well, bme280 hx711 and lux meter. I have made a few changes to the code for experimenting and seem to have it sending the audio data now (see my other post with serial output) BuzzBoard Open Source Development Board Discussion Thread. I have even managed to get some response from the app where it displayed all the headings for the audio data but with no data, not sure if that meant anything but struggling to reproduce it again now. Learning C++ is very slow going but managing to get to understanding little bits at a time. will keep going whenever I find the time.


#14

Hi Tristan, I recompiled the code using particle workbench which gives the following error: cannot open source file “vector” (dependency of “downsampler.h”) Is this a missing file? Could this be the problem with sending the audio? The only reference is an #include with vector inside <> rather than vector in quotes line 30 and and then line 325: int majorityVoting(vector states) Is there some source missing?