Port numbering for AT+WMFM


#1

Hi,

There seems to be agreement on that the ports have been numbered starting with 1 for UART1 since x51. But they are still numbered beginning with 0 when using the read command… Is that a bug or a feature?

at+wmfm=0,2 (read state)
+WMFM: 0,2,[color=red]0,1
+WMFM: 0,2,[color=red]1,1

OK
at+wmfm=0,0,[color=red]2 (set state UART2)

OK
at+wmfm=0,2

+WMFM: 0,2,0,1
+WMFM: 0,2,1,0

OK

Will this behavior stay like this, or should I be concerned that in the next version it will be different again???

Best Regards,

Jan


#2

Must be a bug…

…and I dont think you can trust that they are not going to change this in the next version. And thats why its important to specify both hardware and software version when you buy modules.

Strange thing are that when you list all values with
AT+WMFM? (when default configured), the result is :

+WMFM: 0,2,1,1
+WMFM: 0,2,2,0
+WMFM: 1,2,4,0
+WMFM: 1,2,4,1

…UART1 and UART2 is 1 and 2…

But (as you say) read all with AT+WMFM=0,2

+WMFM: 0,2,0,1
+WMFM: 0,2,1,0

…they are listed as 0 and 1…

Inconsistency of the worst kind… if I may say so…

/Snoooze


#3

and they “forget” to mention the changes, of course …