EAchine E012

  • goebish
  • goebish's Avatar Topic Author
  • Offline
  • I Void Warranties
More
13 Jun 2017 18:44 - 13 Jun 2017 19:07 #62978 by goebish
Replied by goebish on topic EAchine E012
updated again, I made a mistake with the power limitation.
www.dropbox.com/sh/8dd1hvli0qt7fw4/AABlW...kQJymHNNEfjViga?dl=0

Power is now limited to 30mW for this protocol.
Last edit: 13 Jun 2017 19:07 by goebish.

Please Log in or Create an account to join the conversation.

More
13 Jun 2017 19:30 #62979 by SeByDocKy
Replied by SeByDocKy on topic EAchine E012
Hummm it's working very sporadically :( ..... with a lot delay... sometimes it's loosing the bind :(

Please Log in or Create an account to join the conversation.

  • goebish
  • goebish's Avatar Topic Author
  • Offline
  • I Void Warranties
More
13 Jun 2017 19:32 - 13 Jun 2017 19:46 #62980 by goebish
Replied by goebish on topic EAchine E012
Have you tried 10mW or lower ?
Mine is working fine up to 30mW, but seems ymmv :/

edit: I'll take a look at the signal with the hackrf to try to understand what's happening, but I doubt I can do anything ... Maybe use the cc2500 instead of the nrf24l01 as it can be fine-tuned, but I'm not sure it can do gfsk @ 1Mbps (edit2: no it can't ...).
Last edit: 13 Jun 2017 19:46 by goebish.

Please Log in or Create an account to join the conversation.

  • goebish
  • goebish's Avatar Topic Author
  • Offline
  • I Void Warranties
More
13 Jun 2017 20:41 - 13 Jun 2017 20:41 #62985 by goebish
Replied by goebish on topic EAchine E012
Also, try with a few different transmitter IDs to check if some frequencies are working better than others.
Last edit: 13 Jun 2017 20:41 by goebish.

Please Log in or Create an account to join the conversation.

  • goebish
  • goebish's Avatar Topic Author
  • Offline
  • I Void Warranties
More
14 Jun 2017 10:33 #62988 by goebish
Replied by goebish on topic EAchine E012
I had a look at the signals, perhaps that explains the issue.
During bind, expected center frequency is 2460 MHz.

With the nrf24l01, there's a +33 kHz drift:


While with the hs6200 there's a -44 kHz drift (also, the signal is pretty dirty :P):


Those drifts in opposite direction (77 kHz) could explain the problem, maybe a RF expert can confirm that ?
Attachments:

Please Log in or Create an account to join the conversation.

More
14 Jun 2017 10:49 #62989 by SeByDocKy
Replied by SeByDocKy on topic EAchine E012
It's possible to change the Fc of the nRF to take into accound tis HS6200 offset ?

Please Log in or Create an account to join the conversation.

  • goebish
  • goebish's Avatar Topic Author
  • Offline
  • I Void Warranties
More
14 Jun 2017 11:09 #62990 by goebish
Replied by goebish on topic EAchine E012
What do you mean ?
The only way to fine-tune the drift on the nrf24l01 would be to replace the load capacitors that are around its crystal, but that's not a proper solution, except if the only model you want to control with the nrf24 is the E012 ;)

I'll also trim the antenna on the Rx, I noticed it's almost 40mm long ...

Please Log in or Create an account to join the conversation.

More
14 Jun 2017 11:13 #62991 by SeByDocKy
Replied by SeByDocKy on topic EAchine E012
Ok I was thiking about some frequency hoping with a constant biais ... but probably a stupid idea

Please Log in or Create an account to join the conversation.

  • goebish
  • goebish's Avatar Topic Author
  • Offline
  • I Void Warranties
More
14 Jun 2017 11:21 #62992 by goebish
Replied by goebish on topic EAchine E012
Ah Ok, that's not possible, we only have 1 MHz granularity.

Please Log in or Create an account to join the conversation.

  • goebish
  • goebish's Avatar Topic Author
  • Offline
  • I Void Warranties
More
14 Jun 2017 11:24 #62993 by goebish
Replied by goebish on topic EAchine E012
Have you tried with 10mW TX power and a few different TX IDs ?

Please Log in or Create an account to join the conversation.

  • goebish
  • goebish's Avatar Topic Author
  • Offline
  • I Void Warranties
More
14 Jun 2017 18:05 - 14 Jun 2017 18:07 #62994 by goebish
Replied by goebish on topic EAchine E012
I confirm link quality is very dependent of the frequency, I uploaded 2 special builds to my dropbox folder with a protocol option to directly set the frequency used by the protocol, give it a try, mine work best around 2430 MHz + 10mW Tx power.
www.dropbox.com/sh/8dd1hvli0qt7fw4/AABlW...kQJymHNNEfjViga?dl=0
Last edit: 14 Jun 2017 18:07 by goebish.

Please Log in or Create an account to join the conversation.

More
15 Jun 2017 16:19 #63005 by SeByDocKy
Replied by SeByDocKy on topic EAchine E012
For me ... whatever the power, ID, and Fc :( the behaviour is close to be random :(

Please Log in or Create an account to join the conversation.

  • goebish
  • goebish's Avatar Topic Author
  • Offline
  • I Void Warranties
More
15 Jun 2017 16:25 - 15 Jun 2017 16:25 #63006 by goebish
Replied by goebish on topic EAchine E012
Ok, I can't do anything better with the nrf24l01 ...
I consider it's not good enough to be pushed into main branch for now.

The CYRF6936 can do gfsk @ 1 Mbps, I've to check if it can be fine-tuned ...
Last edit: 15 Jun 2017 16:25 by goebish.

Please Log in or Create an account to join the conversation.

  • goebish
  • goebish's Avatar Topic Author
  • Offline
  • I Void Warranties
More
15 Jun 2017 16:50 - 16 Jun 2017 13:48 #63007 by goebish
Replied by goebish on topic EAchine E012
Ah, looks like the cyrf6936 could be a good candidate:

In GFSK mode, data is transmitted at 1 Mbps, without any DSSS: cool, that's exactly what we need, no DSSS and no Pseudo Noise !

Registers 0x1b & 0x1c: TX_OFFSET
Synthesizer offset value. This is a 12 bit 2’s complement signed number, which may be used to offset the transmit frequency of the device by up to ±1.5 MHz. A positive value increases the transmit frequency, and a negative value reduces the transmit frequency. A value of +1 increases the transmit frequency by 732.6 Hz; a value of –1 decreases the transmit frequency by 732.6 Hz

I've never worked with the cyrf6936 yet, that's a good opportunity, but it might take some time ;)

If only the nrf24l01 had this feature as well ...
Last edit: 16 Jun 2017 13:48 by goebish.

Please Log in or Create an account to join the conversation.

More
16 Jun 2017 04:16 #63018 by SeByDocKy
Replied by SeByDocKy on topic EAchine E012
Whaooohhhh can be a super workaround :)

Please Log in or Create an account to join the conversation.

  • goebish
  • goebish's Avatar Topic Author
  • Offline
  • I Void Warranties
More
16 Jun 2017 12:06 - 16 Jun 2017 15:28 #63021 by goebish
Replied by goebish on topic EAchine E012
Hack in progress, I still can't promise I'll be able to make it work, I've to circumvent some issues, but first results seem promising :)




cyrf in gfsk mode, SOP & CRC disabled, transmitting 0x55aa preamble (customable) + 00 ff 00 ff 00 ... 16 byte payload

... now I've to be able to send a payload longer than 16 bytes (27 bytes are needed in total for the E012 protocol, including HS6200 preamble), with the cyrf that's possible to send a payload up to 255 bytes (or 40, that's not clear ...) but it has to be done in 16 byte bursts, the fifo has to be refilled while the radio is transmitting ... Fortunately interrupts are triggered to find out when half or all bytes-1 of the fifo have been sent. I've to experiment and get the timing right.
Attachments:
Last edit: 16 Jun 2017 15:28 by goebish.

Please Log in or Create an account to join the conversation.

  • goebish
  • goebish's Avatar Topic Author
  • Offline
  • I Void Warranties
More
16 Jun 2017 19:48 - 17 Jun 2017 15:17 #63026 by goebish
Replied by goebish on topic EAchine E012
I think I've hit a wall :(

I'm somewhat able to receive packets sent by the cyrf with a nrf24l01, but they're corrupt and I think I understand why, nrf24l01 (and hs6200) has ±160 kHz gfsk deviation while the cyrf has ~±300 kHz... and it's not customable.

So, in the end I can't do anything better than with the nrf24l01, they're the 2 only radio we're supporting that can do gfsk @ 1 Mbps.

Oh well, at least I've learned how to use the cyrf, I did not waste my time ...
Last edit: 17 Jun 2017 15:17 by goebish.

Please Log in or Create an account to join the conversation.

  • goebish
  • goebish's Avatar Topic Author
  • Offline
  • I Void Warranties
More
20 Jun 2017 12:55 #63053 by goebish
Replied by goebish on topic EAchine E012
So:
- it kinda works with the nrf24l01
- no way to make it work with the cyrf6936
- now let's try with gnuradio / HackRF :P


Seems to work but there's a 1 second latency, probably because hackrf/osmocom buffer is too large. I think I've found someone that should be able to help me with that...

Please Log in or Create an account to join the conversation.

More
20 Jun 2017 21:59 #63063 by Fernandez
Replied by Fernandez on topic EAchine E012
You're a genius !! Impressive works

Please Log in or Create an account to join the conversation.

  • goebish
  • goebish's Avatar Topic Author
  • Offline
  • I Void Warranties
More
23 Jun 2017 14:28 #63098 by goebish
Replied by goebish on topic EAchine E012
I got it working perfectly with the BladeRF, no more latency:

This is known issue with the hackrf (no customable USB buffer size), but it should be fixed eventually.

Still, I'm not really sure of what the problem is with hs6200/nrf24l01 as they both can work with quite a bit of frequency drift, I've checked with SDR ...

Please Log in or Create an account to join the conversation.

Time to create page: 0.148 seconds
Powered by Kunena Forum