Port numbering for AT+WMFM



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

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


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


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

Best Regards,



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…



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