Home/Support/Support Forum/Is there a way to segment the data neatly?

Is there a way to segment the data neatly?

0 votes
Hi i'm newbee in packet transmit programming.

And, i'm trying to send 2048 bit data to another xbee module.

I'm using two xbee s1 module with digimesh protocol.

Sending packets to another module was successful, but there is limit of 'NP' (maximum packet payload bytes) field.

So, I put id, sequence number and segmented data in the payload, but it seems very dirty code.
I think it's because of my lack of skill.

How do others do packet segmentation with xbee?
asked Jun 2 in XBee Programmable Development by vmfallvm New to the Community (0 points)
retagged Jun 2 by vmfallvm

Please log in or register to answer this question.

2 Answers

0 votes
This is one that is not really a function of the XBee but of the software protocol and language you are working with.
answered Jun 2 by mvut Veteran of the Digi Community (13,089 points)
0 votes
vmfallvm

If the destination node for transmission is not changing regularly, then you may consider using modules in Transparent Mode (AP=0) and just dump all data on Tx module's serial line for transmission.

That would make your code pretty small and neat.

Mathur
Digi Technical Support
answered Jun 5 by mathur Community Contributor (98 points)
...