Skip to content

Reading Kaifa MB310H4BNL #22354

Answered by rweijnen
rweijnen asked this question in Q&A
Discussion options

You must be logged in to vote

Well, seems like I finally figured it out:
using +1,3,o8E1,0,9600,Kaifa,1,600 is what's causing the pin conflict message (the o8E1 part).

So set serialconfig: SerialConfig 8E1 then this works for me:

>D
res=0
scnt=0
>B
->sensor53 r
;For this Example in the >F section

>F
;count 100ms
scnt+=1
switch scnt
case 6
;set sml driver to 300 baud and send /?! as HEX to trigger the Meter
res=sml(1 0 300) 
res=sml(1 1 "2F3F210D0A")

;1800ms later \> Send ACK and ask for switching to 9600 baud
case 18
res=sml(1 1 "063035300D0A")

;2000ms later \> Switching sml driver to 9600 baud
case 20
res=sml(1 0 9600)

;Restart sequence after 50x100ms    
case 250  
; 5000ms later \> restart sequence    
scnt=0  …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rweijnen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant